GeoMapCreator

Package: Libraries.Compute.Statistics.Charts · Inherits from: Libraries.Compute.Statistics.DataFrameChartCreator, Libraries.Compute.Statistics.Inputs.ColumnInput, Libraries.Language.Object, Libraries.Compute.Statistics.Inputs.FactorInput

This class is used to create a GeoMap Chart from columns of data in a DataFrame. There is one way to make a geomap chart from the data frame using this class: 1. One factor (must be the region names to correspond with the map) AND one column of text or numerical data.

Example Code

use Libraries.Compute.Statistics.DataFrame
use Libraries.Compute.Statistics.Charts.GeoMapCreator

DataFrame frame
frame:Load("Data/Data.csv")
frame:AddSelectedFactors("Factor Name")
frame:AddSelectedColumns("Data Name")

//create map and load in data frame
GeoMapCreator creator
frame:GetSelection():CopyTo(cast(ColumnInput, creator))
frame:GetSelection():CopyTo(cast(FactorInput, creator))
chart = cast(GeoMap, creator:Create(frame))

Actions

Create(Libraries.Compute.Statistics.DataFrame frame)

Parameters

Returns

Libraries.Interface.Controls.Charts.Chart

SetMapDataFilePath(text mapDataFilePath)

if column:IsTextColumn()

Parameters

  • mapDataFilePath text

SetMapFileDelimiters(text entry, text coordinate, text vertex, text boundary)

Set the delimiters used to separate each piece of information inside boundary source file.

Parameters

  • entry text: Delimiter used for each individual entry
  • coordinate text: Delimiter used to separate x and y coordinates from each other
  • vertex text: Delimiter to separate (x, y) pairs from each other
  • boundary text: Delimiter to separate polygons such as islands.

Inherited Actions

1 action from Libraries.Compute.Statistics.DataFrameChartCreator
8 actions from Libraries.Compute.Statistics.Inputs.ColumnInput
8 actions from Libraries.Compute.Statistics.Inputs.FactorInput
3 actions from Libraries.Language.Object