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

setting legend order #48

Closed
wyyang opened this Issue Mar 14, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@wyyang

wyyang commented Mar 14, 2017

I would like to have the legends in an alphabetical order. It looks like HighChart allows using legendIndex in series to set order. How do I pass this on with chartit? Thanks

series: [{
        name: 'base',
        data: [10, 20, 30],
        index: 1,
        legendIndex: 0
    },
    {
        name: 'sec',
        data: [30, 20, 10],
        index: 0,
        legendIndex: 1
    }
]

@atodorov atodorov closed this in f63132c Mar 21, 2017

@atodorov

This comment has been minimized.

Show comment
Hide comment
@atodorov

atodorov Mar 21, 2017

Contributor

Sorry for the late reply. Just git pull, run the demo and check
http://127.0.0.1:8000/demo/chart/multi-axes-and-types/

I have updated the example to pass legendIndex. In this example you can also see how to configure options for the different terms even if they come from the same model.

Contributor

atodorov commented Mar 21, 2017

Sorry for the late reply. Just git pull, run the demo and check
http://127.0.0.1:8000/demo/chart/multi-axes-and-types/

I have updated the example to pass legendIndex. In this example you can also see how to configure options for the different terms even if they come from the same model.

@wyyang

This comment has been minimized.

Show comment
Hide comment
@wyyang

wyyang Mar 24, 2017

Works great. Thanks!

wyyang commented Mar 24, 2017

Works great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment