cancel
Showing results for 
Search instead for 
Did you mean: 

yAxis (valueAxis) scales in vizframe dual stacked column

sven_ganske
Discoverer
0 Kudos

Hi everyone,

is there any way to force vizframe to use the same autoscale for both yaxis (valueAxis)?

I know how to do that manually, but as data comes from odata I don't know a propper maxValue in advance.

Setting the scale to "auto" the axis have in my case different scale and so I can't compare the columns visually.

Thanks

Sven

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196805
Contributor
0 Kudos

Hello Sven,

  Do you mean you wish both axes be in the same scaling distribution even though difference measure values are rendered? if yes, I am afraid vizFrame doesn't comes with any property could approach the same.

  Such scaling calcuation was done on the fly according to the dataset, measure values to be exact, rendered. apart from the minValue, maxValue, fixedRange property under plotArea.primaryScale and plotArea.secondaryScale which could be used to customize the scale initially, the only way I could think of is to first read the max/min value of one axis by calling oVizFrame.getVizProperties().plotArea.primaryScale.autoMaxValue and oVizFrame.getVizProperties().plotArea.primaryScale.autoMinValue first. Then you apply them back to secondaryAxis.primaryScale.maxValue and minValue.

  Hope this helps.

BR,

Chapman

Former Member
0 Kudos

You can send max scales for both axes through OData and use dual chart.

Dual axis chart using VizFrame in SAPUI5? - SAP ABAP,SAPUI5,SAP HANA,SAP Fiori,OData,Netweaver Gatew...