diff --git a/packages/builder/src/components/design/settings/componentSettings.js b/packages/builder/src/components/design/settings/componentSettings.js
index 15f5ee4523..2a5483d77c 100644
--- a/packages/builder/src/components/design/settings/componentSettings.js
+++ b/packages/builder/src/components/design/settings/componentSettings.js
@@ -9,10 +9,8 @@ import TableSelect from "./controls/TableSelect.svelte"
import ColorPicker from "./controls/ColorPicker.svelte"
import { IconSelect } from "./controls/IconSelect"
import FieldSelect from "./controls/FieldSelect.svelte"
-import ChartFieldSelect from "./controls/ChartFieldSelect.svelte"
import SortableFieldSelect from "./controls/SortableFieldSelect.svelte"
import MultiFieldSelect from "./controls/MultiFieldSelect.svelte"
-import ChartMultiFieldSelect from "./controls/ChartMultiFieldSelect.svelte"
import SearchFieldSelect from "./controls/SearchFieldSelect.svelte"
import SchemaSelect from "./controls/SchemaSelect.svelte"
import SectionSelect from "./controls/SectionSelect.svelte"
@@ -48,9 +46,7 @@ const componentMap = {
color: ColorPicker,
icon: IconSelect,
field: FieldSelect,
- chartfield: ChartFieldSelect,
multifield: MultiFieldSelect,
- chartmultifield: ChartMultiFieldSelect,
searchfield: SearchFieldSelect,
options: OptionsEditor,
schema: SchemaSelect,
diff --git a/packages/builder/src/components/design/settings/controls/ChartFieldSelect.svelte b/packages/builder/src/components/design/settings/controls/ChartFieldSelect.svelte
deleted file mode 100644
index 2f65907e47..0000000000
--- a/packages/builder/src/components/design/settings/controls/ChartFieldSelect.svelte
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
diff --git a/packages/builder/src/components/design/settings/controls/ChartMultifieldSelect.svelte b/packages/builder/src/components/design/settings/controls/ChartMultifieldSelect.svelte
deleted file mode 100644
index 2091b16ae4..0000000000
--- a/packages/builder/src/components/design/settings/controls/ChartMultifieldSelect.svelte
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
diff --git a/packages/builder/src/components/design/settings/controls/Explanation/DetailsModal/subjects/Column.svelte b/packages/builder/src/components/design/settings/controls/Explanation/DetailsModal/subjects/Column.svelte
index d23d70d34c..ef2242dd99 100644
--- a/packages/builder/src/components/design/settings/controls/Explanation/DetailsModal/subjects/Column.svelte
+++ b/packages/builder/src/components/design/settings/controls/Explanation/DetailsModal/subjects/Column.svelte
@@ -10,8 +10,8 @@
return "None"
}
- const epoch = Date.parse(isoString);
- const date = new Date(epoch);
+ const unixTime = Date.parse(isoString);
+ const date = new Date(unixTime);
return date.toLocaleString();
}
diff --git a/packages/client/src/components/app/charts/BarChart.svelte b/packages/client/src/components/app/charts/BarChart.svelte
index 8fa2a29b9a..2682fac4d4 100644
--- a/packages/client/src/components/app/charts/BarChart.svelte
+++ b/packages/client/src/components/app/charts/BarChart.svelte
@@ -79,7 +79,7 @@
text: xAxisLabel
}
},
- // Providing `type: "datetime"` normally makes Apex Charts parse epochs 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 epoch 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 manualy format the labels, the chart still sorts the dates correctly in any case
yaxis: {
labels: {
formatter: yAxisFormatter
diff --git a/packages/client/src/components/app/charts/CandleStickChart.svelte b/packages/client/src/components/app/charts/CandleStickChart.svelte
index 50e4df27a9..224e87c067 100644
--- a/packages/client/src/components/app/charts/CandleStickChart.svelte
+++ b/packages/client/src/components/app/charts/CandleStickChart.svelte
@@ -63,14 +63,13 @@
}
}
- const getValueAsUnixEpoch = (dataprovider, dateColumn, row) => {
+ const getValueAsUnixTime = (dataprovider, dateColumn, row) => {
const value = row[dateColumn]
if (dataProvider?.schema?.[dateColumn]?.type === 'datetime') {
return Date.parse(value);
}
- // Unix epoch
if (typeof value === "number") {
return value;
}
@@ -122,7 +121,7 @@
const close = parseFloat(row[closeColumn])
return [
- getValueAsUnixEpoch(dataProvider, dateColumn, row),
+ getValueAsUnixTime(dataProvider, dateColumn, row),
isNaN(open) ? 0 : open,
isNaN(high) ? 0 : high,
isNaN(low) ? 0 : low,