CottageLabs / facetview2

a pure javascript frontend for ElasticSearch search indices.
MIT License
78 stars 31 forks source link

reportview: horizontal_multibar legend and tooltip order #5

Open Steven-Eardley opened 9 years ago

Steven-Eardley commented 9 years ago

This is due to highcharts' handling of inverting the graph. When the chart is drawn horizontally, the bars will be out-of-order from the vertical order, plus out of sync with the labels.

See the following JSFiddle: https://jsfiddle.net/tmr5meas/1/

On line 105, try using series.reverse() - the bars are in a more similar order to the column chart, but the legend is backwards.