Group Bar Chart Help #244
-
Its impossible to use the components now. Its so complex and non sense. The examples make no sense and are incomplete which make even harder to understand this "great" improvement XL. PS: You guys destroyed a great library. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@amf-paulo-airship Here is a bar group example: https://github.com/FormidableLabs/victory-native-xl/blob/main/example/app/bar-group.tsx PS: The old Victory library still exists. Just point to the correct package version. |
Beta Was this translation helpful? Give feedback.
-
Thank you guys, I was frustrated with the completely re-design, ended up finding my self. I have some level of complexity for my charts , they are dynamic, I could do almost everything. Only thing I am not finding a way to do is change x axle dynamically, I'll elaborate on it: I have a class attendance report that compare years and months, when selected a month chart will show weekdays average as a bar-group and each bar on the group is a year. Everything works fine , however when I try remove days of week, to instead show all , show the ones I select. I could not find a way to do it. I had almost working , but the chat creates X axis values by it self which messes everything up, my last attempt winch I almost got it right was painting the disabled weekday in gray. you can see that for drawing the bars in the group was super easy to drawing just the ones I want based on my year selection:
I thought I could do the same for the group using points, or any other property in the function... But I fail. could some one give me an idea how to do this ? You can see in my screenshot that Monday and Tuesday are disable just for illustration but I could not accomplish the task. Chart should be showing the whole Monday and Tuesday Group in gray or just not rendering it. Also I did not post all my logic for brevity reasons. There is a lot of dynamic bar generation on this logic but everything works great, just lacking this last logic. I can navigate months and hide/show years.... Last frontier is hiding and showing days of week here is how the code looks like:
here is how my data looks like: |
Beta Was this translation helpful? Give feedback.
@amf-paulo-airship Here is a bar group example: https://github.com/FormidableLabs/victory-native-xl/blob/main/example/app/bar-group.tsx
PS: The old Victory library still exists. Just point to the correct package version.