Skip to content

Commit

Permalink
Updating the semimajor axis in the graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Graule committed Aug 19, 2024
1 parent 1fce5cb commit 28197fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ const OrbitDataGraph: React.FC<OrbitDataProps> = ({
lastChartDate.setMonth(
firstChartDate.getMonth() + scrollBarTimeFrame.current,
);

// Filtering the data to display only the data in the selected period
const filteredData = orbitalData
.filter((data: any) => {
Expand All @@ -140,6 +139,7 @@ const OrbitDataGraph: React.FC<OrbitDataProps> = ({
.map((data: any) => {
return {
...data,
semiMajorAxis: data.semiMajorAxis - 6371,
epoch: new Date(data.epoch.slice(0, 23) + "Z"),
};
});
Expand Down

0 comments on commit 28197fb

Please sign in to comment.