Skip to content

Commit d425b5b

Browse files
authored
Update index.rst
1 parent f4565d9 commit d425b5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Chartjs/doc/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ custom Stimulus controller:
185185
console.log(event.detail.config);
186186
187187
// For instance you can format Y axis
188-
event.detail.config.options.scales.y.ticks.callback = function (value, index, values) {
189-
/* ... */
188+
event.detail.config.options.scales.y.ticks = {
189+
'callback': function (value, index, values) {
190+
/* ... */
191+
}
190192
};
191193
}
192194

0 commit comments

Comments
 (0)