Skip to content

Zoom should be called when chart is applicable for it #125

@random-one

Description

@random-one

I asked my question in #89, but since it's closed I think I should submit it as an issue, so I'm moving my comment here.

I think I have a problem with the check you dropped for the zoom in v0.3.2.
I have a pie chart that gets redrawn because of this zoom and I receive following error in c3:

Uncaught TypeError: Cannot read property 'data_types' of null at ChartInternal.c3_chart_internal_fn.isPieType (c3.js:3581)

I don't think pie charts are applicable for zoom, so why to redraw the chart once again?
Maybe the problem is somewhere else but this is where I got so far.

@maxklenk Could you please check this? I also tested c3 only without angular-chart and without angular and could not reproduce the error.

At the point when applyZoom is called and the error happens I have a baseConfiguration that's basically an empty object - no data['json'], no data['types'], which causes the c3 crash.

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