This commit is contained in:
Gerard Burns 2024-04-22 08:38:19 +01:00
parent 0249912154
commit 248764ce98
3 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,7 @@
text: xAxisLabel
}
},
// Providing `type: "datetime"` normally makes Apex Charts parse unix time nicely with no additonal config, but bar charts in horizontal mode don't have a default setting for parsing the labels of dates, and will just spit out the unix time value. It also doesn't seem to respect any date based formatting properties passed in. So we'll just manualy format the labels, the chart still sorts the dates correctly in any case
// Providing `type: "datetime"` normally makes Apex Charts parse unix time nicely with no additonal config, but bar charts in horizontal mode don't have a default setting for parsing the labels of dates, and will just spit out the unix time value. It also doesn't seem to respect any date based formatting properties passed in. So we'll just manually format the labels, the chart still sorts the dates correctly in any case
yaxis: {
labels: {
formatter: yAxisFormatter

View File

@ -75,7 +75,7 @@
}
const isString = typeof value === "string";
// "2025" could be either an ISO 8601 date time string or Unix time.
// "2025" could be either an ISO 8601 datetime string or Unix time.
// There's no way to tell the user's intent without providing more
// granular controls.
// We'll just assume any string without dashes is Unix time.

View File

@ -102,7 +102,6 @@
const editColumn = async () => {
editIsOpen = true
console.log(column.schema);
await tick()
dispatch("edit-column", column.schema)
}