cancel
Showing results for 
Search instead for 
Did you mean: 

[VizFrame, Dual Combination] Display more than one measure on valueAxis

hhllcks
Explorer
0 Kudos

Hi everybody,

I tried to create a VizFrame with VizType 'dual_timeseries_combination' and 'dual_combination'.

You can find the documentation here: https://sapui5.hana.ondemand.com/docs/vizdocs/
Find the Graphs under Charts -> Combination -> Combined Column Line Chart with 2 Y-Axes and Charts -> Combination -> Combined Column Line Chart for Date/Time Series with 2 Y-Axes.

They allow the following bindings for the Y-Axes: valueAxis and valueAxis2.

For both axes the max is infinity.

However if I add more than one measure to the valueAxis it will automatically be moved to valueAxis2 (or the display style is changed to a line, I am not sure).

I assume, that the reason for this is that having more than one column at a given time makes it ambiguous where to draw the marker for the lines.

Feel free to play with this JSFiddle to see the effect: https://jsfiddle.net/hhllcks/j21bpLkg/

Here is a screenshot of the effect (Value 2 should be displayed with columns, not a line):

My question is:

Will there be a vizType that allows me to display columns on both axes in a timeseries? This is my original requirement and it seems that I can not solve it at the moment with the VizFrame.

As a workaround I tried to use dual_timeseries_combination but ran into the error above.

Best regards,

Hendrik

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196805
Contributor
0 Kudos

Try define the plotting shape using plotArea.dataShape.primaryAxis and set it to like ["bar", "bar", "line"]. Check the vizDoc for more info.

Please FYI that when switching from non-dual to dual chart type, chart library will appoint the first measure as primary axis and the rest to the secondary axis. So application could define the shape of both axes.