23
Views
2
Comments
[Apex Charts Library] How to show each legend value in descending order from bottom in ApexColumnChart
apex-charts-library
Reactive icon
Forge asset by Team Nexllence
Application Type
Reactive

I'm using ApexCharts Library.

I want each legend data on every label to show in descending order from the bottom in stacked column chart of each label.

If what i want is possible, this  Stacked Column Chart should be like this.

As I point with red mark, the y-axis values of each label must be sorted in descending order from the bottom.

Is this possible with this library? 

 Currently, the order of data on y-axis seems to be out of order...

I'd like to know how to do it.




Best Regards,

2022-08-03 04-32-50
Ravi Punjwani

Hi Tsubasa,

I believe stacked columns charts would always start from the base. So the first one goes at the bottom, then second on top of it, and so on.

You can try reversing the data first before sending in the inputs if all you want is reversing the order of items in each column.

UserImage.jpg
Tsubasa Yoshikawa

Hi Ravi,

I see.

That means 

you add ListSort Action in this GetLineChartDataAfterFetch and sort Demo_ChartDatapoints.DataPoints.Value in Descending order ?


I'd like to see if my above understanding is right. 

What exactly have you tried? 

Did you see what I want?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.