Skip to content

Commit

Permalink
[FIX] chart: wrong line dot size
Browse files Browse the repository at this point in the history
There was a problem that the doz sizes in the line charts were at their
"hover" size by default. This was caused by the "active" parameters
given to window.chart.update(), which updated the chart animations
to be in "active" state.

Task: 3697660
X-original-commit: 5cc411f
Part-of: #4155
  • Loading branch information
hokolomopo committed Apr 29, 2024
1 parent 0ff6dfc commit 14ef3a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/figures/chart/chartJs/chartjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export class ChartJsComponent extends Component<Props, SpreadsheetChildEnv> {
this.chart!.config.options!.plugins!.tooltip = chartData.options!.plugins!.tooltip;
this.chart!.config.options!.plugins!.legend = chartData.options!.plugins!.legend;
this.chart!.config.options!.scales = chartData.options?.scales;
// ?
this.chart!.update("active");
this.chart!.update();
}
}

0 comments on commit 14ef3a6

Please sign in to comment.