'Show current date on apexchart rangeBar
Solution 1:[1]
You could display your date as an annotation on your x or y axis.
Here is how you could do it in your chart options (on the x axis so displayed vertically on your chart) :
annotations: {
xaxis: [
{
x: new Date().getTime(),
borderColor: '#00E396',
label: {
borderColor: '#00E396',
style: {
color: '#fff',
background: '#00E396'
},
text: "Today"
}
}
]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | rak007 |