Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
Data Charts: stop the line when the data ends?
posted

I am on IG/AG ^14.2.

I have a data chart (based upon a data grid) which is fairly dynamic. The history of this arrangement can be found in Plot points of chart based upon multiple attributes, and others dealing with my journey through data charts.

At any rate, with the data being so dynamic, the horizon is changed often by users. In some cases, they set the horizon beyond the production values of certain products. At this point, in the data grid, we typically see nothing in the data grid. Similarly, they want to see the line stop in the data chart. This doesn't happen. The line drops down to 0 or whatever the lowest scaled value is.

How can we make the line stop when the data stops?

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Chris,

    I have been investigating into the issues you are seeing in this case, and if the line is not stopping in the IgxDataChart, this is usually the cause of a couple of things.

    The first is if you are passing the number 0 or whatever the lowest scaled value is into your data as the property that corresponds to the valueMemberPath of your series if you are using an IgxLineSeries or the x/yMemberPath if you are using one of the scatter series. Instead of doing this, you should pass null or Number.NaN as the value as zero is still a value and will be plotted accordingly.

    The second is if you have the UnknownValuePlotting of your series set to “LinearInterpolate,” which I believe is the default. I would recommend setting this to “DontPlot” as this will not plot any of the points that have Number.NaN as their value.

    Combining these two should help you to make breaks in the lines of the IgxDataChart.

    Please let me know if you have any other questions or concerns on this matter.

Children