JSFiddle - React, Tailwind, and code Playground
by randalhsu
JavaScript
var chart = LightweightCharts.createChart(document.body, { width: 400, height: 300 });
var lineSeries = chart.addLineSeries({
lineWidth: 1,
lineStyle: 2,
lineType: 1,
});
lineSeries.setData([
{ time: '2019-04-11', value: 80 },
{ time: '2019-04-12', value: 80},
{ time: '2019-04-20', value: 80 },
]);
chart.timeScale().fitContent();