Hello,
In my application i need to use dual axis chart - two measures must be in columns (axis 1), third in line (axis 2).
If Data source property Load in script = false, it can be asily achieved by Additional properties of Chart:
But i have to use Data source (Load in script = true).
In that case there is no possibility to manage which measures should be assigned to which axis using script.
For example my script:
// Selecting 2 measures DS_1.setFilter("6JW7K7JQYJR263T2MGQ78RZNN",["6JW7K7JQYJR263T2MGQ78TKJN","6JW7K7JQYJR263T2MGQ78TQV7"]); //Setting Chart type CHART_1.setChartType(ChartType.DUAL_COLUMN);
As shown each measures are in different Axis, but same type - column
Now add third measure:
// Selecting 3 measures DS_1.setFilter("6JW7K7JQYJR263T2MGQ78RZNN",["6JW7K7JQYJR263T2MGQ78TKJN","6JW7K7JQYJR263T2MGQ78TQV7","6JW7K7JQYJR263T2MGQ78TX6R"]); //Set Chart type CHART_1.setChartType(ChartType.DUAL_COLUMN);
Now there are first measure in Axis 1 and the other two in Axis 2 and axis type column:
Is there any solution to control measure assignment and type of axis by scripting using standard functions?