Releases: crisislab-platform/TimeLine
@crisislab/timeline@0.12.3
- Minor bug fixes in some plugins
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.12.1...@crisislab/timeline@0.12.3
@crisislab/timeline@0.12.1
What's new
-
Added markers! These can be vertical or horizontal and come in several colours and line styles.
Check out the markers online demo or the code demo to see how they work.
- These are still semi-experimental, and a little rough around the edges (especially vertical/time markers). The feature had been sitting around unusable for a year, so I figured I should at least make it available. The API isn't expected to change, but the bugs should get fixed at some point.
-
Added a value window option. This lets you specify a minimum visible vertical area.
You can choose between
"clip"mode, which always has that exact window, clipping off extra data, or"scale"mode, which acts as a good mix between the default scaling behaviour and the window behaviour, letting you have a minimum area visible, but also scale data on either side of 0 to always be visible.The original scaling functionality is still the default and is accessed by omitting this new option.
I think this looks a lot better, but judge for yourself in the live demo.
Known issues
- Many things with time markers
- Value window in clip mode can have data overlap the padding in the chart. The proper solution to this is to implement proper line clipping, but until I get around to that, you can write a plugin to draw white rectangles over it if you want.
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.11.2...@crisislab/timeline@0.12.1
@crisislab/timeline@0.11.2
Patch changes
- Fixed issues with axis scale numbers sometimes overlapping axis labels
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.11.1...@crisislab/timeline@0.11.2
@crisislab/timeline@0.11.1
Minor changes/additions
- You can now pass a
Dateobject as thetimevalue for data points. Once TypeScript supportsTemporal, I'll addTemporal.Instants as well.
Patch changes
- Moved value axis text above marker ticks to avoid overlap with time axis text
- Chart borders & plugins now render even if there isn't enough data to draw a line
- Padding for axis & axis label plguins has been tidied up
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.11.0...@crisislab/timeline@0.11.1
@crisislab/timeline@0.11.0
Minor changes/additions
- The
timeWindowoption is now optional. If unspecified, it gets set toInfinity, and the chart will try to render all the data points provided to it, scaling them to fill the whole canvas. This behaviour can also be achieved by passingtimeWindow: Infinity.
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.10.0...@crisislab/timeline@0.11.0
@crisislab/timeline@0.10.0
Major / breaking changes
- Improved default formatting methods for time and value axes
- Time markers are now aligned to the right instead of the left
Minor changes / additions
- There is a new plugin hook
"calculate-positions". It's called on setup and on resize. You should do all your layout calculations in here rather than in"construct".
Patch changes
- Time markers won't overlap when the window is resized
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.9.1...@crisislab/timeline@0.10.0
@crisislab/timeline@0.9.1
Patch changes
- Fixed overlapping time-axis labels
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.9.0...@crisislab/timeline@0.9.1
@crisislab/timeline@0.9.0
Major / breaking changes
- The raw data for a point has been changed to have more useful names
xchanged totimeychanged tovaluexAxisPluginis nowtimeAxisPluginandyAxisPluginis nowvalueAxisPlugin- The CSS classes for axis labels have changed to
crisislab-timeline-time-axisandcrisislab-timeline-value-axis - The options
xLabelandyLabelhave becometimeAxisLabelandvalueAxisLabel - The internal
renderXandrenderYare still the same because those names make sense - The
Pointinterface has been replaced byTimeLineDataPointandPlainPoint
- The option
timeWindowreplacesmaxPoints. Time-data (x-data) is now calculated more correctly using timestamps rather than point-count. - You no longer need to call
chart.draw()each frame - the chart will keep itself up-to-date. You still need to tell the graph when to process new data viachart.recompute()though. - There is now a demo site: https://crisislab-timeline.pages.dev/examples/
Full Changelog: https://github.com/crisislab-platform/TimeLine/compare/@crisislab/timeline@0.8.5...@crisislab/timeline@0.9.0
@crisislab/timeline@0.8.5
- Fixes a bad build with the previous publish (@crisislab/timeline@0.8.4)
@crisislab/timeline@0.8.4
Minor changes
- You can now choose to position the x-axis on the top or bottom of the chart
- You can now choose to position the y-axis on the left or right of the chart\
Full Changelog: https://github.com/cirsislab-platform/TimeLine/compare/@crisislab/timeline@0.8.3...@crisislab/timeline@0.8.4