May be define the sorting of function CLASS() (see attached file).
040720171.qvf 176.0 K
Hi all, has anyone found a resolution or a workaround for the legend sorting issue that works? I am running into the same exact issue. I am also using the Limitation property to get the top 10 dimension values and the sorting between the stacked bar chart and legend is not working or matching.
Try this in your script
LOAD * INLINE [
DaysBucket is your Field in Data which would map automatically.
And use SortDaysBucket in frontend in your Sorting options for BarChart. Adjust it Ascending or Descending as per you required.
Can you tell how many values does your dimension has? If not many then it can be hard coded.
I don't think the values inide a Dimension changes....
Plus the Inline Load I gave would wort the values Dynamically...
If 2 is missing then it would automatically take 3 as 2nd value