Skip to content

Commit 4904796

Browse files
jessetyjerairrest
authored andcommitted
Fix broken sample code in README (#319)
Sample code in the README had not been updated to reflect the changes made in: edaa5da The Chart.js reference has been renamed from `chart_instance` to `chartInstance`.
1 parent b404772 commit 4904796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Chart.js instance can be accessed by placing a ref to the element as:
8787
```js
8888
render() {
8989
componentDidMount() {
90-
console.log(this.refs.chart.chart_instance); // returns a Chart.js instance reference
90+
console.log(this.refs.chart.chartInstance); // returns a Chart.js instance reference
9191
}
9292
return (
9393
<Doughnut ref='chart' data={data} />

0 commit comments

Comments
 (0)