Skip to content

How is it possible to redraw the chart in Ember? #2

Open

Description

@wonderful123

I have tried all manner of redrawing functions. The only thing I can get to working is to make a toggle that hides and reshows a component.

I want to update the data and redraw. I can't seem to get this to work.

The javascript examples don't translate directly to the ember implementation it seems.

I've tried code like this:
let stage = anychart.graphics.create(); this.chart.container(stage); this.chart.draw();

I've been able to use removeAllSeries() but what if I wanted to change a label or something?

Activity

  1. Shestac92 commented on Apr 23, 2018

    @Shestac92

    @wonderful123
    The chart calls redraw function automatically when something in appearance is changed. All you need is to change any visual setting or set new data. Here you can find a pure JS sample of adding a new point and changing chart label text Absolutely the same approach you can use in the integration.

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

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