From 180cbad9ae6e786f0a6b3ed386b99fdf799f8677 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 28 Feb 2021 20:59:16 +0100 Subject: [PATCH] visualMap is an array... --- src/components/charts/TradesLog.vue | 30 +++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/components/charts/TradesLog.vue b/src/components/charts/TradesLog.vue index 75f5822b..6fecd228 100644 --- a/src/components/charts/TradesLog.vue +++ b/src/components/charts/TradesLog.vue @@ -102,20 +102,22 @@ export default class TradesLogChart extends Vue { end: 100, }, ], - visualMap: { - show: true, - seriesIndex: 0, - pieces: [ - { - max: 0.0, - color: '#f84960', - }, - { - min: 0.0, - color: '#2ed191', - }, - ], - }, + visualMap: [ + { + show: true, + seriesIndex: 0, + pieces: [ + { + max: 0.0, + color: '#f84960', + }, + { + min: 0.0, + color: '#2ed191', + }, + ], + }, + ], series: [ { type: 'bar',