Darksecond/chartism

View on GitHub
app/assets/javascripts/chartism.js

Summary

Maintainability
A
0 mins
Test Coverage
//= require chartist

$(function() {
  $('[data-chartism-url]').each(function() {
    $.getJSON($(this).data('chartism-url'), function(response) {
      new Chartist[response.type]("#" + this.id, response.data, response.options);
    }.bind(this));
  });
});