Field-Map Scripting

4.1.3.2.18 ShowDistributionChart

ShowDistributionChart procedure


Prototype:

function ShowDistributionChart (TableOrLayer :TObjectWrapper; const AttributeName_ :string; const NullAsZero_ :boolean; const ClassWidth_ :variant; const Xlabel_,ChartLabel_,Options_ :string);

Description:

Shows distribution chart from data

Syntax:

ShowDistributionChart (tab, AttributeName, NullAsZero, ClassWidth, Xlabel, ChartLabel, Options);


Part

Description


TableOrLayer

Table containing source variables


AttributeName

Attribute of source table containing data to enter calculations


NullAsZero

Boolean expression defining whether to exclude null (false) entries or replace nulls with zeros (true)


ClassWidth

Width of class


Xlabel

Name of the x-axis


ChartLabel

Name of the chart


Options

List of input options (see list of available input options)






Example:


Task:

Show distribution chart of DBH.


Data stored in the database.



Script:

var

tab : TTableWrapper;

attributeName, chartLabel, Xlabel, options: string;

 nullAsZero: boolean;

 classWidth : variant;


begin

 tab:= Trees.table;

 attributeName:= 'DBH_mm';

 nullAsZero:= false;                    // dont want calculate with a null value


 classWidth:= 1;

 Xlabel:= 'DBH_cm';

 chartLabel:= 'Distribution chart of DBH';

 options:= 'X0=15; SHOWCHART=YES; SHOWEQUATION=NO; LINEWIDTH=123,123,123; X[1]=25.0; X[2]=50.0';


 ShowDistributionChart(tab, attributeName, nullAsZero, classWidth, Xlabel, chartLabel, options);

end.


Output in Field-Map Data Collector:


See also:

Mean; QuadraticMean; WeightedMean; Median; SampleVariance; StandardDeviation; StandardError; MeanError;VarianceOfMean; WeightedSampleVariance; WeightedStandardDeviation; WeightedVarianceOfMean;ConfidenceIntervalOfMean; VarianceOfTotal; ConfidenceIntervalOfTotal; StratifiedConfidenceIntervalOfTotal; SampleSize;ShowDistributionChart; ParameterizeRegressionModel; CalculateModelValue


Example