We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4904796 commit af91828Copy full SHA for af91828
README.md
@@ -85,10 +85,12 @@ In order for Chart.js to obey the custom size you need to set `maintainAspectRat
85
Chart.js instance can be accessed by placing a ref to the element as:
86
87
```js
88
+
89
+componentDidMount() {
90
+ console.log(this.refs.chart.chartInstance); // returns a Chart.js instance reference
91
+}
92
93
render() {
- componentDidMount() {
- console.log(this.refs.chart.chartInstance); // returns a Chart.js instance reference
- }
94
return (
95
<Doughnut ref='chart' data={data} />
96
)
0 commit comments