stream-charts 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,6 +14,8 @@ The following plot types are currently available:
14
14
  3. **Bar Plot**: for plotting time-series as bars that show the current value and its minimum, maximum, and mean values for all times and time-windows.
15
15
  4. **Poincare Plot**: for plotting function iterates (`f[n](t)` vs `f[n-m](t)`).
16
16
 
17
+ > Try it on codesandbox [stream-charts](https://codesandbox.io/p/sandbox/n7c8jm)
18
+
17
19
  `Charts` are composable using react components. So you can add different axis types, multiple axes, trackers, tooltips, and plots. `stream-charts` provides the following react components from which to build your own charts:
18
20
  1. The [Chart](#chart-usage) serves as the container, holding the other components as children, and providing the data to the plot.
19
21
  2. The [ContinuousAxis](#continuous-axes-usage) and [OrdinalAxis](#ordinal-axes-usage) components define the x- and y-axes, and provide the scales for the axes. Charts are required to have at least one x-axis and one y-axis.
package/changes.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # change history
2
2
 
3
+ ## version 1.1.2 (continuous x-axes labels not updating on theme change)
4
+
5
+ Fixed an issue where the labels on the continuous x-axes were not updating when the theme changed.
6
+
7
+ ## version 1.1.1 (code-sandbox example)
8
+
9
+ Added link to code-sandbox example.
10
+
3
11
  ## version 1.1.0 (bar chart, Poincare chart, refactoring)
4
12
  1. Added bar chart
5
13
  2. Added Poincare chart
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-charts",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Charts for steaming data",
5
5
  "author": "Rob Philipp",
6
6
  "homepage": "https://robphilipp.github.io/stream-charts/",
@@ -653,13 +653,13 @@ export function addContinuousNumericXAxis(
653
653
  svg
654
654
  .append<SVGTextElement>('text')
655
655
  .attr('id', labelIdFor(chartId, location))
656
- .style('text-anchor', 'middle')
656
+ .attr('text-anchor', 'middle')
657
657
  // when the axis is at the top, want the label to hang from the top (y=0) of the plot
658
- .style('dominant-baseline', location === AxisLocation.Top ? "hanging" : "baseline")
659
- .style('font-size', axesLabelFont.size)
660
- .style('fill', axesLabelFont.color)
661
- .style('font-family', axesLabelFont.family)
662
- .style('font-weight', axesLabelFont.weight)
658
+ .attr('dominant-baseline', location === AxisLocation.Top ? "hanging" : "baseline")
659
+ .attr('font-size', axesLabelFont.size)
660
+ .attr('fill', axesLabelFont.color)
661
+ .attr('font-family', axesLabelFont.family)
662
+ .attr('font-weight', axesLabelFont.weight)
663
663
  .attr('transform', `translate(${margin.left + plotDimensions.width / 2}, ${continuousLabelYTranslation(location, plotDimensions, margin)})`)
664
664
  .text(axisLabel)
665
665