I am trying to display daily production data on a line chart in pounds of product produced per hour. We have 2 departments that appear on this chart however, some days 1 of the 2 departments may not be scheduled for production. On these days in my chart, I don't want to show a zero value for pounds per hour because it shows as a sharp dip in productivity. I need the line chart to skip that day for the zero value.Can anyone shed some light on how I can accomplish this?My datasource is a datatable with decimal values for the points on the line.Thanks in advance for your help,Trevor BraunThe Stirling Creamery Ltd.
Sorry about that... the first screenshot is using dontplot; second using zero; third using interpolatesimple; and last using interpolatecustom
Thought some visuals might help make this clearer. Note that the values to be plotted are indicated in the legend.
this
and finally...
Using Trevor's logic:
added the following lines along with adding his event handler as the event handler for InterpolateValues event.
using
...
None of which in my opinion yields acceptable results.
David,
That does work for the 7.1 implementation but the result is not actually useful as far as I can tell unless the zero value occurs before significant values for that item. In other words it appears that zero values that occur within the range of values for a certain item cause that item to be invisible (un-graphed).
It is my impression that zero values at the beginning or end of the range of columns for a group of items should not display as points at all...the line should start at the first point for which there is a significant value for that item and it should end at the last value for which there is a significant value for that item.
Does that make sense David? Is that possible?
I think Trevor has shown some logic that will work for cycling through values within a range of values and for causing the line for item(s) with zero values to run through points that are averages of points on either side while accurately reflecting the slope of the line for that item but I don't think it will address the zero values that are at the beginning and end of the range of values for that item. I also wonder if it is possible to suppress the point from appearing at those values since they are in fact averages and don't represent actual values. Did that work for you Trevor? I'd be interested to see more of the code (the part where you are calling the interpolate method, etc.).
Thanks.
Allen
allenovereem said:I tried the line above just to see what the effect would be but I get an error message when I try to compile (C#): The name 'DontPlot' does not exist in the class or namespace
Infragistics.UltraChart.Shared.Styles.NullHandling.DontPlot
Thanks Trevor. Again I'm pretty new to this (Infragistics and C#) so it may be awhile before I get to the point where I can try this out but this looks great. Much appreciated. I'll respond with whatever code I use (if it seems pertinent to this thread) whenever I get to that point. Thanks again.
allen