Sha256: e2f373295bf1b2fc172fc73be71eb5a9bd409b4cc40c5d3e6acbe4be59e380ff

Contents?: true

Size: 558 Bytes

Versions: 109

Compression:

Stored size: 558 Bytes

Contents

.ct-chart id="#{id}"

.table-responsive.chart-table
  table.table.table-striped
    tbody
      tr
        th Serie
        -for label in labels
          th #{label}
      -for serie in series
        tr
          th #{names[series.index(serie)]}
          -for element in serie
            td #{element}


javascript:
  var labels = #{{labels}};
  var series = #{{series}};

  new Chartist.Pie('.ct-chart', {
    series: series
  }, {
    donut: true,
    donutWidth: 60,
    donutSolid: true,
    startAngle: 270,
    total: 200,
    showLabel: true
  });

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
sinatra-hexacta-1.7.20 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.19 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.18 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.17 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.16 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.15 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.14 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.13 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.12 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.11 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.10 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.9 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.8 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.7 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.6 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.5 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.4 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.3 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.2 lib/sinatra/views/charts/gauge.slim
sinatra-hexacta-1.7.0 lib/sinatra/views/charts/gauge.slim