-
Notifications
You must be signed in to change notification settings - Fork 794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chart label/stack order #397
Comments
Update. To help troubleshoot, I used human-readable color names. It looks like domain array order for
|
BTW, I noticed both domain and range are missing descriptions, here: |
Related issues: Well, I feel overwhelmed by the various documentation resources. For now, I'm going to put numbers in my fields/labels so that they sort they way I want them to, but it's not ideal. Hopefully some of that documentation tells a story that I just haven't figured out yet for controlling the order of sections of a stacked bar chart |
The last comment in vega/vega-lite#1734 shows an example how to do it in vl2
-- an earlier comment in the same thread also shows a VL1 example
…On Tue, Oct 3, 2017 at 4:01 AM Marjorie Roswell ***@***.***> wrote:
Related issues:
vega/vega-lite#1734 <vega/vega-lite#1734>
vega/vega-lite#2915 <vega/vega-lite#2915>
Well, I feel overwhelmed by the various documentation resources. For now,
I'm going to put numbers in my fields/labels so that they sort they way I
want them to, but it's not ideal. Hopefully some of that documentation
tells a story that I just haven't figured out yet for controlling the order
of sections of a stacked bar chart
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#397 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGypTLB6m2cQQPrLyiar4gQYzXW2b94ks5soU8ygaJpZM4PrAaz>
.
|
@kanitw could you be a little more specific on how one would translate this to Example:
From what I can tell, the "bigger" value alphabetically will always end up on the bottom ("top" in this case). I have three places where I think |
Hmmm. I now think that by "last comment" you might mean this one. In that case, I'm stumped on applying the Digging into
|
I was also struggling with this, but solved it by combining the Vega-lite instructions for ordering with the Altair instructions for using the calculate transform
|
Altair 3 unifies this, and orders on various scales (including axes, legends, etc.) can now be supplied via the |
How can I control the order of labels in a legend, beyond alphabetical ordering?
Also interested in determining the order of stacked charts. (Is that alphabetical, too?)
I've been playing around with scale domain and range, but haven't figured out ordering rules, beyond alphabetical.
Margie
The text was updated successfully, but these errors were encountered: