简体   繁体   English

如何在图表控件中绘制多个y轴

[英]how to plot multiple y-axis in chart control

I am creating a web application using c#. 我正在使用c#创建一个Web应用程序。 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. 我有四个值(或系列)伏特,电流,wh和温度,我将不得不在图表控件中绘制相对于时间的信息,时间将在x轴上显示。 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. 但是值的范围不同,例如一个在1000以上的范围内,另一个在0到10之间,另一个显示有营养的值,等等。 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. 我想为每个系列创建不同的y轴。我创建了两个y轴,这是series(YAxisType)系列的一个属性,主要和次要。 Is it possible to create multiple y-axis?I had searched in google but didn't get any proper answer. 是否可以创建多个y轴?我在Google中进行了搜索,但没有得到正确的答案。 Please help me. 请帮我。

You can only use 2 y-axis(primary and secondary) 您只能使用2个y轴(主要和次要)

But you can create a few chart areas within one chart control Or you can add a button that will hide one chart control and show another(with others 2 axis) 但是您可以在一个图表控件中创建一些图表区域,也可以添加一个按钮,以隐藏一个图表控件并显示另一个图表控件(其他两个轴)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM