Merge pull request #278 from freqtrade/tradesLog_bar

Change tradeslog to barchart
This commit is contained in:
Matthias 2021-03-01 06:50:45 +01:00 committed by GitHub
commit 672bbd73da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,15 +102,35 @@ 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',
}, },