Fixed issue where the tooltip was getting clipped at the top of the plot under certain circumstances.
- A chart's configuration in no longer passed as properties of the component, but rather a
<Chart>
is composed by adding components such as axes, tracker, tooltip, and a plot. - Charts can now have two x-axes and two y-axes.
- Continuous numeric axes can have linear, power, or log scales.
- Scatter charts allow setting/updating the spline (interpolation).
- Cleaner updates and performance.
- Now allows setting cadence for plots with sporadic updates so that the time updates smoothly.
- Cleaner approach to resetting a chart.
Examples are updated with new version.
The SVG container height was incorrectly calculated for the raster chart.
- When the
width
property for theScatterChart
and for theRasterChart
are not specified, and thewidth
is specified as a percentage in the newsvgStyle
properties object, then the width of the chart will remain that percentage of the parent's width when the user resizes the window. - Updated the SVG node ids so that they remain unique to each instance of a chart type.
Updated project to be a pure library and moved examples, that uses this library, to a separate project.
Previously, the charts subscribed to the rxjs observable upon mounting, and started consuming data. The default behaviour after this update is the same. However, now, using the shouldSubscribe
property, you can control when the chart subscribes to the data.
Switched the ChartData
interface to use a map of series names to new series data, rather than relying on indexes. Now a map with the series name and an array of Datum
is all that's needed to update the chart. This removes the tedious bookkeeping required when using indexes.
Failed attempts
Moved typescript to devDeps, moved react stuff to peerDeps.
Apparently github actions ignores the .npmignore file.
Added .npmignore to exclude images in docs and move deps to devDeps.
- Removed unused dependencies
- Added user docs (more to come)
- Refactored a few things to clean up the code
- Cleaned up a few unused props
Suppressed react-hook warning about exhaustive deps and added comment describe why this is needed and ok.
- Added repo information to the package.json for publishing to npm
- Removed the
private
field from package.json
- Fixed all the test conditions to use
expect
properly :) - Cleaned up the limiting condition for the radial magnifier.
- Added ticks and labels for the time-axis of the bar-magnifier available in the raster chart.
- Added a number of tests.
- Fixed raster chart controls so that when the magnifier is selected, and then the tooltip, the tooltip actually shows.
- Cleaned up the raster-chart example
- Cleaned up a bunch of small bugs related to the selection of enhancements (tooltip, tracker, magnifier).
- Updated the test application style.
- Added radial magnifier to the scatter chart; has axes in the lens
- Added time to the tracker for the scatter and raster charts
- Added regex filtering of series in the plot to reduce clutter
- Exposed the rxjs observable and update callbacks
- Updated the examples