.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.Bar("##{id}", {
  labels: labels,
  series: series
}, {
  stackBars: true,
  axisY: {
    labelInterpolationFnc: function(value) {
      return value;
    }
  }
}).on('draw', function(data) {
  if(data.type === 'bar') {
    data.element.attr({
      style: 'stroke-width: 30px'
    });
  }
});