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
I'm baffled by the interaction between chart rotation and custom axis domain. I understand that xDomain is global and needs to be set in Settings, while y domain can be directly set in the Axis component.
Imagine I have a normal xy-chart but now I want to flip it 90 degrees. If I do it by the rotation prop in Settings, the domain I set on y axis will stop working, because elastic chart will interpret it as xDomain, and demand me to put it in Settings instead. I'd assume the rotation would only affect presentation, not the internal charting logic.
This wouldn't be as much of a problem if domain on Axis and xDomain on Settings are the same type. But they are not. So things like fit, padding wouldn't work on xDomain.
What's more, I can't really "rotate" by switching x/y accessors and flip the axes, since elastic charts enforce that y values to be numeric.
The text was updated successfully, but these errors were encountered:
Yes, these are great points and perfectly valid criticisms of the API. I have run into the same issues myself. Ideally the Axis is independent of the rotation. This behavior has existed for some time now, and has become unprioritized tech debt.
I'm baffled by the interaction between chart rotation and custom axis domain. I understand that
xDomain
is global and needs to be set inSettings
, while y domain can be directly set in theAxis
component.Imagine I have a normal xy-chart but now I want to flip it 90 degrees. If I do it by the
rotation
prop inSettings
, the domain I set on y axis will stop working, because elastic chart will interpret it asxDomain
, and demand me to put it inSettings
instead. I'd assume therotation
would only affect presentation, not the internal charting logic.This wouldn't be as much of a problem if
domain
onAxis
andxDomain
onSettings
are the same type. But they are not. So things likefit
,padding
wouldn't work onxDomain
.What's more, I can't really "rotate" by switching x/y accessors and flip the axes, since elastic charts enforce that y values to be numeric.
The text was updated successfully, but these errors were encountered: