Skip to content

Passing chart options to Highcharts.js? #78

Open
@obsoke

Description

@obsoke

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions