Align x axis of one ChartArea with y axis of another?

旧街凉风 提交于 2019-12-10 15:52:49

问题


I'm working with System.Windows.Forms.DataVisualization.Charting (C#, VS 2008).

I have two ChartAreas, one containing a SeriesChartType.Line and the other containing a SeriesChartType.RangeBar. Separatly the two charts plot what I want. The horizontal axis in both is time, and I'd like to align them so that I can zoom them together, 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 AlignWithChartArea of one chart with the name of the other, the linked axes are crossed (the horizontal (x) axis of the Line chart links with the vertical (x) axis of the RangeBar chart).

Is there an easy way to get the two horizontal axes to link, or am I asking too much?

Thanks as always.


回答1:


Is this what you are looking for? http://betterdashboards.wordpress.com/2009/02/11/align-multiple-chart-areas/



来源:https://stackoverflow.com/questions/5862624/align-x-axis-of-one-chartarea-with-y-axis-of-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!