When creating stacked bar charts with GPL, I usually want to have my chart transposed. When doing so, however, I can't sort the legend in the same order as the colors in the chart (see screenshot below). I can sort the legend reversely with a chart template but this also reverses the colors in the bars itself so that doesn't help.
It is not possible. What the problem is is that with "interval.stack" it has to be the category on the first axis and what gets stacked on the second. So to create the horizontal stacked bar chart you need to transpose the chart, instead of just building it the opposite way to begin with.
It would be nice if "element.stack" had an option to switch these. I've complained about it before for dot plots as well.
I've never been able to get legends in chart templates to behave properly, so if I'm not happy with a chart I will export it to PDF and then edit it in Inkscape. I don't have to do that very often though fortunately.
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
For a list of commands to manage subscriptions, send the command