ipfsTransitionsNoInactive = {
const getColor = (index) => ["#f72585","#b5179e","#7209b7","#560bad","#480ca8","#3a0ca3","#3f37c9","#4361ee","#4895ef","#4cc9f0", '#ee6c4d', '#43aa8b', '#2b2d42'][index]
const container = html`<canvas></canvas>`;
const myChart = new Chart(container, {
type: 'bar',
data: {
labels: ['4 weeks ago', '3 weeks ago', '2 weeks ago', 'Last week'],
datasets: Object.keys(ipfsData[0].transitions).map((label, index) => ({
label,
data: ipfsData.map(s => s.transitions[label]),
fill: false,
backgroundColor: getColor(index)
})).filter(d => d.label !== 'Inactive')
}
});
return container;
}