Skip to content

Category Axis Performance and Date Axis Support

Pre-release
Pre-release
Compare
Choose a tag to compare
@teamdandelion teamdandelion released this 02 Jul 18:42
· 7643 commits to master since this release

Category Axis Performance

@bmalehorn implemented caching in CategoryAxis text measurement, which significantly improved performance
Since cat-caching has been so important, the cash-cat is this release's mascot.
image

Time Formatters

@lewin added Time formatters, so that Numeric Axes can better render dates and times. The formatter will automatically determine which level of granularity to specify the data (whether it is in years, months, days, etc.). A better timescale (#617) is in works to deal with the problem of better tick generation, so this formatter is only a temporary solution to time data.

To use the time formatters, just pass in a new Plottable.Formatter.Time() into the Numeric Axis constructor, and project an appropriate parser to parse the date data. A very simple example can be seen in quicktests/date-test.html

SI Formatters

Since you now have so much cash, there is now a convenient way to display it on an Axis. Tired of seeing "I got 10000000000 dollas"? @jtlan's new SISuffixFormatter would help you format it to "I got 10G dollas". Notes Justin: "This is actually not very good for displaying currency." But it is good for... ScIence!

Bugfixes

A number of other minor bugs were fixed, for example:

  • AreaPlots now add a padding exception if they have a constant baseline. (#602)
  • Scales now appropriately update their domain when a plot is removed. (#603)
  • Axes now render properly when there is no associated Plot (#614)
  • Removed components will no longer throw a Cannot measure text in a removed node error (#624)
  • Fix a label layout bug (#590)

image

Release Music

Kitten Air, Scott & Brendo