robiningelbrecht / strava-activities-template

This repository contains template code to generate your own Strava statistics pages
MIT License
37 stars 0 forks source link

Add a power chart #284

Open robiningelbrecht opened 10 months ago

robiningelbrecht commented 10 months ago

Global and per activity?

image
robiningelbrecht commented 10 months ago

@pdoteter I'll add this chart for best efforts. Do you think it might be useful per activity as well?

image
robiningelbrecht commented 10 months ago
option = {
  xAxis: {
    type: 'category',
    'boundaryGap': false,
    data: ['1s', '', '', '', '5s', '', '', '', '', '10s', '', '', '', '', '15s', '', '', '', '', '', '', '', '','60s', '', '', '', '', '', '2m', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '5m', '', '', '', '', '', '', '', '', '', '10m', '', '', '', '', '', '', '', '', '', '20m', '', '', '', '', '', '', '', '', '', '30m', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1h', '', '', '', '', '', '', '', '', '', '', '', '2h'],
     axisLabel:{
      interval: 0
    },
    axisTick: {
      show: false,
    }
  },
  yAxis: {
    type: 'value',
  },
  series: [
    {
     data: [],
      type: 'line'
    }
  ]
};
pdoteter commented 10 months ago

Certainly for all activities too, because my best efforts is f*cked up data: image

This is because somehow, Strava has guessed the power, still looking to reset those values

robiningelbrecht commented 10 months ago

@pdoteter Currently got this in place, what do you think?

image
pdoteter commented 10 months ago

Looks great!