Home Forums Chart Support overlap x axis

overlap x axis

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

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

    you have to check Below link

    https://imgur.com/gallery/JmJ8H6l

    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

    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.