Class ChartExportSettings
- All Implemented Interfaces:
HasHandlers
FacetChart contributes to Canvas.exportDescendantData(), set as FacetChart.chartExportSettings. A chart exports the table that matches its reader's takeaway — its export shape: a ranked share-of-whole table for magnitude charts, a chronological table with change-over-period columns for time series, raw point tuples for scatter plots, and a category × series matrix for two-facet charts. By default the shape and every column toggle are inferred from the chart itself (chart type, facet field types, and what the measure's aggregation makes valid); each property here overrides one aspect of that inference. Toggles left null are decided by the resolved shape, so {shape: "trend"} is a complete override.
Settings choose among valid tables only: a toggle the measure's aggregation makes invalid (a summed Total over averages, a running total of minimums) is ignored with a warning.
- See Also:
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComparison only: the raw Code column retained beside resolved labels (for joins and pivots against the source data).Distribution only: the Cumulative % column.Trend only: the change-vs-prior-period columns (absolute and percent).Correlation only: a leading identity column naming each point's record (from the DataSource's title field), so outlying points can be identified.Percentage columns: "% of Total" for a comparison or distribution, the percentage block (each cell's percent of its row's Total) for a stacked matrix.Comparison only: the Rank column.Trend only: the Running Total column.The bottom summary row.Matrix only: the per-row Total column — the denominator of the matrix's percentage block.Trend only: when set, adds a moving-average column computed over this many periods.static ChartExportSettingsgetOrCreateRef(JavaScriptObject jsObj) getShape()The export shape.getSort()Row order, overriding the resolved shape's natural order.setIncludeCodes(Boolean includeCodes) Comparison only: the raw Code column retained beside resolved labels (for joins and pivots against the source data).setIncludeCumulative(Boolean includeCumulative) Distribution only: the Cumulative % column.setIncludeDelta(Boolean includeDelta) Trend only: the change-vs-prior-period columns (absolute and percent).setIncludeIdentity(Boolean includeIdentity) Correlation only: a leading identity column naming each point's record (from the DataSource's title field), so outlying points can be identified.setIncludePercentages(Boolean includePercentages) Percentage columns: "% of Total" for a comparison or distribution, the percentage block (each cell's percent of its row's Total) for a stacked matrix.setIncludeRank(Boolean includeRank) Comparison only: the Rank column.setIncludeRunningTotal(Boolean includeRunningTotal) Trend only: the Running Total column.setIncludeSummaryRow(Boolean includeSummaryRow) The bottom summary row.setIncludeTotalColumn(Boolean includeTotalColumn) Matrix only: the per-row Total column — the denominator of the matrix's percentage block.setMovingAverage(Integer movingAverage) Trend only: when set, adds a moving-average column computed over this many periods.setShape(ChartExportShape shape) The export shape.setSort(ChartExportSortMode sort) Row order, overriding the resolved shape's natural order.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
ChartExportSettings
public ChartExportSettings() -
ChartExportSettings
-
-
Method Details
-
getOrCreateRef
-
setIncludeCodes
Comparison only: the raw Code column retained beside resolved labels (for joins and pivots against the source data). Only emitted when labels actually differ from the stored values.- Parameters:
includeCodes- New includeCodes value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeCodes
Comparison only: the raw Code column retained beside resolved labels (for joins and pivots against the source data). Only emitted when labels actually differ from the stored values.- Returns:
- Current includeCodes value. Default value is null
- See Also:
-
setIncludeCumulative
Distribution only: the Cumulative % column.- Parameters:
includeCumulative- New includeCumulative value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeCumulative
Distribution only: the Cumulative % column.- Returns:
- Current includeCumulative value. Default value is null
- See Also:
-
setIncludeDelta
Trend only: the change-vs-prior-period columns (absolute and percent).- Parameters:
includeDelta- New includeDelta value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeDelta
Trend only: the change-vs-prior-period columns (absolute and percent).- Returns:
- Current includeDelta value. Default value is null
- See Also:
-
setIncludeIdentity
Correlation only: a leading identity column naming each point's record (from the DataSource's title field), so outlying points can be identified.- Parameters:
includeIdentity- New includeIdentity value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeIdentity
Correlation only: a leading identity column naming each point's record (from the DataSource's title field), so outlying points can be identified.- Returns:
- Current includeIdentity value. Default value is null
- See Also:
-
setIncludePercentages
Percentage columns: "% of Total" for a comparison or distribution, the percentage block (each cell's percent of its row's Total) for a stacked matrix.- Parameters:
includePercentages- New includePercentages value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludePercentages
Percentage columns: "% of Total" for a comparison or distribution, the percentage block (each cell's percent of its row's Total) for a stacked matrix.- Returns:
- Current includePercentages value. Default value is null
- See Also:
-
setIncludeRank
Comparison only: the Rank column.- Parameters:
includeRank- New includeRank value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeRank
Comparison only: the Rank column.- Returns:
- Current includeRank value. Default value is null
- See Also:
-
setIncludeRunningTotal
Trend only: the Running Total column. Valid only for summed or counted measures.- Parameters:
includeRunningTotal- New includeRunningTotal value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeRunningTotal
Trend only: the Running Total column. Valid only for summed or counted measures.- Returns:
- Current includeRunningTotal value. Default value is null
- See Also:
-
setIncludeSummaryRow
The bottom summary row. What it shows follows the measure's aggregation: a Total for summed or counted measures, an Average for averaged ones; for minimums and maximums no summary row is valid and this setting is ignored.- Parameters:
includeSummaryRow- New includeSummaryRow value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeSummaryRow
The bottom summary row. What it shows follows the measure's aggregation: a Total for summed or counted measures, an Average for averaged ones; for minimums and maximums no summary row is valid and this setting is ignored.- Returns:
- Current includeSummaryRow value. Default value is null
- See Also:
-
setIncludeTotalColumn
Matrix only: the per-row Total column — the denominator of the matrix's percentage block.- Parameters:
includeTotalColumn- New includeTotalColumn value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getIncludeTotalColumn
Matrix only: the per-row Total column — the denominator of the matrix's percentage block.- Returns:
- Current includeTotalColumn value. Default value is null
- See Also:
-
setMovingAverage
Trend only: when set, adds a moving-average column computed over this many periods.- Parameters:
movingAverage- New movingAverage value. Default value is null- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getMovingAverage
Trend only: when set, adds a moving-average column computed over this many periods.- Returns:
- Current movingAverage value. Default value is null
- See Also:
-
setShape
The export shape. When "auto", the shape is inferred from the chart -- seeChartExportShapefor the shapes andChartExportSettingsfor how the inference works.- Parameters:
shape- New shape value. Default value is "auto"- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getShape
The export shape. When "auto", the shape is inferred from the chart -- seeChartExportShapefor the shapes andChartExportSettingsfor how the inference works.- Returns:
- Current shape value. Default value is "auto"
- See Also:
-
setSort
Row order, overriding the resolved shape's natural order.- Parameters:
sort- New sort value. Default value is "auto"- Returns:
ChartExportSettingsinstance, for chaining setter calls- See Also:
-
getSort
Row order, overriding the resolved shape's natural order.- Returns:
- Current sort value. Default value is "auto"
- See Also:
-