Completed
Last Updated: 03 Feb 2015 16:06 by ADMIN
ADMIN
Boryana
Created on: 19 Nov 2012 08:18
Category: ChartView
Type: Feature Request
2
IMPROVE. RadChartView - Allow aligning the vertical axes of two charts one above the other
Introduce mechanism that will allow the vertical axis to appear at a certain position regardless of the size of its labels. For reference see Stock Series \ Indicators example.
2 comments
ADMIN
Ivan Petrov
Posted on: 03 Feb 2015 14:39
From Q1 2015 developers will be able to use the following code snippet to adjust the axis of one chart to another one.
double topChartVerticalAxisRight = this.radChartView1.View.Margin.Left + this.radChartView1.GetArea<CartesianArea>().Axes[1].Model.LayoutSlot.Right;
double bottomChartVerticalAxisRight = this.radChartView2.View.Margin.Left + this.radChartView2.GetArea<CartesianArea>().Axes[1].Model.LayoutSlot.Right;

int bottomChartNewLeftMargin = (int)(this.radChartView2.View.Margin.Left - (bottomChartVerticalAxisRight - topChartVerticalAxisRight));
this.radChartView2.View.Margin = new Padding(bottomChartNewLeftMargin, this.radChartView2.View.Margin.Top, this.radChartView2.View.Margin.Right, this.radChartView2.View.Margin.Bottom);

Note: the example relies on the two chart controls being located at the same X coordinate.
Jesse Dyck
Posted on: 20 Nov 2012 07:32
I was trying to set the label widths equal for the vertical axes on each chart but couldn't figure out how to access that property.