chart = {
const container = html`<canvas></canvas>`;
const myChart = new Chart(container, {
type: 'line',
data: {
labels: ['2 Weeks Ago', '1 Week Ago', 'This week'],
datasets: [{
label: '# of Users',
data: [12, 100, 40],
fill: true,
backgroundColor:'rgba(20, 20, 132, 0.2)',
borderColor: 'rgba(20, 20, 132, 1)',
borderWidth: 2
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
return container;
}