Closed GabrielAziz closed 3 months ago
"2022-05-22"
date format works for me
"2022-05-22"
date format works for me
Could you post your options please? and your package.json would also help, thanks :)
easy mate ;)
xaxis: {
type: "datetime",
categories: props.x_axis,
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
About
i'm working on a vue 3 project with typescript and i need the x axis to recognize in dates
I've tried in several ways, including creating data with new Date(), passing "2018-09-19T00:00:00" in categories and labels, Date.now, but nothing is recognized
I realized that everything in the composition API is more complicated, but unfortunately there is no way to escape it. I don't know if what I'm doing is wrong, if there's a right way to do this or if something is wrong.
What did I do:
I import the component
I declare the information:
so I return:
and use:
these are the versions in my package. json:
using new date
labels: [new Date("2019-03-12").getTime(), new Date("2019-03-17").getTime()],