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 +4 -0
- package/package.json +1 -1
- package/src/app/charts/axes/axes.ts +6 -6
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
|
@@ -653,13 +653,13 @@ export function addContinuousNumericXAxis(
|
|
|
653
653
|
svg
|
|
654
654
|
.append<SVGTextElement>('text')
|
|
655
655
|
.attr('id', labelIdFor(chartId, location))
|
|
656
|
-
.
|
|
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
|
-
.
|
|
659
|
-
.
|
|
660
|
-
.
|
|
661
|
-
.
|
|
662
|
-
.
|
|
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
|
|