This is a migrated thread and some comments may be shown as answers.

Align 2 charts vertically?

2 Answers 58 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Deamon
Top achievements
Rank 2
Deamon asked on 15 Nov 2012, 06:08 PM
I have 2 lineseries charts, one under another.  The horizonal axes labels come from the same data set, however the vertical axes for both vary.

Since the labels for the vertical axes are different, the 0 points for each chart are not aligned.  I haven't been able to figure out how to get these to line up.  What am I missing?

I am trying to accomplish something like that is in the demo for ChartView -> Chart Types -> Stock Series \ Indicators except that I want the vertical axes on the right hand side.

Attached is a screen shot of the 2 graph unaligned.

2 Answers, 1 is accepted

Sort by
0
Deamon
Top achievements
Rank 2
answered on 15 Nov 2012, 07:22 PM
This works for me if the the labels for the vertical axes don't change in width...

axVertical2.View.Margin = new Padding(8, 0, 0, 0);

George
0
Boryana
Telerik team
answered on 20 Nov 2012, 12:34 PM
Hello George,

Thank you for contacting us.

Currently, there is no built-in mechanism that will allow aligning the vertical axes of two charts. I have logged it as a feature request to our Public Issue Tracker under ID 13502. To vote for it and subscribe for its status updates follow this link: http://www.telerik.com/support/pits.aspx#/public/winforms/13502. We will do our best to introduce this feature in a future release.

Your Telerik points have been updated for this request.

Regards,
Boryana
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
ChartView
Asked by
Deamon
Top achievements
Rank 2
Answers by
Deamon
Top achievements
Rank 2
Boryana
Telerik team
Share this question
or