Home forums Using CanvasJS overlap x axis

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

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

    Hi,
    I have one issue how to add auto height in cavasJs

    you have to check Below link

    CHECK IN phpfiddl

    this is my example
    https://jsfiddle.net/QwZuf/1659/
    *****************************
    below my script
    *****************************
    var chartBestScore = new CanvasJS.Chart(“chartBestScore”, {
    // height:5500,//in pixels
    animationEnabled: true,
    axisX: {
    labelFontSize: 12
    },
    axisY2: {
    maximum: 100,
    labelFontSize: 14
    },
    toolTip: {
    enabled: false,
    },
    dataPointWidth: 19,
    data: [{
    indexLabelFontColor: “#000000”,
    indexLabelPlacement: “inside”,
    type: “bar”,
    indexLabelFontSize: 15,
    axisYType: “secondary”,
    color: “#1B77D1”,
    indexLabel: “indexLabel”,
    dataPoints: bestScoredAreas
    }]
    });
    chartBestScore.render();

    #21809

    Vishwas R
    Keymaster

    Rajesh,

    You can set height of the chart dynamically with the help of set method. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.