Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Oct 12, 2024
1 parent 539603b commit ecc34bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/public/components/common/chart/rendering/ChartRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ export class ChartRenderer {
* @return {void}
*/
render(svg) {
const d3Svg = select(svg);
// Reset the SVG
d3Svg.selectAll('*').remove();
svg.innerHTML = '';

const d3Svg = select(svg);

const width = svg.clientWidth;
const height = svg.clientHeight;
Expand Down Expand Up @@ -240,7 +241,7 @@ export class ChartRenderer {
}

/**
* States if the data are rendered as data or bars
* States if the data are rendered as points or bars
* @return {boolean} true if points
*/
get isPoint() {
Expand Down

0 comments on commit ecc34bf

Please sign in to comment.