BarChartCreator

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 Bar Chart from columns of data in a DataFrame. There are four ways to make a bar chart from the data frame using this class: 1. One factor or one text-column: Each unique item will have its own bar using its frequency as the value. 2. One or more numerical columns without a factor: Each column will have its own bar using its sum as the value. 3. One or more numerical columns with a factor: The values associated with each factor will be in one bar group, containing a bar for each column. 4. One column with two factors: The values associated with both factors will get one bar, they will be grouped by factor1 and colored by factor2.

Example Code

use Libraries.Compute.Statistics.DataFrame
use Libraries.Compute.Statistics.Charts.BarChartCreator

DataFrame frame
frame:Load("Data/Data.csv")

//Create a Bar Chart and set some properties
BarChartCreator creator
creator:AddColumn(4)
creator:AddFactor(0)
creator:SetXSteps(4)

Chart chart = frame:CreateChart(creator)
chart:Display(2000,1000)

Actions

Create(Libraries.Compute.Statistics.DataFrame frame)

Parameters

Returns

Libraries.Interface.Controls.Charts.Chart

CreateChartBySum(Libraries.Compute.Statistics.DataFrame frame)

Parameters

Returns

Libraries.Interface.Controls.Charts.Chart

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