如何在图表控件中绘制多个y轴 [英] how to plot multiple y-axis in chart control

查看:103
本文介绍了如何在图表控件中绘制多个y轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#创建一个Web应用程序。我有四个值(或系列)伏特,电流,wh和温度,我必须在图表控件中绘制时间,其中(时间)将显示在x轴上。一切都做得很好。但是值的范围不同,如一个在1000以上的范围内,另一个在0到10之间,另一个显示negetive值等。我想为每个系列创建不同的y轴。我创建了两个y轴,它是系列(YAxisType),主要和次要的属性。是否有可能创建多个y轴?我在谷歌搜索但没有得到任何正确的答案。请帮助我。

I am creating a web application using c#. I have four values(or series) volt,current,wh and temperature which I will have to plot in a chart control against time which(time) will be shown in x-axis. All things done correctly. But the range of the values are different like one is in range of more than 1000,another lies between 0 to 10,another shows negetive value,etc. I want to create different y-axis for each series.I had created two y-axis which is a property of series(YAxisType),primary and secondary. Is it possible to create multiple y-axis?I had searched in google but didn't get any proper answer. Please help me.

推荐答案

请在Microsoft的示例中找到您的答案。这是我过去做过的事情。



有一章多个y轴



http://archive.msdn.microsoft.com/mschart [ ^ ]
Please find your answer in the samples from Microsoft. It's something I have done in the past.

There is a chapter "multiple y-axis"

http://archive.msdn.microsoft.com/mschart[^]


这篇关于如何在图表控件中绘制多个y轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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