data processing in mongo query
This commit is contained in:
@@ -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: '' },
|
||||
|
||||
Reference in New Issue
Block a user