在zgraph上显示自定义值

时间:2014-10-02 09:58:52

标签: asp.net zedgraph

I have plotted a graph using zedgraph library as shown in figure.On x axis zedgraph automatically plotting values between range in our case 1 to 20 its not showing intermediate values i.e. 1,2,3,4....20 I want show point 1,2,3,4,5...20 as well.How can I do that??

我使用zedgraph库绘制了一个图形,如图所示。在x轴zedgraph上自动绘制范围在我们的情况1到20之间的值,它没有显示中间值,即1,2,3,4 .... 20 I想要显示点1,2,3,4,5 ...... 20。我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

  

MajorStep
  获取或设置此Scale的缩放步长(标记轴值之间的增量)。

http://zedgraph.sourceforge.net/documentation/default.html

请参阅缩放类,向下滚动到MajorStep

http://www.nudoq.org/#!/Packages/ZedGraph/ZedGraph/Scale/P/MajorStep

        .GraphPane.XAxis.Scale.MajorStep = 1;
        .GraphPane.XAxis.Scale.MajorStepAuto = false;  // Not needed, see documentation.