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
230
How can I "skip" a data point on an axis?
posted

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 Braun
The Stirling Creamery Ltd.

Parents Reply
  • 865
    posted in reply to Allen

    Here is the source code zipped. Let's see if that can be accessed...

    Here is an image of the program output produced by the zipped source code...

     There is a point in the source where I indicate I'll comment this out until I determine how to determine there is only one significant value for a particluar item... As you can see from that bit of code, I'm telling it to plot the ellipse based on the value of that point since I know what it is and since I've intentionally made sure there are no other points with that value.

    If I could replace that with a piece of code that returns a boolean value (perhaps) indicating whether my item has one and only one significant point to plot then I could replace that if statement and be done. Unfortunately I'm not sure how to do that.

    Other than that, I think all the issues with inaccurate line plotting using UltraChart is basically addressed by this code.

    Trevor, I think this is the solution you were looking for with your original post BTW.

    Thoughts? Suggestions for how this idiot (me) can identify whether a point is the only significant point for that item (like Purple in my example)?

    Thanks,

    Allen

Children