Home forums Using CanvasJS Bar/Col datapoint width got changed in V1.8.0

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

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

    veeru
    Member

    Hi,

    We were using canvasjs v1.5.0 and have recently upgraded to v1.8.0 and now experiencing the below issue.

    For the below sample data, I get to see the datapointwidth to be different in v.1.5.0 (bigger and better) and in V1.8.0 (smaller). I can set the dataPointWidth manually but I do need to calculate it manually based on the data. Is it something which I am missing to make my chart look like the same with newer version 1.8.0?

    PS: This case is happening when I have jus Y and label.

    var chart = new CanvasJS.Chart(“chartContainer”,
    {
    title:{
    text: “Olympic Medals of all Times (till 2012 Olympics)”
    },
    data: [
    {
    type: “bar”,

    dataPoints: [
    { y: 198, label: “Italy”}
    ]
    },
    {
    type: “bar”,
    dataPoints: [
    { y: 166, label: “Italy”}
    ]
    },
    {
    type: “bar”,
    dataPoints: [
    { y: 185, label: “Italy”}
    ]
    }
    ]
    });

    #14441

    Vishwas R
    Keymaster

    @veeru,

    The behavior was changed due to aesthetic reasons. But still you can control the width of dataPoint by setting dataPointWidth.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.