Change tradeslog to barchart

This commit is contained in:
Matthias 2021-02-28 20:14:51 +01:00
parent a98debaf59
commit 34da0af17e

View File

@ -102,15 +102,33 @@ export default class TradesLogChart extends Vue {
end: 100, end: 100,
}, },
], ],
visualMap: {
show: true,
seriesIndex: 0,
pieces: [
{
max: 0.0,
color: '#f84960',
},
{
min: 0.0,
color: '#2ed191',
},
],
},
series: [ series: [
{ {
type: 'line', type: 'bar',
name: CHART_PROFIT, name: CHART_PROFIT,
step: 'start', step: 'start',
barGap: '0%',
barCategoryGap: '0%',
animation: false, animation: false,
label: { label: {
show: true, show: true,
position: 'top', position: 'top',
rotate: 90,
offset: [7.5, -20],
formatter: '{@[1]} %', formatter: '{@[1]} %',
color: this.getChartTheme === 'dark' ? '#c2c2c2' : '#3c3c3c', color: this.getChartTheme === 'dark' ? '#c2c2c2' : '#3c3c3c',
}, },