本文介绍了如何在C#中的ZedGraph折线图中错过点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些代码可以在 ZedGraph 中绘制漂亮的折线图./p>
我无法完全更改代码,但我希望某些行的x轴上的每个点的y值都不是.
我可以在Excel中执行此操作,但是我不知道如何在ZedGraph中执行此操作.我用 .AddCurve
创建图形.
我该怎么做?
解决方案
NaN
值应该可以解决问题.
例如,如果您想在x = 1和x = 2之间换行,只需添加一个点(1.5,double.NaN)即可.Zedgraph应该自己弥补差距.
I have bit of code that draws nice line charts in ZedGraph.
I can not change the code entirely, but I would like to have some of the lines not have a y value for each point on the x-axis.
I can do this in Excel, but I don't know how to in ZedGraph.I create graph with .AddCurve
.
How do I do this?
解决方案
NaN
values should do the trick.
If you want to break the line for example between x=1 and x=2, just add a point (1.5, double.NaN). Zedgraph should make the gap by itself.
这篇关于如何在C#中的ZedGraph折线图中错过点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!