Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Tabulation setDiagramStyle: Difference between revisions

From Catglobe Wiki
Tungocman (talk | contribs)
No edit summary
No edit summary
Β 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
Sets the style for part of a chart. Β 
Sets the style for part of a chart. Β 


'''Syntax'''
==Syntax==


Tabulation_setDiagramStyle(''styleType, diagramStyle'') Β 
Tabulation_setDiagramStyle(''styleType, diagramStyle'') Β 


'''Arguments'''
or can use [[TabulationDiagramParameter_class|TabulationDiagramParameter.SetDiagramStyle(styleType, TabulationDiagramStyle);]]


''styleType'': enumeration for the part of a chart you want to set. Below is the full list of chart style type enumerations:
==Arguments==


TableDiagram_AllTable = 0
*''styleType'': enumeration for the part of a chart you want to set. Below is the full list of chart style type enumerations:


TableDiagram_ColumnHeader = 1
TableDiagram_AllTable


TableDiagram_ColumnHeaderLevel1 = 2
TableDiagram_ColumnHeader


TableDiagram_ColumnHeaderLevel2 = 3
TableDiagram_ColumnHeaderLevel1


TableDiagram_ColumnHeaderLevel3 = 4
TableDiagram_ColumnHeaderLevel2


TableDiagram_ColumnHeaderLevel4 = 5
TableDiagram_ColumnHeaderLevel3


TableDiagram_RowHeader = 6
TableDiagram_ColumnHeaderLevel4


TableDiagram_RowHeaderLevel1 = 7
TableDiagram_RowHeader


TableDiagram_RowHeaderLevel2 = 8
TableDiagram_RowHeaderLevel1


TableDiagram_RowHeaderLevel3 = 9
TableDiagram_RowHeaderLevel2


TableDiagram_AnswerRow = 10
TableDiagram_RowHeaderLevel3


TableDiagram_AnswerRowAlternate = 11
TableDiagram_AnswerRowΒ 


TableDiagram_AbsoluteColumn = 12
TableDiagram_AnswerRowAlternate


TableDiagram_AbsoluteColumnHeader = 13
TableDiagram_AbsoluteColumn


TableDiagram_AbsoluteColumnValue = 14
TableDiagram_AbsoluteColumnHeader


TableDiagram_PercentageColumn = 15
TableDiagram_AbsoluteColumnValue


TableDiagram_PercentageColumnHeader = 16
TableDiagram_PercentageColumn


TableDiagram_PercentageColumnValue = 17
TableDiagram_PercentageColumnHeader


TableDiagram_TotalColumn = 18
TableDiagram_PercentageColumnValue


TableDiagram_TotalColumnHeader = 19
TableDiagram_TotalColumnΒ 


TableDiagram_TotalColumnValue = 20
TableDiagram_TotalColumnHeader


TableDiagram_TotalRow = 21
TableDiagram_TotalColumnValue


TableDiagram_TotalRowHeader = 22
TableDiagram_TotalRow


TableDiagram_TotalRowValue = 23
TableDiagram_TotalRowHeader


TableDiagram_VarianceRow = 24
TableDiagram_TotalRowValue


TableDiagram_VarianceRowHeader = 25
TableDiagram_VarianceRow


TableDiagram_VarianceRowValue = 26
TableDiagram_VarianceRowHeader


TableDiagram_AverageRow = 27
TableDiagram_VarianceRowValue


TableDiagram_AverageRowHeader = 28
TableDiagram_AverageRow


TableDiagram_AverageRowValue = 29
TableDiagram_AverageRowHeader


TableDiagram_StdDevRow = 30
TableDiagram_AverageRowValue


TableDiagram_StdDevRowHeader = 31
TableDiagram_StdDevRow


TableDiagram_StdDevRowValue = 32
TableDiagram_StdDevRowHeader


TableDiagram_StdErrorRow = 33
TableDiagram_StdDevRowValue


TableDiagram_StdErrorRowHeader = 34
TableDiagram_StdErrorRow


TableDiagram_StdErrorRowValue = 35
TableDiagram_StdErrorRowHeader


TableDiagram_MedianRow = 36
TableDiagram_StdErrorRowValue


TableDiagram_MedianRowHeader = 37
TableDiagram_MedianRow


TableDiagram_MedianRowValue = 38
TableDiagram_MedianRowHeader


TableDiagram_QuantilesRow = 39
TableDiagram_MedianRowValue


TableDiagram_QuantilesRowHeader = 40
TableDiagram_QuantilesRow


