Skip to Content

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

Jun 21, 2017 at 07:57 AM


avatar image

Hi everybody,

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

You can find the documentation here:
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:

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,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Chapman Wong
Dec 26, 2017 at 10:24 AM

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.

10 |10000 characters needed characters left characters exceeded