flutter-charts icon indicating copy to clipboard operation
flutter-charts copied to clipboard

Incorrect item width for OnItemClicked

Open vsilux opened this issue 2 years ago • 0 comments

The width of the element to detect clicks on chart elements is calculated by the size of the entire chart widget. But when we use Y-axis decoration with showValues: true, the width of the chart decreases. Thus, the width of the element (bar) decreased. This causes a problem in _ChartWidget. _getClickLocation due to an incorrectly calculated item index that is forwards to: ChartBehavior._onChartItemClicked

vsilux avatar Apr 19 '22 15:04 vsilux