Skip to content

Commit

Permalink
use label props directly instead of labelLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Jul 9, 2023
1 parent f5725ca commit 919a736
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/charts/tradeChartData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ export function generateTradeSeries(
backgroundColor: theme !== 'dark' ? '#fff' : '#000',
padding: 2,
color: theme === 'dark' ? '#fff' : '#000',
rotate: 75,
offset: [10, 0],
align: 'left',
},
labelLayout: { rotate: 75, align: 'left', dx: 10 },
itemStyle: {
// color: tradeSellColor,
color: (v) => v.data[4],
Expand Down

0 comments on commit 919a736

Please sign in to comment.