
So I have the above flot stacked bar using flot. Right now I also have a hover effect where when over any bar within that the main bar, it shows the number for that part. What I want to show is the percentage for part that they are over in reference to the current bar instead of the number however I don’t see anywhere how I can get to total of the bar (ie, looking for the number that is around 4200 based on this bar).
In order to get the total you will need to look at the data and find the elements in the series that correspond to the clicked item, then sum their values.