-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I'm able to choose the callback from the admin, but on the webpage it doesn't display.
I'm using this with the Wagtail News Template so the only difference I think is that I'm calling the chart from within the blocks.StreamBlock class
utils/blocks.py
CHART_CONFIG_CALLBACKS = (
('barchart_labels', 'Bigger font and bold labels'),
)
class StoryBlock(blocks.StreamBlock):
chart = ChartBlock(callbacks=CHART_CONFIG_CALLBACKS)
static_src/javascript/main.js
window.barchart_labels = function() {
return {
plugins: {
datalabels: {
font: {
size: 18,
weight: 'bold',
},
color: '#ff0000'
}
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels