createMekkoGraph(xdim, innerDim, measure, colorDim, textCols)
The createMekkoGraph() function generates a Marimekko Chart.
Parameter
- xdim
-
The dimension to place on the X-axis.
- innerDim
-
The dimension used to break out each X column.
- measure
-
The measure (with aggregation method) to represent on the chart.
- colorDim
-
Name of dimension column whose values should be represented by color.
- textCols
-
Array of dimension column names from which to render labels.
Example
Chart Component Script
dataset = viewsheet['Query1']; (1)
graph = createMekkoGraph("state", "city", "price", "state"); (2)
| 1 | See dataset for more information about setting the dataset. |
| 2 | Create the Mekko chart.
|
Script that modifies the graph or dataset properties should be placed on the Chart component itself. See Add Component Script for more information. This script has access to the Chart data and Chart API methods. Scripted Charts are not good candidates for user-modification, so you should deselect ‘Enable Ad Hoc Editing’ in the Chart Properties dialog box.
|
