Difference between revisions of "FixedCrossTableRowSeries class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=FixedCrossTableRowSeries |Description=A row series used in FixedCrossTable |Constructors= {{CGscriptConstructors_Template|Description=Construct ...")
 
Line 24: Line 24:
 
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
 
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
 
}}
 
}}
 +
 +
=== Examples ===
 +
 +
<source lang="javascript">
 +
FixedCrossTableDataItem dataItem = new FixedCrossTableDataItem();
 +
 +
dataItem.Value = 5;
 +
dataItem.SignificanceZ = 10;
 +
 +
FixedCrossTableDataSeries dataserie = new FixedCrossTableDataSeries();
 +
 +
dataserie.Add(dataItem,dataItem);
 +
dataserie.AbsoluteTotal.Value = 20;
 +
dataserie.PercentageTotal.Value = 100;
 +
print(dataserie[0].Value);
 +
print(dataserie[0].SignificanceZ);
 +
print(dataserie.AbsoluteTotal.Value);
 +
print(dataserie.PercentageTotal.Value);
 +
FixedCrossTableRowSeries datarow = new FixedCrossTableRowSeries();
 +
datarow.Add(dataserie);
 +
datarow.Add(dataserie);
 +
print(datarow[0][0].Value);
 +
print(datarow[0][0].SignificanceZ);
 +
print(datarow[0].AbsoluteTotal.Value);
 +
print(datarow[0].PercentageTotal.Value);
 +
</source>

Revision as of 09:21, 11 January 2016

FixedCrossTableRowSeries



A row series used in FixedCrossTable

Constructors

  • () - Construct new row series.

Methods

Properties

  • number Count { get; } - Number of elements.
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

FixedCrossTableDataItem dataItem = new FixedCrossTableDataItem();

dataItem.Value = 5;
dataItem.SignificanceZ = 10;

FixedCrossTableDataSeries dataserie = new FixedCrossTableDataSeries();

dataserie.Add(dataItem,dataItem);
dataserie.AbsoluteTotal.Value = 20;
dataserie.PercentageTotal.Value = 100;
print(dataserie[0].Value);
print(dataserie[0].SignificanceZ);
print(dataserie.AbsoluteTotal.Value);
print(dataserie.PercentageTotal.Value);
FixedCrossTableRowSeries datarow = new FixedCrossTableRowSeries();
datarow.Add(dataserie);
datarow.Add(dataserie);
print(datarow[0][0].Value);
print(datarow[0][0].SignificanceZ);
print(datarow[0].AbsoluteTotal.Value);
print(datarow[0].PercentageTotal.Value);