Freshwater-Initiative / Observatory

Codebase for water research
MIT License
9 stars 12 forks source link

consider control for legend in plots #1

Closed jphuong closed 6 years ago

jphuong commented 6 years ago

Should really consider making this easier to control

https://stackoverflow.com/questions/4700614/how-to-put-the-legend-out-of-the-plot

jphuong commented 6 years ago

This issue can be closed.

Legends have been added to the renderValueInBoxplot function for time-series interpretation. The protocol has been adapted to render line colors with the data labels, from the reference gridded cells and separately for inserted observation data. Reference gridded cells can be discovered using the mapping file and the findCentroidCode function. Function parameters have been included to control the location of the reference legend and the observation legend.

One limitation to the function redesign is that it was developed to aid time-series interpretations. A similar control for data legends could be designed for the renderValueInPoints function.