Skip to content

Commit

Permalink
Described reactive options workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
DakotaWray2 committed Oct 7, 2019
1 parent 2febeb8 commit 10a653c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ The reactivity system at its current state is not **robust**. You will run into

#### Options

The `options` object is not reactive right now. So if you dynamically change the chart options, they will not be recognized by the mixin.
The `options` object is not reactive right now. So if you dynamically change the chart options, they will not be recognized by the mixin. You can create a watcher to destory and rerender when chart options are updated.

If you are using the mixin you need to pass in your options as a prop names `options`. This is important because the mixin will call chart.js `update()` method or destroy and render a new chart. If the mixin renders a new chart it calls `this.renderChart(this.chartData, this.options)`.

Expand Down

0 comments on commit 10a653c

Please sign in to comment.