TableDiagram_QuantilesRowValue = 41
TableDiagram_QuantilesRowHeader


TableDiagram_PercentileRow = 42
TableDiagram_QuantilesRowValue


TableDiagram_PercentileRowHeader = 43
TableDiagram_PercentileRow


TableDiagram_PercentileRowValue = 44
TableDiagram_PercentileRowHeader


TableDiagram_SignificanceRow = 45
TableDiagram_PercentileRowValue


TableDiagram_SignificanceRowHeader = 46
TableDiagram_SignificanceRow


TableDiagram_SignificanceRowValue = 47
TableDiagram_SignificanceRowHeaderΒ 


TableDiagram_CountAnswerRow = 48
TableDiagram_SignificanceRowValue


TableDiagram_CountAnswerRowHeader = 49
TableDiagram_CountAnswerRow


TableDiagram_CountAnswerRowValue = 50
TableDiagram_CountAnswerRowHeader


TableDiagram_TotalRespondentRow = 51
TableDiagram_CountAnswerRowValue


TableDiagram_TotalRespondentRowHeader = 52
TableDiagram_TotalRespondentRow


TableDiagram_TotalRespondentRowValue = 53
TableDiagram_TotalRespondentRowHeader


TableDiagram_WeightRow = 56
TableDiagram_TotalRespondentRowValue


TableDiagram_WeightRowHeader = 57
TableDiagram_WeightRow


TableDiagram_WeightRowValue = 58
TableDiagram_WeightRowHeader


'''TableDiagram_QuestionHeader = 59'''
TableDiagram_WeightRowValue


''diagramStyle'': diagram style object want to apply. It is an array with the following constants. Β 
'''TableDiagram_QuestionHeader'''
Β 
'''TableDiagram_SpacerCell'''
Β 
*''diagramStyle'': diagram style object want to apply. It is an array with the following constants. Β 


{| cellpadding="2" border="1" width="907" class="tableintopic" style="border-collapse: collapse; border: 1px solid rgb(1, 1, 1);"
{| cellpadding="2" border="1" width="907" class="tableintopic" style="border-collapse: collapse; border: 1px solid rgb(1, 1, 1);"
Line 223: Line 227:
|}
|}


'''Return type'''
==Return type==


Empty Β 
Empty Β 


'''Examples'''
==Examples==


''Tabulation_setTableLayout(TableChartLayout_Ifka);'' Β 
''Tabulation_setTableLayout(TableChartLayout_Ifka);'' Β 
Line 300: Line 304:
[[Image:SetDiagramStyle.jpg]]
[[Image:SetDiagramStyle.jpg]]


'''Availability'''
==Availability==


Version 5.8.1 __NOTOC__ <!-- imported from file: 8101.htm-->
Version 5.8.1 __NOTOC__


[[Category:Style_setting_functions]]
[[Category:Style_setting_functions]]

Latest revision as of 07:09, 22 September 2023

Tabulation_setDiagramStyle

Sets the style for part of a chart.

Syntax

Tabulation_setDiagramStyle(styleType, diagramStyle)

or can use TabulationDiagramParameter.SetDiagramStyle(styleType, TabulationDiagramStyle);

Arguments

  • styleType: enumeration for the part of a chart you want to set. Below is the full list of chart style type enumerations:

TableDiagram_AllTable

TableDiagram_ColumnHeader

TableDiagram_ColumnHeaderLevel1

TableDiagram_ColumnHeaderLevel2

TableDiagram_ColumnHeaderLevel3

TableDiagram_ColumnHeaderLevel4

TableDiagram_RowHeader

TableDiagram_RowHeaderLevel1

TableDiagram_RowHeaderLevel2

TableDiagram_RowHeaderLevel3

TableDiagram_AnswerRow

TableDiagram_AnswerRowAlternate

TableDiagram_AbsoluteColumn

TableDiagram_AbsoluteColumnHeader

TableDiagram_AbsoluteColumnValue

TableDiagram_PercentageColumn

TableDiagram_PercentageColumnHeader

TableDiagram_PercentageColumnValue

TableDiagram_TotalColumn

TableDiagram_TotalColumnHeader

TableDiagram_TotalColumnValue

TableDiagram_TotalRow

TableDiagram_TotalRowHeader

TableDiagram_TotalRowValue

TableDiagram_VarianceRow

TableDiagram_VarianceRowHeader

TableDiagram_VarianceRowValue

TableDiagram_AverageRow

TableDiagram_AverageRowHeader

