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
To fix this i think to change from linear to log scale.
Unfortunately, i didn't manage to achieve this using XYChart, i always end up with an empty chart.
2)° Example.tsx is an example using XYChart. Sandbox currently is in mode Linear it's why you see a bar displayed. You can switch to log with the example include in the sandbox.
Do you have any ideas or examples how to achieve BarStack with a scale log ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi !
I am facing an issue with linearScale when there is a huge difference between min/max. To illustrate:
For this king of data :
To fix this i think to change from linear to log scale.
Unfortunately, i didn't manage to achieve this using
XYChart
, i always end up with an empty chart.I have build a sandbox to expose the problem : https://codesandbox.io/p/sandbox/visx-scale-linear2log-vw4ekf?file=%2Fsrc%2FRawExample.tsx%3A98%2C36
Sandbox is split in two parts:
1)° RawExample.tsx, don't use XYChart and use directly shape,axis,etc... packages. I manage to have some results using RawExample but i failed to make it fully working on axis / bar alignment.
2)° Example.tsx is an example using XYChart. Sandbox currently is in mode Linear it's why you see a bar displayed. You can switch to log with the example include in the sandbox.
Do you have any ideas or examples how to achieve
BarStack
with a scale log ?Beta Was this translation helpful? Give feedback.
All reactions