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 26694ec commit f73f75dCopy full SHA for f73f75d
src/Chartjs/doc/index.rst
@@ -185,6 +185,17 @@ custom Stimulus controller:
185
console.log(event.detail.config);
186
187
// For instance you can format Y axis
188
+ // Add a new scales config
189
+ event.detail.config.options.scales = {
190
+ y: {
191
+ ticks: {
192
+ callback: function (value, index, values) {
193
+ /* ... */
194
+ }
195
196
197
+ };
198
+ // Add to an existing Y axis config
199
event.detail.config.options.scales.y.ticks = {
200
callback: function (value, index, values) {
201
/* ... */
0 commit comments