Fix default legend repositiong in pie and doughnut charts
This commit is contained in:
parent
45c7e3b4ad
commit
c3c9ee89d3
@ -190,11 +190,13 @@ export default class Chart extends BaseChart {
|
||||
? t.formatting
|
||||
: `{a}<br />{b} : {c}${relative ? ' ({d}%)' : ''}`
|
||||
|
||||
pieLegend = {
|
||||
top: l?.position?.top || 'auto',
|
||||
right: l?.position?.right || 'auto',
|
||||
bottom: l?.position?.bottom || 'auto',
|
||||
left: l?.position?.left || 'auto',
|
||||
if (l?.isCustomized) {
|
||||
pieLegend = {
|
||||
top: l?.position?.top || 'auto',
|
||||
right: l?.position?.right || 'auto',
|
||||
bottom: l?.position?.bottom || 'auto',
|
||||
left: l?.position?.left || 'auto',
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user