madec-project / ezvis

A dashboard to visualize a synthesis on a structured corpus, using several charts (pies, histograms, ...)
https://ezvis.readthedocs.org/
17 stars 5 forks source link

Histogram: sometimes bars are not chrono-ordered #86

Closed parmentf closed 8 years ago

parmentf commented 8 years ago

Ex: http://vimadec.intra.inist.fr:35284/chart.html?id=chart0 screenshot-vimadec intra inist fr 35284 2015-11-20 13-36-10

Note: this instance contains much data, and has been loaded via several CSV files at the same time, one file per year (that may be the reason why it did not happen on any other instance yet).

The query for the data, in this case do not use any ordering (due to this condition, saying only that any chart type different from histogram should order data on counting value).

One has to add an else block to order on the _id field (asc, and not desc), see these lines in dashboard.js)