@internetstiftelsen/charts 0.4.2 → 0.4.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.
Files changed (2) hide show
  1. package/donut-chart.js +3 -3
  2. package/package.json +1 -1
package/donut-chart.js CHANGED
@@ -157,6 +157,9 @@ export class DonutChart extends BaseChart {
157
157
  const cy = this.plotArea.top + this.plotArea.height / 2;
158
158
  const outerRadius = Math.min(this.plotArea.width, this.plotArea.height) / 2;
159
159
  const innerRadius = outerRadius * this.innerRadiusRatio;
160
+ if (this.tooltip) {
161
+ this.tooltip.initialize(this.theme);
162
+ }
160
163
  this.renderSegments(visibleSegments, cx, cy, innerRadius, outerRadius);
161
164
  if (this.centerContent) {
162
165
  this.centerContent.render(this.svg, cx, cy, this.theme);
@@ -169,9 +172,6 @@ export class DonutChart extends BaseChart {
169
172
  }));
170
173
  this.legend.render(this.svg, legendSeries, this.theme, this.width, pos.x, pos.y);
171
174
  }
172
- if (this.tooltip) {
173
- this.tooltip.initialize(this.theme);
174
- }
175
175
  }
176
176
  positionTooltip(event, tooltipDiv) {
177
177
  const node = tooltipDiv.node();
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.2",
2
+ "version": "0.4.3",
3
3
  "name": "@internetstiftelsen/charts",
4
4
  "type": "module",
5
5
  "sideEffects": false,