@internetstiftelsen/charts 0.14.2 → 0.14.3
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/dist/pie-chart.js +3 -3
- package/docs/theming.md +4 -0
- package/package.json +1 -1
package/dist/pie-chart.js
CHANGED
|
@@ -492,9 +492,9 @@ export class PieChart extends RadialChartBase {
|
|
|
492
492
|
const insideArc = arc()
|
|
493
493
|
.innerRadius(insideLabelRadius)
|
|
494
494
|
.outerRadius(insideLabelRadius);
|
|
495
|
-
const fontSize = this.renderTheme.
|
|
496
|
-
const fontFamily = this.renderTheme.
|
|
497
|
-
const fontWeight = this.renderTheme.
|
|
495
|
+
const fontSize = this.renderTheme.valueLabel.fontSize * fontScale;
|
|
496
|
+
const fontFamily = this.renderTheme.valueLabel.fontFamily;
|
|
497
|
+
const fontWeight = this.renderTheme.valueLabel.fontWeight;
|
|
498
498
|
const labelOverflowOptions = {
|
|
499
499
|
maxLabelWidth: this.valueLabel.maxLabelWidth,
|
|
500
500
|
oversizedBehavior: this.valueLabel.oversizedBehavior,
|
package/docs/theming.md
CHANGED
|
@@ -70,6 +70,10 @@ through the `themes` map as `themes.default`, `themes.ruby`,
|
|
|
70
70
|
| `tooltip.fontFamily` | `string` | - | Tooltip text font |
|
|
71
71
|
| `tooltip.fontSize` | `number` | `12` | Tooltip text size in pixels |
|
|
72
72
|
| `tooltip.fontWeight` | `string` | `'normal'` | Tooltip text weight |
|
|
73
|
+
| `valueLabel.color` | `string` | `'#1f2a36'` | Value label text color |
|
|
74
|
+
| `valueLabel.fontFamily` | `string` | - | Value label text font |
|
|
75
|
+
| `valueLabel.fontSize` | `number` | `12` | Value label text size in pixels |
|
|
76
|
+
| `valueLabel.fontWeight` | `string` | `'600'` | Value label text weight |
|
|
73
77
|
|
|
74
78
|
---
|
|
75
79
|
|
package/package.json
CHANGED