lizardsystem / lizard-map

Lizard-map provides basic map interaction for Django applications that use a lizard-ui user interface.
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Fix for https://github.com/nens/grondwaterinbrabant-site/issues/13 #18

Closed remcogerlich closed 11 years ago

remcogerlich commented 11 years ago

If percentiles are added to a flot graph, the label of the line these percentiles is changed so that it describes the percentiles too. E.g., a label that used to read

"Grondwaterstand [cmNAP]"

may now read

"Grondwaterstand [cmNAP] (met 10% - 90% percentiel, 25% - 75% percentiel)"

The reason that the percentile data doesn't get its own legend items is that the percentiles and the main data use the exact same color, with different opacities. Opacities aren't shown in the legend, so that makes it impossible to distinguish between the different legend items. Therefore this solution (changing the label of the data that gets the percentiles) was chosen.

reinout commented 11 years ago

My main worry: this becomes a really long label, which probably won't fit in most places where we want to use it. Or does it?

reinout commented 11 years ago

If you merge commit http://github.com/lizardsystem/lizard-map/commit/2ce65d7db1b67195a87c6bd8415ef3bf16d5eca0, travis will run again.

remcogerlich commented 11 years ago

It works in the only place that uses it right now, with room to spare.