Home forums Report Bugs Bug report

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 3 months, 3 weeks ago.

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

    When the count of points is less than 12, then I got below error info:
    canvasjs.min.js:546 Uncaught TypeError: Cannot read property ‘x’ of undefined
    at F.getDataPointAtX (canvasjs.min.js:546)
    at $._updateToolTip (canvasjs.min.js:818)
    at $.mouseMoveHandler (canvasjs.min.js:816)
    at p._plotAreaMouseMove (canvasjs.min.js:263)
    at p._mouseEventHandler (canvasjs.min.js:253)
    at HTMLCanvasElement.<anonymous> (canvasjs.min.js:123)
    F.getDataPointAtX @ canvasjs.min.js:546
    $._updateToolTip @ canvasjs.min.js:818
    $.mouseMoveHandler @ canvasjs.min.js:816
    p._plotAreaMouseMove @ canvasjs.min.js:263
    p._mouseEventHandler @ canvasjs.min.js:253
    (anonymous) @ canvasjs.min.js:123

    Here is my code:
    function PlotChart(cd){
    if(document.getElementById(cd.name) == null){
    var v = document.createElement(“div”);
    v.setAttribute(“style”,”height: 240px; width: 100%;”);
    var chart = new CanvasJS.Chart(cd.name, {
    animationEnabled: true,
    zoomEnabled: true,
    theme: “light2”,

    text: cd.name
    includeZero: false,
    valueFormatString: “HH:mm:ss.fff”
    includeZero: false,
    data: [{
    toolTipContent: “{y}”,
    type: “line”,
    dataPoints: cd.dataPoints,
    rangeChanged: syncHandler
    //chart = null;



    Can you kindly create JSFiddle reproducing the issue and share it with us so that we can look into the code, understand the scenario better and help you resolve the issue?

    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.