Skip to content

Commit

Permalink
barometro fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirmmo committed Oct 7, 2024
1 parent 3b0aa18 commit 3ce7bcb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/pages/IndexPage/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ const Graph = (props: any) => {
}),
];

const seriesObj = pseriesObj.map(item => ({
let seriesObj = pseriesObj.map(item => ({
id: item.name,
name: getName(item),
type: getGraphType(item),
Expand Down Expand Up @@ -387,6 +387,10 @@ const Graph = (props: any) => {
},
}));

seriesObj = seriesObj.sort((a, b) => {
return a.id.indexOf('lower') >= 0 ? -1 : 1;
});

const cats = timeseries?.map(item => {
return item.values.map(x => x.datetime.split('-')[0]);
});
Expand Down

0 comments on commit 3ce7bcb

Please sign in to comment.