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.
The point is that as I go through the points using my logic, I'm not able to identify that the point I'm at for an item is the only significant point for that item. There must be a way (maybe a foreach loop at the Row level) I could execute that would help me determine that without dropping out of my loop through the polylines? Does that explain my predicament of ignorance any more clearly? Thanks. Allen
You didn't answer the question about how to post code nicely like you do. Is that not possible?
I understand how to plot a point. My problem is that I don't understand the inheritance for the component well enough to determine that I've got a single point to map (that I have one significant value amongst nulls for that particular item). If I knew how to access the value for each day (in my example) to determine that only one of the days has a value to plot, I could then proceed to instantiate and plot an ellipse at that location.
Thanks,
Allen
the only way to do this is to handle FillSceneGraph, search for the isolated point, create a Symbol primitive for that point, and add it to the SceneGraph. the line chart is ignoring this point since 2 points are required to create a line segment.
Didn't end up using any of the code above as yet.
I've basically got the component displaying the lines as I'd expect in the real world...
Null columns at the end of the period don't graph zero values (see Green for example which has 4 days with no values at the end of the period).
Null columns at the beginning of the period don't graph zero values (see Red which has no value for the first date column).
Null columns within the range of dates are not plotted but the slope of the line is maintained in line with the progression toward the next valid value (see Blue for example).
My issue now is that I am not plotting the value for Purple (8.5) which has non-valued dates all around it but should still show as a valid point on the graph. How to do this?
I'd like to post the code for this as well but I'm not sure how to do that. I'll post as a file if I have to but I'd rather paste into the body of the post as I see the Infragistics people doing successfully. How to do that?
you need to set the position of the point ... at this point, the value doesn't count for much.
you can find the position of a data value by mapping it on one or both of the axes...
IAdvanceAxis xAxis = this.Grid["X"] as IAdvanceAxis;
IAdvanceAxis yAxis = this.Grid["Y"] as IAdvanceAxis;
int positionX = Convert.ToInt32(xAxis.Map(5));
int positionY = Convert.ToInt32(xAxis.Map(5));
pl.points[x].point = new Point(positionX, positionY);