Display is wrong

Hi,

We only have one day's worth of data but the candlestick is spread over a number of days, how can we prevent this?


Image_8159_1739472713296


1 Reply

DG Durga Gopalakrishnan Syncfusion Team February 14, 2025 09:56 AM UTC

Hi Alex,


By default, the column width of stock chart series data points is calculated based on the number of data points and the chart's width. For example, when there are fewer data points, each column will be wider, whereas with more data points, each column will be narrower. For a single data point, its width is expanded over multiple days, which is the expected behavior.


You can customize the column width using the ColumnWidth property. The default value is 0.7, and its range is from 0 to 1. You can adjust this value as needed. In the provided sample, we have set the column width to 0.2 for reference.


<SfStockChart>

    <StockChartSeriesCollection>

        <StockChartSeries ColumnWidth="0.2"></StockChartSeries>

    </StockChartSeriesCollection>

</SfStockChart>




Please let us know if you have any concerns.


Regards,

Durga Gopalakrishnan.


Attachment: StockColumnWidth_fba245b6.zip

Loader.
Up arrow icon