mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Heatmap: Fix blurry text & rendering (#59260)
This commit is contained in:
parent
f4574f098d
commit
6f00bc5674
@ -65,8 +65,8 @@ export class UPlotChart extends Component<PlotProps, UPlotChartState> {
|
||||
});
|
||||
|
||||
const config: Options = {
|
||||
width: this.props.width,
|
||||
height: this.props.height,
|
||||
width: Math.floor(this.props.width),
|
||||
height: Math.floor(this.props.height),
|
||||
...this.props.config.getConfig(),
|
||||
};
|
||||
|
||||
@ -93,8 +93,8 @@ export class UPlotChart extends Component<PlotProps, UPlotChartState> {
|
||||
|
||||
if (!sameDims(prevProps, this.props)) {
|
||||
plot?.setSize({
|
||||
width: this.props.width,
|
||||
height: this.props.height,
|
||||
width: Math.floor(this.props.width),
|
||||
height: Math.floor(this.props.height),
|
||||
});
|
||||
} else if (!sameConfig(prevProps, this.props)) {
|
||||
this.reinitPlot();
|
||||
|
Loading…
Reference in New Issue
Block a user