Skip to content

Axis tick label wrapping, reusable Components

Pre-release
Pre-release
Compare
Choose a tag to compare
@jtlan jtlan released this 08 May 01:46
· 8830 commits to master since this release

Good Evening,

This version brings some new functionality:

  • Axis tick label wrapping: Before, long overlapping text labels on category axes would be hidden. Now, they are wrapped to additional lines if there is room. The width of a Y-axis and the height of the X-axis can be set by the user to create more room.
    wrappedlabels
    The current algorithm is described in detail in #368. Improved tick wrapping algorithms, as well as the ability to insert custom algorithms, will probably be coming in the future.
  • Reusable Components: Previously, calling remove() on a Component would effectively destroy it. Now, a remove()ed Component is removed from the DOM, but not disconnected from the Broadcasters it is listening to, allowing it to be re-added to the DOM later. Additionally, Components can be removed from ComponentGroups using the removeComponent() call. As Components can now be reused, it is possible to implement functionality such as showing/hiding renderers by remove()ing them and adding them back in, or to change the placement of a Plottable chart on the page by rendering it to a different SVG. For a demonstration of the new functionality, please see addRemoveRenderers-quicktest.html in the quicktests directory.