Few dashboard graph improvements.

This commit is contained in:
Aditya Toshniwal
2023-02-18 15:46:37 +05:30
committed by GitHub
parent 5f52bb59dd
commit aeb4867bdf
3 changed files with 3 additions and 1 deletions

View File

@@ -942,7 +942,7 @@ export function ChartContainer(props) {
</Box>} />
<CardContent className={classes.chartCardContent}>
{!props.errorMsg && !props.isTest && props.children}
<EmptyPanelMessage text={props.errorMsg}/>
{props.errorMsg && <EmptyPanelMessage text={props.errorMsg}/>}
</CardContent>
</Card>
);

View File

@@ -21,6 +21,7 @@ export default function uplotOverride(theme) {
borderRadius: theme.shape.borderRadius,
color: theme.palette.background.default,
backgroundColor: theme.palette.text.primary,
zIndex: 9999,
'& .uplot-tooltip-label': {
display: 'flex',

View File

@@ -69,6 +69,7 @@ export default function StreamingChart({xRange=75, data, options}) {
alpha: 0.3,
},
cursor: {
y: false,
drag: {
setScale: false,
}