Open aishanyagupta opened 1 month ago
@tmcconechy, have you confirmed this one? I still don't quite understand it.
@ericangeles yeah i dont get it, it looked like from the video that some of the data was obviously wrong in the console. Not when clicking a group you select the whole group not the bar. And i dont get the part about right clicking? But trying it i dont see any issues
@aishanyagupta can you update the steps? the data looks ok to me. maybe your looking at a wrong place in the event data?
Hi @tmcconechy,
This data is when we click first and a group is selected then next time when we click we are console is showing this value overall on multiple clicks of a single bar, this is how response is Two different values are coming alternatively.
but, the case I am looking for is when we click on a bar in column grouped chart, I want to find which group it belongs to and also which bar in that group.
here is a screen recorded video screen-capture (11).webm
Please let me know if any further queries.
Thanks
@aishanyagupta Hello, here's my observations on the 'selected' events happening:
From what I'm seeing. When you click the group, it selects the group and focuses on the group (hence receiving the group data when selected event is triggered). Then when you click any element in that group, it selects and focuses on that element. If you click again after that, the focused element is deselected and the group is selected again. I think this is more on a confusion on what's selected rather than the expected data?
Checking on an older version and the behavior is still the same: https://4700-enterprise.demo.design.infor.com/components/column-grouped/example-selected.html
If it's needing the group data when selecting a bar element, we could add a parent index in the data?
Hi @yohannahbautista, The requirement is when we click anywhere on chart we need to know which group it belongs to as well as which bar in that group. I need to know which bar is selected in that group.
Hi @yohannahbautista, The requirement is when we click anywhere on chart we need to know which group it belongs to as well as which bar in that group. I need to know which bar is selected in that group.
@aishanyagupta Would having the index in the data be enough? Maybe something called the childIndex?
Hi @yohannahbautista, The requirement is when we click anywhere on chart we need to know which group it belongs to as well as which bar in that group. I need to know which bar is selected in that group.
@aishanyagupta Would having the index in the data be enough? Maybe something called the childIndex?
@yohannahbautista yes, that will be enough, Thanks
In column grouped chart while clicking on bar of the chart and printing event value. two different values are coming alternatively.
Steps to reproduce
Here is a screen recorded video for easy understanding. screen-capture (9).webm
The expected behavior is to get the same value every time we click on the bar.
ids-enterprise-ng: 4.95.0-dev.0