feat(system-resources-widget): add has-shadow option (#4093)
This commit is contained in:
1 parent
312e084e2c
commit
3c2e6a852f
10 files changed
+37
-15
No files matched your search
@@ -9,12 +9,14 @@ import { CommonChart } from "./common-chart";
|
||||
|
||||
export const CombinedNetworkTrafficChart = ({
|
||||
usageOverTime,
|
||||
hasShadow,
|
||||
labelDisplayMode,
|
||||
}: {
|
||||
usageOverTime: {
|
||||
up: number;
|
||||
down: number;
|
||||
}[];
|
||||
hasShadow: boolean;
|
||||
labelDisplayMode: LabelDisplayModeOption;
|
||||
}) => {
|
||||
const chartData = usageOverTime.map((usage, index) => ({ index, up: usage.up, down: usage.down }));
|
||||
@@ -31,6 +33,7 @@ export const CombinedNetworkTrafficChart = ({
|
||||
title={t("network")}
|
||||
icon={IconNetwork}
|
||||
yAxisProps={{ domain: [0, "dataMax"] }}
|
||||
chartType={hasShadow ? "area" : "line"}
|
||||
labelDisplayMode={labelDisplayMode}
|
||||
tooltipProps={{
|
||||
content: ({ payload }) => {
|
||||
|
||||
Reference in new issue
Block a user