| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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 };
|