mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 22:31:09 +03:00
Make graph less smooth. Hide empty value. Closes https://github.com/owncast/owncast/issues/379
This commit is contained in:
parent
8787e3421b
commit
ff955c7ac8
1 changed files with 3 additions and 3 deletions
|
@ -73,9 +73,9 @@ export default function Chart({ data, title, color, unit, dataCollections }: Cha
|
|||
});
|
||||
}
|
||||
|
||||
const line = data ? (
|
||||
const line = data && data?.length > 0 ? (
|
||||
<Line
|
||||
type="natural"
|
||||
type="basis"
|
||||
dataKey="value"
|
||||
stroke={color}
|
||||
dot={null}
|
||||
|
@ -112,7 +112,7 @@ export default function Chart({ data, title, color, unit, dataCollections }: Cha
|
|||
data={s.data}
|
||||
name={s.name}
|
||||
key={s.name}
|
||||
type="natural"
|
||||
type="basis"
|
||||
stroke={s.color}
|
||||
dot={null}
|
||||
strokeWidth={3}
|
||||
|
|
Loading…
Reference in a new issue