Releases: palantir/plottable
Add Drag Box Selection Interactions
Merge pull request #362 from palantir/refactor-drag-interaction Refactor drag interaction
API hooks for animations
Add in an API hook on the Renderer to toggle animation, Renderer.animate.
Have animation default to disabled on all renderers.
AreaRenderer, Relative Date Axis, BarRenderer
Good afternoon;
New features have arrived:
- AreaRenderer draws a line and fills in the area under it. The shape of the baseline can be set to another line, allowing stacking of AreaRenderers.
generateRelativeDateFormatter()
creates a formatter for an axis that displays ticks in terms of fixed time increments from a start date, for example, "days since the start of the project"
In addition, BarRenderer
and CategoryBarRenderer
have been merged into BarRenderer
, which can now take any type of Scale as the x-scale. By default, the bars are left-aligned with the x-value assigned to the bar; the bar alignment can be set on the renderer via barAlignment()
.
Projectors, Smart Scales, DataSources, GridRenderer, Interpolating Color Scale
- Added
Renderer.project
- a single API for setting attributes across all types of renderers. Scale
s are now smarter - they keep track of the data and accessors that back them, so they canautoDomain
intelligentlyDataSource
is now a model object that keeps track of data backingPlottable.Renderers
. It supports event propagation to update renderers when data changes.GridRenderer
is now implemented, along with interpolating color scales to back them.
Category Bar Renderer and Ordinal Scale
Good evening!
OrdinalScale
has been added. These map an array of values (usually strings) over a numerical range, evenly-distributed.
CategoryRenderer
and CategoryBarRenderer
have been added. CategoryRenderer
represents renderers that have a category x-axis and numeric y-axis. CategoryBarRenderer
is a bar renderer with a category x-axis.
StandardChart, Smarter Accessors, Cool Demos
- Cool new demo, the commit chart!
- Things are styled better! Borders are gone!
- We have a StandardChart template for easy charting!
- Accessors now mimic d3 accessor behavior.
Include built files and version number
Corrected version number.
Gridlines, ComponentMerges, smaller API
We implemented Gridlines.
We implemented Component.merge as an easy way of creating ComponentGroups.
Also, we protected anchor, computeLayout, and render to make the API smaller. From the point forward use renderTo(<svg>)
instead.
Dataset Metadata, Better Axes, More Powerful Accessors
IDataset
now includes anIMetadata
field, which includes the css class, color, and any other data that might be series-wide (bar renderer bar width, etc).- In conjunction with the previous change, dataset accessors (
IAccessor
s) are now more powerful, taking in a single datum, the datum's index, and also dataset-wide metadata. This allows, for example, the use of color scales to set series colors. Renderer
s now also take in a colorAccessor, which can be used to vary the color of rendered elements (for example, to implement color scales on a scatterplot).Axis
now hides tick labels that would land outside the bounding box, rather than cutting them off.Axis
also now has the ability to position tick labels relative to the tick mark (left/right/center forXAxis
and top/middle/bottom forYAxis
)plottable.d.ts
no longer shows private variables. Previously, they were shown with an implicit type.
Fix #160, ComponentGroup positioning
Fix a nasty bug where ComponentGroups would misposition their subcomponents.