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
|
? t.formatting
|
||||||
: `{a}<br />{b} : {c}${relative ? ' ({d}%)' : ''}`
|
: `{a}<br />{b} : {c}${relative ? ' ({d}%)' : ''}`
|
||||||
|
|
||||||
pieLegend = {
|
if (l?.isCustomized) {
|
||||||
top: l?.position?.top || 'auto',
|
pieLegend = {
|
||||||
right: l?.position?.right || 'auto',
|
top: l?.position?.top || 'auto',
|
||||||
bottom: l?.position?.bottom || 'auto',
|
right: l?.position?.right || 'auto',
|
||||||
left: l?.position?.left || 'auto',
|
bottom: l?.position?.bottom || 'auto',
|
||||||
|
left: l?.position?.left || 'auto',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user