Partition chart should pull from theme and spec not config #1185
Labels
bug
Something isn't working
good first issue
Good for newcomers
Impact:Medium
:partition
Partition/PieChart/Donut/Sunburst/Treemap chart related
Describe the bug
The
config.width
andconfig.height
in the partition chart, at least in the pie chart layout, are overwritten by the parentDimensions.The first part where the
width
andheight
are overwritten is visible in thegetShapeViewModel
before merging the partial config.The second place is in the
partitionMultiGeometries
where we compute thechartWidth
andchartHeight
as derived from themarginedWidth/Height
(always coming from theparentDimensions
). On the same function we should also check theinnerWidth/Height
that also comes from theparentDimensions
To Reproduce
Steps to reproduce the behavior:
width
,height
in the config, instead of the currently proposed workaround with margin/outerSizeRatioExpected behaviour
We should respect the
config.width
andconfig.height
parameters exposed by thePartition
component. If we don't want that feature, we should remove them from the API.Version:
Errors in browser console
N/A
The text was updated successfully, but these errors were encountered: