Sha256: 067c0d03ac552e1f7f5a2725b3231533d44b8bfd94a08247116042360fc35051

Contents?: true

Size: 610 Bytes

Versions: 10

Compression:

Stored size: 610 Bytes

Contents

= re_card_content do
  %h5.section-title Insights
  %canvas{ id: :insights_chart, height: 300 }

:javascript
  $.get("#{insights_dashboards_path(:json)}", function(data) {
    new Chart(document.getElementById('insights_chart').getContext('2d'), {
      type: 'line',
      data: data,
      options: {
        responsive: true,
        plugins: {
          legend: false,
        },
        layout: {
          padding: 20,
        },
        scales: {
          y: {
            min: 0,
            ticks: { stepSize: 1 },
            grid: { display: false },
          },
        },
      },
    });
  });

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_execution-0.1.12 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.11 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.10 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.9 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.8 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.7 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.5 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.4 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.2 app/views/rails_execution/dashboards/charts/_insights.html.haml
rails_execution-0.1.1 app/views/rails_execution/dashboards/charts/_insights.html.haml