X-Axis
+ ++ Off: evenly spaced by time. On: horizontal position reflects distance travelled. +
+Fill
diff --git a/app/src/lib/elementTypes.js b/app/src/lib/elementTypes.js index 54a3c19..57e7189 100644 --- a/app/src/lib/elementTypes.js +++ b/app/src/lib/elementTypes.js @@ -195,6 +195,7 @@ export const isLapMetric = (m) => LAP_METRICS.includes(m) * @property {CourseMarkerConfig[]} [markers] * @property {PointLabelConfig} [point_label] * @property {number} [rotation] + * @property {'distance'} [x_axis] Horizontal axis basis for non-course plots; absent = evenly spaced by time. */ // Mirrors DEFAULT_GRADIENT_BANDS in src-tauri/src/render/template.rs: descent, diff --git a/src-tauri/render-core/src/activity.rs b/src-tauri/render-core/src/activity.rs index 4122523..1b586e6 100644 --- a/src-tauri/render-core/src/activity.rs +++ b/src-tauri/render-core/src/activity.rs @@ -1581,10 +1581,26 @@ impl Activity { } /// Build (x, y) data arrays for a plot of the given attribute. - pub fn plot_data(&self, attribute: &str) -> (Vec