Home forums Using CanvasJS Plot Area does not cover 100% of the canvas element

This topic contains 2 replies, has 2 voices, and was last updated by  Bivek Singh 3 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15435

    prathamesh
    Member

    Hello,
    Has there been any progress on this front? I’m facing an issue identical to this with a line chart. Because the plot area does not cover the entire area of the canvas element with class canvasjs-chart-canvas, the last two data points in a data set of 1000 are not hoverable/visible. This is compromising our product’s precision. Since I have access to the source code, can you guys atleast guide me on where to set the plot area to a 100% of the canvas element?

    #15445

    prathamesh
    Member

    Is there more information required from my side?

    #15448

    Bivek Singh
    Moderator

    @prathamesh,

    You can set maximum and minimum for axisX to allocate some extra space at the beginning and ending of the chart plotArea. This will solve your problem of not being able to hover. Please take a look at this jsFiddle.
    However, if you want to expand the chart plotArea to 100% of the canvas, you can take a look at this work-around without editing the source file.
    If this doesn’t solve our problem, please let us know and we’ll assist you further for it.

    —-
    Bivek Singh,
    Team CanvasJS

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

You must be logged in to reply to this topic.