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
SetMapDataFilePath(text mapDataFilePath)
if column:IsTextColumn()
Parameters
mapDataFilePathtext
SetMapFileDelimiters(text entry, text coordinate, text vertex, text boundary)
Set the delimiters used to separate each piece of information inside boundary source file.
Parameters
entrytext: Delimiter used for each individual entrycoordinatetext: Delimiter used to separate x and y coordinates from each othervertextext: Delimiter to separate (x, y) pairs from each otherboundarytext: Delimiter to separate polygons such as islands.