Closed canesen7 closed 3 months ago
@martynasma have you any idea for this problem? How can I set the category chart instead of setAll for smooth animation?
Maybe you can just override the label directly:
xAxis.dataItems[1].get("label").setAll({
text: "New label"
});
Yeah this can change the category axis label but y axis data's category not equals with serie data in animation. So second data's bar not shown. I need to set yAxis's data without setAll @martynasma
I'm not entirely sure I understand what you're trying to achieve.
With each "slide" you want to change both number of categories and their names, but still want to animate the values?
Yeah, sorry for my bad english. This is exactly what I want. I want the change values and category axis with each slide and smooth animated values. Like last video but with smooth animations @martynasma
Well, if you want to animate values, you need the data item to stay the same.
The easiest way to do that would be to just override label text for an existing item, then update data item's values.
I'm not aware of any other workaround.
Yeah I understand. I encounter this problem with serie values. setIndex, insertIndex and removeIndex was solved this problem. Data items not stay the same but I've smooth animations so I think the workaround is that. Instead of setall, change the data items one by one may be the workaround. So I tried exactly same the yAxis data items but insertIndex, setIndex or removeIndex not work this class. Why is that? @martynasma
In 5.9.9 version setIndex, removeIndex and insertIndex works correctly, so this is solved my issue.
Hi. I've a question about set data and yAxis. I try to animate pyramid chart with slider. I can do this with all categories like this.
https://github.com/amcharts/amcharts5/assets/67913330/7007fb28-abd9-4ec1-b104-80888d7fd28e
But when I try to category change with
https://github.com/amcharts/amcharts5/assets/67913330/236147bb-8122-4cd5-acb5-c8b3bbc514fc
As you can see it doesn't change the category.
So I tried to setAll instead of setIndex, this can set the category but animation not work clearly as you can see.
https://github.com/amcharts/amcharts5/assets/67913330/847fdeee-3c80-4275-a4f4-bf7af7f82f3a
It doesn't work with clearly. What can I do for clear animation and change the yAxis category area.
Here is my code