How to set the width for chart columns

Hello,

I am having trouble setting the width of the chart column.

The width works file with multiple items, however, when they are fewer items it does not display properly (too large/wide). I will image there is a way to control this?

Please see image below.


Any help will be appreciated.




1 Reply

DG Durga Gopalakrishnan Syncfusion Team June 21, 2022 02:25 PM UTC

Hi Dodzi,

 

Greetings from Syncfusion.

 

We suggest you to specify ColumnWidth for chart series to customize the width of column rectangle. The value ranges from 0 to 1. Please check with the below sample and screenshot.

 

<SfChart>  <ChartSeriesCollection>            <ChartSeries ColumnWidth="0.3"></ChartSeries>   </ChartSeriesCollection></SfChart>

 

Kindly revert us if you have any concerns.

 

Regards,

Durga Gopalakrishnan.


Attachment: ColumnWidth_443449c7.zip

Loader.
Up arrow icon