use label props directly instead of labelLayout

This commit is contained in:
Matthias 2023-07-09 13:38:02 +02:00
parent f5725ca2c6
commit 919a736fb2

View File

@ -144,8 +144,10 @@ export function generateTradeSeries(
backgroundColor: theme !== 'dark' ? '#fff' : '#000', backgroundColor: theme !== 'dark' ? '#fff' : '#000',
padding: 2, padding: 2,
color: theme === 'dark' ? '#fff' : '#000', color: theme === 'dark' ? '#fff' : '#000',
rotate: 75,
offset: [10, 0],
align: 'left',
}, },
labelLayout: { rotate: 75, align: 'left', dx: 10 },
itemStyle: { itemStyle: {
// color: tradeSellColor, // color: tradeSellColor,
color: (v) => v.data[4], color: (v) => v.data[4],