对齐一个ChartArea的X轴与另一y轴的? [英] Align x axis of one ChartArea with y axis of another?

查看:216
本文介绍了对齐一个ChartArea的X轴与另一y轴的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正与System.Windows.Forms.DataVisualization.Charting(C#,Visual Studio 2008)。

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

我有两个 ChartArea S,一种含一个 SeriesChartType.Line 和其他含 SeriesChartType.RangeBar 。 Separatly两个图表绘制我想要什么。横轴均是时候了,我想它们对齐,这样我可以放大在一起,等等。

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.

图表的横轴为x轴,但 RangeBar 图表的横轴是y轴。当我设置了 AlignWithChartArea 一个图表与其他的名称,链接轴交叉(使用的垂直折线图链接的水平(X)轴的(X)的RangeBar图表轴)。

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?

感谢一如既往。

推荐答案

这是你在找什么? HTTP://betterdashboards.word$p$ pss.com/2009/02/11/align-multiple-chart-areas/

这篇关于对齐一个ChartArea的X轴与另一y轴的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