dk-chart
v1.2.1
Published
simple & lightweight financial chart
Downloads
6
Maintainers
Readme
dk-chart
simple & lightweight financial chart package
Creating candle chart
import { DKChart } from 'dk-chart';
const chart = new DKChart(document.getElementById('container'));
chart.setData([
{
date: 'Sun Jun 27 2021 23:58:44 GMT+0900',
open: 10,
high: 20,
low: 5,
close: 15,
},
{
date: 'Mon Jun 28 2021 23:58:44 GMT+0900',
open: 15,
high: 27,
low: 10,
close: 11,
},
{
date: 'Tue Jun 29 2021 23:58:44 GMT+0900',
open: 15,
high: 27,
low: 10,
close: 11,
},
{
date: 'Wed Jun 30 2021 23:58:44 GMT+0900',
open: 15,
high: 27,
low: 10,
close: 11,
}
]);