Bars grouping

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jval
Posts: 40
Joined: Mon May 04, 2015 1:46 pm

Bars grouping

Post by jval » Thu Aug 20, 2015 4:42 pm

Hello.

I would like to use Bars: some series I assign to Y1 axis and some series to Y2 axis. But location and indexes are the same.
For example:
series1: location: 0 , value: 10 , index: 0 (1 value) - Y
series2: location: 0 , value: 15 , index: 0 (1 value) - Y
series3: location: 0 , value: 10.5 , index: 0 (1 value) - Y2
series4: location: 0 , value: 14.9 , index: 0 (1 value) - Y2

Is it possible to show these series without overlapping?

Thank you.

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Bars grouping

Post by ArctionPasi » Fri Aug 21, 2015 11:45 am

Hi,

the grouping options in ViewXY.BarViewOptions apply for series having the same axes. It is made so because there's bar stacking options too and stacking bars having different Y ranges axes would be awkward at least.

Maybe you could add two "proxy" series for the first axis, that present second Y axis data. You can convert the values from second axis to first axis scale by using axis2.ValueToCoord method and passing that coordinate to axis1.CoordToValue and finally setting that value to proxy series.
LightningChart Support Team, PT

Post Reply