Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Design studio - assign measure and axis type for dual axis chart in script

$
0
0

Hello,

 

In my application i need to use dual axis chart - two measures must be in columns (axis 1), third in line (axis 2).

2015-03-26 17_33_13-DB_EMPLOYEE_TURNOVER_02 - SAP BusinessObjects Design Studio.png

If Data source property Load in script = false, it can be asily achieved by Additional properties of Chart:

2015-03-27 11_46_50-DB_EMPLOYEE_TURNOVER_02 - SAP BusinessObjects Design Studio.png


 

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

2015-03-27 12_51_45-DB_EMPLOYEE_TURNOVER_02 - Analysis Application.png

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:

2015-03-27 13_14_41-DB_EMPLOYEE_TURNOVER_02 - Analysis Application.png

Is there any solution to control measure assignment and type of axis by scripting using standard functions?


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>