Vindaar / ggplotnim

A port of ggplot2 for Nim
https://vindaar.github.io/ggplotnim
MIT License
175 stars 15 forks source link

improve date scales w/ TimeZone support, markers in legends, ... #166

Closed Vindaar closed 10 months ago

Vindaar commented 1 year ago

Finally supports showing the geom kind in a legend! And date scales can now take a time zone argument and fixes placement of date ticks for certain format string / date combinations.

* v0.5.10
- add ~timeZone~ option to ~scale_*_date~
  This adds a ~TimeZone~ field to the date scales and uses it to set the
  labels for them. Further, it fixes a few small issues with the date
  algorithms and how they assign the formatting to the correct dates.
- make legend markers reflect usage of markers beyond
  ~geom_point~. Also supports lines and tiles now.
- fixes an issue with facet plots containing a discrete scale causing
  a runtime error trying to compute margin ranges