Skip to content

Stylin'!

Pre-release
Pre-release
Compare
Choose a tag to compare
@jtlan jtlan released this 13 Aug 23:02
· 7216 commits to master since this release

screen shot 2014-08-13 at 3 58 44 pm

Good afternoon,

We've got some big changes coming up, but we thought we'd do a release now so that you guys can pick up some fixes and enhancements we made:

  • Sweet new stylings! (see above) There are now "canonical" Plottable colors in colors.ts.
  • Gridlines at x=0 and y=0 now have the zeroline CSS class.
  • CSS classes have been renamed: renderer, bar-renderer, line-renderer, area-renderer have been renamed to plot, bar-plot, line-plot, area-plot, respectively.
  • Formatters are now simple functions that take in a single argument and returns a string. Factory methods exist in Formatters.ts.
  • Axis.Numeric width calculation should work better now.
  • Users can set the extra space between the tick labels and the outer edge of the axis using the gutter().
  • Users can set the length of the end ticks independently with endTickLength().
  • Plot.Line and Plot.Area can now project display properties based on the data:
areaPlot.project("fill", function(d) { return d.color; });

The first datum will be used to determine the display properties in these cases.