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.
2 parents a552bd0 + 0a1492e commit 4e3f4bfCopy full SHA for 4e3f4bf
lib/rails_charts/base_chart.rb
@@ -60,6 +60,12 @@ def js_code
60
option && chart.setOption(option);
61
62
window.RailsCharts.charts["#{container_id}"] = chart;
63
+
64
+ chart.on('rendered', function() {
65
+ document.dispatchEvent(new CustomEvent('chart:rendered', {
66
+ detail: { containerId: '#{container_id}' }
67
+ }));
68
+ });
69
}
70
71
function destroy_#{chart_id}(e) {
0 commit comments