Skip to content

Releases: crisislab-platform/TimeLine

@crisislab/timeline@0.12.3

25 Jun 03:34

Choose a tag to compare

@crisislab/timeline@0.12.1

27 Feb 09:11

Choose a tag to compare

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

28 May 12:09

Choose a tag to compare

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

30 Jan 23:58

Choose a tag to compare

Minor changes/additions

  • You can now pass a Date object as the time value for data points. Once TypeScript supports Temporal, I'll add Temporal.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

30 Jan 22:02

Choose a tag to compare

Minor changes/additions

  • The timeWindow option is now optional. If unspecified, it gets set to Infinity, 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 passing timeWindow: 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

29 Jan 22:18

Choose a tag to compare

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

28 Jan 21:29

Choose a tag to compare

@crisislab/timeline@0.9.0

25 Jan 23:55

Choose a tag to compare

Major / breaking changes

  • The raw data for a point has been changed to have more useful names
    • x changed to time
    • y changed to value
    • xAxisPlugin is now timeAxisPlugin and yAxisPlugin is now valueAxisPlugin
    • The CSS classes for axis labels have changed to crisislab-timeline-time-axis and crisislab-timeline-value-axis
    • The options xLabel and yLabel have become timeAxisLabel and valueAxisLabel
    • The internal renderX and renderY are still the same because those names make sense
    • The Point interface has been replaced by TimeLineDataPoint and PlainPoint
  • The option timeWindow replaces maxPoints. 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 via chart.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

17 Jan 01:34

Choose a tag to compare

  • Fixes a bad build with the previous publish (@crisislab/timeline@0.8.4)

@crisislab/timeline@0.8.4

17 Jan 01:27

Choose a tag to compare

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