Home forums Using CanvasJS How can set dataPointWidth default value?

This topic contains 2 replies, has 2 voices, and was last updated by  shv22 1 month, 1 week ago.

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

    shv22
    Member

    Hi, I am using Canvasjs property dataPointWidth. For a particular scenario in a stacked column chart, I need dataPointWidth property. I have also other several charts like column, line etc. As I am using the same function to load all the charts. So, now as I defined dataPointWidth property everywhere it is setting the same which is correct. But I don’t want that. So, I tried by using if statement when the only id for stackedColumn comes then it set to particular value otherwise set to default. But if I use the default, auto it does not load the chart. So, is there any default keyword which I can use in this scenario

    #15134

    Suyash Singh
    Moderator

    @shv22,

    dataPointWidth applies to all the dataSeries present in the chart. You can’t mention dataPointWidth for specific series as of now.
    ___
    Suyash Singh
    Team CanvasJS

    #15142

    shv22
    Member

    Ok, thanks. I have thought of a workaround by using maxDataPointWidth so that it won’t after a max width which will help to solve my case.

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

You must be logged in to reply to this topic.