Home Forums Chart Support How can set dataPointWidth default value?

How can set dataPointWidth default value?

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

    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

    @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

    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.