Jump to content
Software FX Community

Chart.hidden


pre

Recommended Posts

Hi,

I am plotting a multi series line chart, where certain values can be null. I end up with a broken line chart when using Chart.Hidden.

I am building up a multi dimensional array of points, such that I am using Chart.Hidden to indicate null values.

TestString1 111.2

TestString2 0.0

TestString3 0.0

TestString4

TestFloat4 400.25 1200.25

TestFloat2 200.25 1000.25

TestInt1 100

TestDateTime1 0.0 0.0

In the above example I have 8 series, with varying no. of points. I have null values as well as zero. I do not want to plot the null values.

The X axis is Date Time. I did read a similar blog http://community.softwarefx.com/forums/p/9420/22668.aspx#22668

But in my case I just cannot ignore setting values if a point is null.

The X axis is not a category x axis like in a bar chart...

Any pointers on why the line chart is ending up broken.

Link to comment
Share on other sites

  • 6 months later...

Hi,

The issue may be related to the fact that Chart FX forces the same amount of points per series. When this is not the case, an unexpected behavior may be experienced. It is worth to mention that you can specify hidden points to create the illusion of some invisible points in the chart through the use of hidden points. However, although some points may be not visible, they must be present (exist) as invisible points in the series (uneven series are not supported).

In Chart FX 7 (our latest .Net product) there is a property called "InterpolateHidden" which (when set to true) allows to draw a connecting line over missing data points. When this property is set to false, hidden points in the chart will result in a "broken" line in the chart. When set to true, the chart will draw a connecting so prevent the broken line. In previous versions of Chart FX, it was not possible to create charts which markers where not evenly spaced without passing both X and Y data. The InterpolateHidden property now makes it possible to create non even spaced charts with only Y values. Additionally, please note that you can use the InitializeHidden property to instruct the chart to intialize all non-initialized values to a hidden value.

Example

To instruct the chart to draw connection lines over hidden points:

chart1.Data.InterpolateHidden = true;

Regards,

RandyJ

Link to comment
Share on other sites

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...