How to skip points in a ZedGraph line chart in C #

I have code that draws good line charts in ZedGraph .

I cannot completely change the code, but I would like some of the lines to not have a y value for every point on the x axis.

I can do it in Excel, but I don’t know how to do it in ZedGraph. I am creating a graph with .AddCurve .

How to do it?

+2
source share
1 answer
Values

NaN must do the trick.

If you want to split a line, for example, between x = 1 and x = 2, just add a point (1.5, double.NaN). The zedgraf should make a space on its own.

+3
source

All Articles