stream-charts 1.1.1 → 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/changes.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ## version 1.1.1 (code-sandbox example)
4
8
 
5
9
  Added link to code-sandbox example.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-charts",
3
- "version": "1.1.1",
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