I have a horizontally stacked bar chart in my app, and I'm trying to figure out how to get the X axis value when the user clicks on a bar. The problem is when I look at the values at runtime, the Y values are fine but the X values are all 0.
In the image above, light blue bars are from Series[0]
and represent the MTD sales and the darker ones from Series[1]
represent last year's sales for the same month. My goal is that when the user double-clicks on a bar, he is taken to the detailed sales report for that salesperson.
I haven't tried switching my chart to a regular bar chart because this is what I will need to look like in the end. But I'm starting to wonder if the reason I'm getting all 0's in the XValue
field is because of this or because I am using strings as the type of value.
Has anyone ever encountered this or have any clues as to how to fix it?