data processing in mongo query

This commit is contained in:
2022-07-17 12:00:14 +02:00
parent 22dfa72d87
commit 480c2601ab
2 changed files with 57 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ export default {
}
}
const renderChart = () => {
const chartData = data.value.map(({ date, value }) => ({ x: date * 1000, y: value }))
const chartData = data.value.map(({ date, value }) => ({ x: date, y: value }))
Highcharts.chart(chart.value, {
chart: { styledMode: true, marginBottom: 25 },
title: { text: '' },