Code sample
let labels = [1,2,3];
let series = [
[
{meta: 'description', value: 1 },
{meta: 'description', value: 5},
{meta: 'description', value: 3}
],
[
{meta: 'other description', value: 2},
{meta: 'other description', value: 4},
{meta: 'other description', value: 2}
]
];
let plugins = [
Chartist.plugins.lrTooltip({
template:'<h3 class="small">{{meta}}</h3><p class="small"><i class="glyphicon glyphicon-tag"></i> $ {{y}}</p>',
labelOffset:{
x : 15
}
})
];
var chart = new Chartist.Bar('#myChart', {labels, series}, {plugins, stackBars:true});
var chartLine = new Chartist.Line('#myChartLine', {labels, series}, {plugins});