Axis tick label wrapping, reusable Components
Pre-release
Pre-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.
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, aremove()
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 theremoveComponent()
call. As Components can now be reused, it is possible to implement functionality such as showing/hiding renderers byremove()
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 thequicktests
directory.