Results 1 to 2 of 2

Thread: Chart inconsisten plotting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Somewhere in Vermont, USA - unless I'm not
    Posts
    10,721

    Default Chart inconsisten plotting

    [apologies for the misspelling in the title - should be "inconsistent"]

    Hello -

    DF 21 MS SQL DAW Driver. CJ 18.6.0

    I've got a line chart (well a bunch, but they all have the same issue). Y axis is numbers & it seems accurate. X axis is time & that's where my issue is. This is a chart that is updated dynamically as a test is run.

    We are presetting the X axis to 60 (seconds). The chart is updated roughly every second - though it can vary from .8 seconds to 1.2 or so. This means that the passed X coordinates might be 1.0, 2.1, 3.4, 4.3, etc. The last coordinate passed is always 60.0

    I am passing X & Y coordinates to a procedure:

    Code:
        Procedure SetDataManual String sXVal String sYVal
            tdSeriesPointValues[] ThePointData
            Integer i iSize
    
            Get ptData of ghoGraphDataLoader to ThePointData 
            Move (SizeOfArray(ThePointData)) to iSize
            Move sXVal to ThePointData[iSize].sXAxisValue
            Move sYVal to ThePointData[iSize].sYAxisValue1
            Set ptData of ghoGraphDataLoader to ThePointData 
            
            Function_Return (SizeOfArray(ThePointData))
        End_Procedure
    The above is setting the struct in cSIGCJGridChartControl.pkg:

    Code:
    Struct tdSeriesPointValues
        String sXAxisValue
        String sYAxisValue1
        String sYAxisValue2
        String sYAxisValue3
        String sYAxisValue4
        String sToolTipText
    End_Struct
    As the line is built we've watched what's passed & as deep as we can get into the control, the #'s match what was originally passed.

    The issue is that the chart line "falls behind" & ends early sometimes - varying between 45 & 60 seconds. Here's one that got kinda close:

    Click image for larger version. 

Name:	chartshort.png 
Views:	55 
Size:	48.6 KB 
ID:	15505

    As we watch it build the line, we can see it falling behind: say the # passed is 30.00, but the chart is only to 28, then 41.2 passed & the chart is at 37, etc.

    We have tried passing integer values and numbers up to 4 decimal places - no difference.

    Anyone have any thoughts?
    Last edited by Garret Mott; 1-Jul-2022 at 07:06 AM.
    Garret

    I don't like making plans for the day... 'cause then the word 'premeditated' gets thrown around in the courtroom...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •