Skip to content

Commit

Permalink
publish 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andymchugh committed Jan 24, 2024
1 parent 0bc7a93 commit 714889e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Binary file added andrewbmchugh-flow-panel-1.0.0.zip
Binary file not shown.
1 change: 0 additions & 1 deletion provisioning/dashboards/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@
},
"timezone": "browser",
"title": "Flow Panel Example",
"uid": "e986cc62-d29a-46f4-9e60-b0e4cd07ff98",
"version": 8,
"weekStart": ""
}
7 changes: 3 additions & 4 deletions src/components/TimeSeries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,13 @@ export function seriesTransform(series: any, timeMin: number, timeMax: number):
};
}

// This transforms the data so we have name-indexable sets of time and value.
// i.e.:
// - series: [fields: [{name, values}]] =>
// - {name: {time: {timeIndex, values}, values}}
// This receives the timeSlider position and uses it to interpolate the time-series
// data.
export function seriesInterpolate(tsData: TimeSeriesData, timeSliderScalar: number) {
const targetTime = sliderTime(tsData, timeSliderScalar);

tsData.ts.forEach((ts) => {
// ts.time can be shared across series so we only have to interpolate it once.
if (!ts.time.valuesIndex) {
let closestDeltaTime = null;
let closestIndex = null;
Expand Down

0 comments on commit 714889e

Please sign in to comment.