How to create chart like this

Hello, When i set arrangeByIndex: true in CategoryAxis i got chart below

0fad43099b356f6b3624.jpeg

But i want my chart sort time like this image below:


Group 4.png

Thanks.


1 Reply

DP Dharanitharan Palanisamy Syncfusion Team June 28, 2021 08:04 AM UTC

Hi Thanh, 
 
Greetings from the Syncfusion team. We reviewed your query and would like to point out that the chart is rendered with the given values by default in the category axis, and you can sort the data and render the chart using sorting options. The demo and help manual that follows will assist you in achieving your goal. 
 
 
We would also like to point out that based on the screenshot, we see that you are working with date and time values, so using the DateTime or DateTimeCategory axis will sort the data by default and render the chart linearly, which will help you meet your requirements and give you more options to customize the axis and their features. To learn more about this, please see the help documents below. 
 
Help documents 

Please revert us if you need further assistance on this. 

Thanks, 
Dharanitharan. P 


Loader.
Up arrow icon