michelson/lazy_high_charts

Charts in partial blank after actioncable "refresh"

caspivey opened this issue · 0 comments

Using actionable I am refreshing/regenerating a partial as records get inserted/updated.

The issue I am seeing is that when the partial is regenerated the chart is not displaying. I took a look at the page source and before and after and verified that the JavaScript for the chart is there.

<%= high_chart('MDF_Chart', chart) do |c| %> <%= raw 'options.plotOptions.pie.dataLabels.formatter = function() { if (this.y >= 1) return this.point.name; }' %> <% end %>

test