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 44f5193 commit 828da27Copy full SHA for 828da27
src/Chartjs/doc/index.rst
@@ -185,6 +185,7 @@ 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: {
@@ -194,6 +195,12 @@ custom Stimulus controller:
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
+ /* ... */
202
+ },
203
+ };
204
}
205
206
_onConnect(event) {
0 commit comments