chart = {
const figure = html`<div style="height: 500px;">`;
Highcharts.chart(figure, {
chart: {
type: "dumbbell",
inverted: true
},
legend: {
enabled: false
},
subtitle: {
text: "1960 vs 2018"
},
title: {
text: "Change in Life Expectancy"
},
tooltip: {
shared: true
},
xAxis: {
type: "category"
},
yAxis: {
title: {
text: "Life Expectancy (years)"
}
},
series: [{
name: "Life expectancy change",
data
}]
});
return figure;
}