You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe/explain the bug
I want to use a Marimekko chart and configure custom colors using the { datum: someField } syntax. This works nicely in other charts, but for Marimekko this seems to not be behaving the same.
Being able to configure the color per dimension by using the "datum" color variant
Desktop (please complete the following information):
OS: Linux
Browser Chromium
Version 130
Additional information
I'm not very familiar with the codebase, but my initial investigation lead to hooks.ts:233 where getColor gets the dimensionDatum which is in the process of being constructed. This does not have access to properties that are defined on the original dimensions and that are not otherwise used like id and value.
Therefore, this also partially affects the custom color variant as it doesn't have access to all the input properties.
The text was updated successfully, but these errors were encountered:
Linschlager
changed the title
Marimekko cannot set custom color via datum
marimekko: cannot set custom color via datum
Dec 4, 2024
Describe/explain the bug
I want to use a Marimekko chart and configure custom colors using the
{ datum: someField }
syntax. This works nicely in other charts, but for Marimekko this seems to not be behaving the same.To Reproduce
https://codesandbox.io/p/sandbox/cntjxj
Expected behavior
Being able to configure the color per dimension by using the "datum" color variant
Desktop (please complete the following information):
Additional information
I'm not very familiar with the codebase, but my initial investigation lead to
hooks.ts:233
wheregetColor
gets thedimensionDatum
which is in the process of being constructed. This does not have access to properties that are defined on the originaldimensions
and that are not otherwise used likeid
andvalue
.Therefore, this also partially affects the
custom
color variant as it doesn't have access to all the input properties.The text was updated successfully, but these errors were encountered: