juliansteenbakker / community_charts

This project is a fork of google/charts.
Apache License 2.0
84 stars 34 forks source link

InitalSelection y-value point is incorrect for stacked bar graph #9

Open jaytyoung1 opened 1 year ago

jaytyoung1 commented 1 year ago

bar_graph_initial_selection

When setting the InitialSelection behavior on a TimeSeriesChart with stacked bars, the y-value point is not offset with the other bar's y-value. For example, the red point's y-value is correct at $52, but the blue point's y-value should be offset by the $52, instead the blue point is set at $95 as if the bars are not stacked. Once I select this point in the chart, my selectionModel's changedListener corrects the y-value points.

image