TableDiagram_AverageRowValue

TableDiagram_StdDevRow

TableDiagram_StdDevRowHeader

TableDiagram_StdDevRowValue

TableDiagram_StdErrorRow

TableDiagram_StdErrorRowHeader

TableDiagram_StdErrorRowValue

TableDiagram_MedianRow

TableDiagram_MedianRowHeader

TableDiagram_MedianRowValue

TableDiagram_QuantilesRow

TableDiagram_QuantilesRowHeader

TableDiagram_QuantilesRowValue

TableDiagram_PercentileRow

TableDiagram_PercentileRowHeader

TableDiagram_PercentileRowValue

TableDiagram_SignificanceRow

TableDiagram_SignificanceRowHeader

TableDiagram_SignificanceRowValue

TableDiagram_CountAnswerRow

TableDiagram_CountAnswerRowHeader

TableDiagram_CountAnswerRowValue

TableDiagram_TotalRespondentRow

TableDiagram_TotalRespondentRowHeader

TableDiagram_TotalRespondentRowValue

TableDiagram_WeightRow

TableDiagram_WeightRowHeader

TableDiagram_WeightRowValue

TableDiagram_QuestionHeader

TableDiagram_SpacerCell

  • diagramStyle: diagram style object want to apply. It is an array with the following constants.

Constant

Type

Initial/Default value

Description

OBJECT_TYPE

Number

21

Enumeration defining the object type.

TABLE_DIAGRAM_STYLE_FILL

Array

As set in the object

Fill style. Background color.

TABLE_DIAGRAM_STYLE_DECIMAL

Number

As set in the object

Decimal place.

TABLE_DIAGRAM_STYLE_FONT

Array

As set in the object

Font.

TABLE_DIAGRAM_STYLE_VALIGN

String

As set in the object

Vertical alignment (allows values "top", "center", or "bottom").

TABLE_DIAGRAM_STYLE_HALIGN

String

As set in the object

Horizontal alignment (allows values "left", "center", or "right").

Return type

Empty

Examples

Tabulation_setTableLayout(TableChartLayout_Ifka);

Tabulation_setAbsText("abs");

Tabulation_setPctText("%");

Tabulation_setCountAnswer(true);

Tabulation_setTotalAnswerText("Total sample size");

Tabulation_setEnableOddEvenRowHeader(true);

Tabulation_setMergeStatisticPctItem(true);

//set values for Abs column

array font = {18,"Times New Roman",9,{17,0,0,0},false,false,false,true};

array fill_AbsCol = {19,{17,0,0,0},2,true};

string valign = "center";

string halign_AbsCol = "right";

number decimal = 0;

array diagramStyle_AbsCol={21,fill_AbsCol,decimal,font,valign,halign_AbsCol};

Tabulation_setDiagramStyle(TableDiagram_AbsoluteColumn,diagramStyle_AbsCol);

//set values for Count Answer Row

array font_CountAnswer = {18,"Times New Roman",9,{17,0,0,0},true,false,false,false};

string halign_CountAnswer = "left";

array diagramStyle_CountAnswer ={21,fill_AbsCol,decimal,font_CountAnswer,valign,halign_CountAnswer};

Tabulation_setDiagramStyle(TableDiagram_CountAnswerRow,diagramStyle_CountAnswer);

//set values for Headers column

array font_Header = DiagramFontStyle_getDefault();

font_Header[DIAGRAM_FONT_STYLE_COLOR] = Color_getByRGB("#000000");

font_Header[DIAGRAM_FONT_STYLE_FACE] = "Times New Roman";

font_Header[DIAGRAM_FONT_STYLE_SIZE] = 9Β ;

array fill_style = DiagramFillStyle_getDefault();

array style_header = Tabulation_getDefaultDiagramStyle(Diagram_Type_Table);

style_header[TABLE_DIAGRAM_STYLE_FILL] = fill_style;

style_header[TABLE_DIAGRAM_STYLE_FONT] = font_Header;

style_header[TABLE_DIAGRAM_STYLE_VALIGN] = "center";

style_header[TABLE_DIAGRAM_STYLE_HALIGN] = "center";

Tabulation_setDiagramStyle(TableDiagram_ColumnHeaderLevel2, style_header);

Tabulation_setDiagramStyle(TableDiagram_AbsoluteColumnHeader, style_header);

Tabulation_setDiagramStyle(TableDiagram_PercentageColumnHeader, style_header);

createFrequenceDiagram("Civil_status");

Availability

Version 5.8.1