Home forums Report Bugs Trouble with zooming on some datasets.

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5611

    blindo
    Participant

    When drawing multiple line graphs with a thousand or so points, sometimes using the click to zoom feature will cause an error in canvasjs.js on line number 5151 at ctq.lineTo(startPoint.x, baseY); This is because the startPoint data member is still null. Currently I’ve replaced this with the following code and it seems to work fine now.

    
    if(!startPoint){
      startPoint = {x: 0, y:0} 
    }
    ctx.lineTo(startPoint.x, baseY);
    

    Can you shed any light on this issue? Is this an appropriate fix, or am I just masking an actual problem?

    #5616

    Sunil Urs
    Keymaster

    If you can help me recreate the issue, it would be easier for me to figure out he problem and fix the same.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.