-
Notifications
You must be signed in to change notification settings - Fork 206
Open
Description
Here is a simple coding example
`
<script src="https://cdnjs.cloudflare.com/ajax/libs/luxon/2.4.0/luxon.min.js" integrity="sha512-v1zUTZ9zv9Wb2scL/ANxXM6m7yegm/W5SN8SRHNFADdZIuSFFkrEBjNxO803DdFkjoCcJ88g1WHRVlLN6K/O1A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="local.js"></script>
const startingDate = luxon.DateTime.fromRFC2822("01 Aug 2021 00:00 GMT")
let date = luxon.DateTime.fromRFC2822('01 Apr 2017 00:00 Z');
// const startingDate = "01 Aug 2021 00:00 GMT"
console.log(startingDate.valueOf())
const data = {
labels: labels,
datasets: [{
label: 'My First dataset',
data: [
{
x: date.valueOf(),
o: 1,
l: 0.5,
h: 2,
c: 1.5
},
],
}]
};
const config = {
type: 'candlestick',
data: data,
options: {}
};
Metadata
Metadata
Assignees
Labels
No labels
