Skip to content

Match wallet token chart timespans to mockups

Timespan selector options should be: image

Something like:

timespans: [
        {
          id: '1m',
          label: '1M',
          interval: 'day',
          selected: true,
          comparison_interval: 30,
          from_ts_ms: 1577232000000,
          from_ts_iso: '2019-12-25T00:00:00+00:00',
        },
        {
          id: '3m',
          label: '3M',
          interval: 'day',
          selected: true,
          comparison_interval: 90,
          from_ts_ms: 1577232000000,
          from_ts_iso: '2019-12-25T00:00:00+00:00',
        },
        {
          id: '1y',
          label: '1Y',
          interval: 'month',
          selected: false,
          comparison_interval: 365,
          from_ts_ms: 1548288000000,
          from_ts_iso: '2019-01-24T00:00:00+00:00',
        },
        {
          id: 'max',
          label: 'Max',
          interval: 'day', // not sure... kinda depends on how long max is for the user
          selected: false,
          comparison_interval: 30, // also not sure
          from_ts_ms: 1577836800000,
          from_ts_iso: '2020-01-01T00:00:00+00:00',
        },
      ],
Edited by Olivia Madrid