You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var ctx =chart.chart.ctx; /* Canvas context used to draw with */
76
+
...
77
+
}
78
+
}
79
+
}
80
+
81
+
var chartJsOptions = {
82
+
type:'pie',
83
+
data: myChartData,
84
+
options: myChartOptions
85
+
}
86
+
```
87
+
88
+
[Read here](http://www.chartjs.org/docs/#advanced-usage-creating-plugins) to see what plugins you can write. In the context of drawing static images, ``beforeDraw`` and/or ``afterDraw`` methods makes most sense to implement.
89
+
90
+
[Read here](https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D) to see which methods are available for the ``ctx`` object.
0 commit comments