Centering the Left Axis on a certain position in bar series
Posted: Wed Mar 12, 2008 9:49 am
hi,
i have a BarSeries that needs its Left axis 0 position to allways be the center of the chart.
here's an example :
what i have here are two bars with positive values,
below them is enough space for similer bar's with same but negative values.
to do this i have to force the Maximum and Minimum properties of the left axis.
the problem here is that without "Auto" property i cant know whats the REAL maximum because of the label margins and styles etc..
so what i need is basically a way to calculate or retreive the real maximum and minimum values taking in account all mark padding and size etc.
the current example was made by settin auto then setting it to manual and adjusting visually until it looks like auto mode..
this is kind of hard to explain but i hope you understood what im looking for.
thank you.[/img]
i have a BarSeries that needs its Left axis 0 position to allways be the center of the chart.
here's an example :
what i have here are two bars with positive values,
below them is enough space for similer bar's with same but negative values.
to do this i have to force the Maximum and Minimum properties of the left axis.
the problem here is that without "Auto" property i cant know whats the REAL maximum because of the label margins and styles etc..
so what i need is basically a way to calculate or retreive the real maximum and minimum values taking in account all mark padding and size etc.
the current example was made by settin auto then setting it to manual and adjusting visually until it looks like auto mode..
this is kind of hard to explain but i hope you understood what im looking for.
thank you.[/img]