We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa66179 commit 01f2ca5Copy full SHA for 01f2ca5
src/core/chart-api/chart-extra-nodata.tsx
@@ -37,8 +37,10 @@ export class ChartExtraNodata extends AsyncStore<ReactiveNodataState> {
37
}
38
};
39
40
- private getContainerStyle() {
41
- return { left: `${this.chart.plotLeft}px`, bottom: `${this.chart.chartHeight - this.chart.plotHeight}px` };
+ private getContainerStyle(): React.CSSProperties {
+ const inlineOffset = this.chart.chartWidth - this.chart.plotWidth;
42
+ const blockOffset = this.chart.chartHeight - this.chart.plotHeight;
43
+ return { insetInlineStart: `${inlineOffset}px`, insetBlockEnd: `${blockOffset}px` };
44
45
46
private get chart() {
0 commit comments