Jump to content
Software FX Community

How do I display a line graph with breakages in the line when a graph has hidden points?


Recommended Posts

Posted

 I want to hide many points of the line graph; I saved the indexes of the points to hide in a list ( 286 Points):

foreach (int tempPointIndex in hiddenPoints) {   mainChart.Data[seriesId, tempPointIndex] = Chart.Hidden;}

The result: the line is broken at the first hidden point.

how can I display a line with many hidden points (more than 280) with different indexes in the chart? 

Posted

You can have hidden points at any location in the chart. For example:

chart.Data.Points = 30;

chart.Data[0,3] = Chart.Hidden;

chart.Data[0,8] = Chart.Hidden;

chart.Data[0,18] = Chart.Hidden;

// All other points set to valid data

Will produce 3 breaks in the line.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...