Sha256: d5fccfe0c9126e32d7045b3221f74e4ac8b79a7c5387de8d187a11cae684e312

Contents?: true

Size: 595 Bytes

Versions: 56

Compression:

Stored size: 595 Bytes

Contents

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

.table-responsive.chart-table
  table.table.table-striped
    tbody
      tr
        -for label in labels
          th #{label}
      tr
        -for element in serie
          td #{element}

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

  new Chartist.Pie("##{id}", {
      labels: labels,
      series: serie
    }, {
      fullWidth: true,
      showLabel: false,
      height: '300px',
      plugins: [
        Chartist.plugins.legend()
      ]
    }
    );

css:
  .pie .ct-legend.ct-legend-inside {
    position: absolute;
    top: 60px;
  }

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
sinatra-hexacta-1.0.2 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-1.0.1 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-1.0.0 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.12 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.11 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.10 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.9 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.8 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.7 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.6 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.5 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.4 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.3 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.2 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.1 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.9.0 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.8.8 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.8.7 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.8.6 lib/sinatra/views/charts/pie.slim
sinatra-hexacta-0.8.5 lib/sinatra/views/charts/pie.slim