Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed May 22, 2024
1 parent 74f42ea commit 2dc9701
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@ function App() {
height={300}
axisHighlight={{x: "line"}}
xAxis={
[{
data: filteredData.map((status) => status.timestamp),
area: true,
valueFormatter: (value) => {
return new Date(value).toLocaleString()
[
{
data: filteredData.map((status) => status.timestamp),
valueFormatter: (value) => {
return new Date(value).toLocaleString()
}
}
}]
]
}
series={[
{
curve: "linear",
showMark: false,
area: true,
data: filteredData.map((status) => status.value),
valueFormatter: (value, {dataIndex}) => {
const data = filteredData[dataIndex];
Expand Down

0 comments on commit 2dc9701

Please sign in to comment.