Skip to Content
avatar image
Former Member

Generating custom chart


I am facing the following problem while generating charts.

I have a tag query returning current values of two tags - T1 and T2.

If I am plotting the chart at 12.20,

The X-axis points would be 11.30, 12.00, 12.30, 1.00.

T2 should be shown as bar in the current 30 minutes range, i.e. 12.00 to 12.30

T1 should be plotted as a straight line for the whole duration.

I have used a Custom chart setting the pen type to Line for T1 and pen type as Bar for T2. If I set the value at 12.00 to T2 and for all all other X-axis points to 0, I get a bar at 12.00. How can I set the bar in the range from 12 to 12.30?

If I iterate through all the points in the range 12 to 12.30 and set it to T2, then the X-axis range goes haywire!

Can anybody help me out? Thanks.

Edited by: Amrita Nandagopal on Jan 31, 2008 9:11 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 31, 2008 at 02:06 PM

    Post an XML sample of your data and the XML for your display chart....


    Add comment
    10|10000 characters needed characters exceeded

    • Don't set the value to zero, when what you want is actually nullnumber.

      If you were building an Illuminator Document, you would set the T2 fields to nullnumber (a BLS function) except when you have valid data. Since your X axis is tied to the datetime value, no other Bars would show up except for those positions which had data. If you set it to zero, xMII still trys to plot it as a bar.

      Hope this helps,