Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const config = `
<View>
  <Header value="Time Series from CSV"
          style="font-weight: normal"/>
 
  <TimeSeriesLabels name="label" toName="ts">
    <Label value="Run" background="#5b5"/>
    <Label value="Walk" background="#55f"/>
  </TimeSeriesLabels>
 
  <TimeSeries name="ts" valueType="url"
              timeColumn="time" value="$csv"
              sep="," overviewChannels="velocity">
    <Channel column="velocity" strokeColor="#1f77b4"/>
    <Channel column="acceleration" strokeColor="#ff7f0e"/>
  </TimeSeries>
</View>
`;
 
const data = {
  csv: "https://htx-pub.s3.amazonaws.com/datasets/timeseries/time-series-velocity-acceleration.csv",
};
 
const result = [
  {
    value: {
      start: 4,
      end: 23,
      instant: false,
      timeserieslabels: ["Run"],
    },
    id: "Oek-tTCZ6_",
    from_name: "label",
    to_name: "ts",
    type: "timeserieslabels",
    origin: "manual",
  },
  {
    value: {
      start: 52,
      end: 69,
      instant: false,
      timeserieslabels: ["Walk"],
    },
    id: "U0S2_cORxv",
    from_name: "label",
    to_name: "ts",
    type: "timeserieslabels",
    origin: "manual",
  },
];
 
const title = "TimeSeries csv loaded by url with index column";
 
module.exports = { config, data, result, title };