Skip to content
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

Passing chart options to Highcharts.js? #78

Open
obsoke opened this issue Oct 5, 2016 · 1 comment
Open

Passing chart options to Highcharts.js? #78

obsoke opened this issue Oct 5, 2016 · 1 comment

Comments

@obsoke
Copy link

obsoke commented Oct 5, 2016

Hello. Firstly, thanks for graphos - it's been helpful.

I'm trying to pass chart options to Highcharts.js but they don't seem to be passing through to the initializing JavaScript. Here is some sample code:

from graphos.sources.simple import SimpleDataSource
from graphos.renderers.highcharts import BarChart

def view(request):
    data = [ ... ]
    data_source = SimpleDataSource(data=data)

    chart = BarChart(data_source, options={'title': 'My Chart', 'legend': {'enabled' : False}})

I'm trying to set turn the legend off as per Highchart docs, but no luck. Any suggestions?

@manjunath24
Copy link
Contributor

manjunath24 commented Feb 20, 2017

@obsoke Your code should work fine, can you check the view source and let us know if legend: {"enabled": false} is set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants