Browse Source

fix d3 elements removing

merge-requests/10/head
vargburz 3 years ago
parent
commit
c41c00079c
  1. 2
      dist/index.js
  2. 2
      package.json
  3. 4
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "@chartwerk/core",
"version": "0.3.3",
"version": "0.3.4",
"description": "Chartwerk core",
"main": "dist/index.js",
"types": "dist/index.d.ts",

4
src/index.ts

@ -255,7 +255,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
}
protected renderMetricsContainer(): void {
this.d3.select('.metrics-container').remove();
this.chartContainer.select('.metrics-container').remove();
// TODO: it should be a class with svgElParams as fields
// container for clip path
@ -359,7 +359,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
}
protected renderCrosshair(): void {
this.d3.selectAll('#crosshair-container').remove();
this.chartContainer.select('#crosshair-container').remove();
this.crosshair = this.chartContainer.append('g')
.attr('id', 'crosshair-container')

Loading…
Cancel
Save