I am working with System.Windows.Forms.DataVisualization.Charting (C #, VS 2008).
I have two ChartArea
s, one contains SeriesChartType.Line
and the other SeriesChartType.RangeBar
. Separately, two charts show what I want. The horizontal axis in both cases is time, and I would like to align them so that I can enlarge them, etc.
The horizontal axis of the Line
chart is the x axis, but the horizontal axis of the RangeBar
chart is the y axis. When I set the AlignWithChartArea
one chart with the name of another, the associated axes intersect (the horizontal (x) axis of the line chart is linked to the vertical (x) axis of the RangeBar chart).
Is there an easy way to snap two horizontal axes, or am I asking too much?
Thanks, as always.
John source share