Skip to content

Commit 6328cc4

Browse files
committed
App.js: add specific datasets for Dynamic Chart Demo
1 parent fac494c commit 6328cc4

File tree

3 files changed

+246
-4
lines changed

3 files changed

+246
-4
lines changed

tests/src/App.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import histogram_data from './data/histogram.csv';
55
import timeseries_data from './data/timeseries.csv';
66
import xy_data from './data/xy.csv';
77
import jitter_data from './data/jitter.csv';
8+
import dynamic_data_1 from './data/ts1.csv';
9+
import dynamic_data_2 from './data/ts2.csv';
810

911
const d3 = require("d3");
1012

@@ -14,12 +16,12 @@ var choices = [
1416
"object": { }
1517
},
1618
{
17-
"label": "Jitter",
18-
"object": { csvfiles: [ jitter_data ] }
19+
"label": "Dataset 1",
20+
"object": { csvfiles: [ dynamic_data_1 ] }
1921
},
2022
{
21-
"label": "Jitter - Scatter",
22-
"object": { csvfiles: [ jitter_data ], scatterplot: true }
23+
"label": "Dataset 2",
24+
"object": { csvfiles: [ dynamic_data_2 ] }
2325
}
2426
];
2527
for (var i = 0; i < choices.length; i++) {

tests/src/data/ts1.csv

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
timestamp_ms,all,localhost-1,localhost-2
2+
1000,2545,2406,2684
3+
2000,2506.5,2381,2632
4+
3000,2482,2401,2563
5+
4000,2522,2433,2611
6+
5000,2544,2394,2694
7+
6000,2548.5,2377,2720
8+
7000,2567,2387,2747
9+
8000,2643,2429,2857
10+
9000,2634.5,2427,2842
11+
10000,2621.5,2445,2798
12+
11000,2559.5,2469,2650
13+
12000,2564.5,2469,2660
14+
13000,2610.5,2467,2754
15+
14000,2645.5,2459,2832
16+
15000,2656,2471,2841
17+
16000,2659.5,2473,2846
18+
17000,2654,2465,2843
19+
18000,2630.5,2466,2795
20+
19000,2526.5,2419,2634
21+
20000,2521,2394,2648
22+
21000,2538.5,2444,2633
23+
22000,2614,2470,2758
24+
23000,2603,2466,2740
25+
24000,2606,2454,2758
26+
25000,2634,2467,2801
27+
26000,2667,2469,2865
28+
27000,2647.5,2466,2829
29+
28000,2575.5,2464,2687
30+
29000,2573,2454,2692
31+
30000,2577.5,2418,2737
32+
31000,2585,2407,2763
33+
32000,2568,2435,2701
34+
33000,2581.5,2461,2702
35+
34000,2614,2498,2730
36+
35000,2615,2464,2766
37+
36000,2642.5,2471,2814
38+
37000,2664,2477,2851
39+
38000,2660,2461,2859
40+
39000,2660.5,2463,2858
41+
40000,2631.5,2474,2789
42+
41000,2616.5,2468,2765
43+
42000,2621.5,2477,2766
44+
43000,2619.5,2479,2760
45+
44000,2577.5,2438,2717
46+
45000,2572.5,2436,2709
47+
46000,2558,2419,2697
48+
47000,2531.5,2416,2647
49+
48000,2553.5,2469,2638
50+
49000,2627.5,2474,2781
51+
50000,2642,2442,2842
52+
51000,2647,2448,2846
53+
52000,2646,2441,2851
54+
53000,2612,2435,2789
55+
54000,2578,2452,2704
56+
55000,2597,2469,2725
57+
56000,2666.5,2475,2858
58+
57000,2671.5,2474,2869
59+
58000,2668.5,2481,2856
60+
59000,2666.5,2473,2860
61+
60000,2664.5,2468,2861
62+
61000,2659.5,2471,2848
63+
62000,2652.5,2467,2838
64+
63000,2657.5,2477,2838
65+
64000,2650,2484,2816
66+
65000,2565,2471,2659
67+
66000,2567.5,2477,2658
68+
67000,2591,2478,2704
69+
68000,2658.5,2461,2856
70+
69000,2665.5,2462,2869
71+
70000,2644,2460,2828
72+
71000,2522,2425,2619
73+
72000,2535,2458,2612
74+
73000,2587,2476,2698
75+
74000,2583.5,2471,2696
76+
75000,2614.5,2468,2761
77+
76000,2664.5,2478,2851
78+
77000,2669,2476,2862
79+
78000,2626,2475,2777
80+
79000,2563,2425,2701
81+
80000,2563.5,2426,2701
82+
81000,2624.5,2431,2818
83+
82000,2653,2461,2845
84+
83000,2658.5,2469,2848
85+
84000,2659,2474,2844
86+
85000,2633.5,2496,2771
87+
86000,2622.5,2470,2775
88+
87000,2628,2478,2778
89+
88000,2672,2487,2857
90+
89000,2665,2472,2858
91+
90000,2664.5,2479,2850
92+
91000,2645,2458,2832
93+
92000,2601,2432,2770
94+
93000,2620.5,2441,2800
95+
94000,2614,2455,2773
96+
95000,2598,2450,2746
97+
96000,2587,2425,2749
98+
97000,2611.5,2446,2777
99+
98000,2667,2464,2870
100+
99000,2653.5,2442,2865
101+
100000,2664.5,2471,2858
102+
101000,2666.5,2470,2863
103+
102000,2665.5,2477,2854
104+
103000,2669.5,2485,2854
105+
104000,2669,2475,2863
106+
105000,2686,2481,2891
107+
106000,2667.5,2488,2847
108+
107000,2657.5,2464,2851
109+
108000,2657,2463,2851
110+
109000,2639.5,2443,2836
111+
110000,2612,2411,2813
112+
111000,2646.5,2440,2853
113+
112000,2648.5,2445,2852
114+
113000,2642.5,2443,2842
115+
114000,2668,2470,2866
116+
115000,2666.5,2479,2854
117+
116000,2644.5,2415,2874
118+
117000,2648,2419,2877
119+
118000,2643,2436,2850
120+
119000,2609,2471,2747

tests/src/data/ts2.csv

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
timestamp_ms,all,localhost-1,localhost-2
2+
1000,3234.5,3192,3277
3+
2000,3231,3199,3263
4+
3000,3229.5,3199,3260
5+
4000,3246,3202,3290
6+
5000,3242.5,3199,3286
7+
6000,3238,3198,3278
8+
7000,3232.5,3190,3275
9+
8000,3226,3194,3258
10+
9000,3226.5,3186,3267
11+
10000,3230,3195,3265
12+
11000,3231.5,3192,3271
13+
12000,3230.5,3194,3267
14+
13000,3245.5,3206,3285
15+
14000,3244.5,3198,3291
16+
15000,3246.5,3205,3288
17+
16000,3247.5,3206,3289
18+
17000,3230,3185,3275
19+
18000,3237.5,3197,3278
20+
19000,3250,3213,3287
21+
20000,3242,3195,3289
22+
21000,3246.5,3205,3288
23+
22000,3248,3205,3291
24+
23000,3225.5,3187,3264
25+
24000,3225.5,3192,3259
26+
25000,3243.5,3203,3284
27+
26000,3247,3205,3289
28+
27000,3241.5,3211,3272
29+
28000,3239.5,3210,3269
30+
29000,3232.5,3193,3272
31+
30000,3233,3196,3270
32+
31000,3232.5,3192,3273
33+
32000,3223.5,3186,3261
34+
33000,3235,3202,3268
35+
34000,3235.5,3207,3264
36+
35000,3232,3200,3264
37+
36000,3231.5,3196,3267
38+
37000,3239.5,3199,3280
39+
38000,3243.5,3197,3290
40+
39000,3246,3209,3283
41+
40000,3250,3209,3291
42+
41000,3231.5,3190,3273
43+
42000,3235.5,3194,3277
44+
43000,3234,3188,3280
45+
44000,3224,3180,3268
46+
45000,3228,3183,3273
47+
46000,3235.5,3192,3279
48+
47000,3226,3193,3259
49+
48000,3230.5,3196,3265
50+
49000,3238,3201,3275
51+
50000,3237.5,3195,3280
52+
51000,3233.5,3195,3272
53+
52000,3245.5,3194,3297
54+
53000,3236.5,3184,3289
55+
54000,3240,3203,3277
56+
55000,3233.5,3204,3263
57+
56000,3220.5,3186,3255
58+
57000,3229.5,3194,3265
59+
58000,3247,3205,3289
60+
59000,3240.5,3192,3289
61+
60000,3243,3189,3297
62+
61000,3240,3192,3288
63+
62000,3225.5,3184,3267
64+
63000,3224.5,3177,3272
65+
64000,3231.5,3187,3276
66+
65000,3225.5,3191,3260
67+
66000,3231,3199,3263
68+
67000,3235.5,3206,3265
69+
68000,3228.5,3184,3273
70+
69000,3226,3185,3267
71+
70000,3236.5,3194,3279
72+
71000,3221,3184,3258
73+
72000,3224.5,3193,3256
74+
73000,3253,3205,3301
75+
74000,3262,3202,3322
76+
75000,3260,3194,3326
77+
76000,3263,3198,3328
78+
77000,3230,3195,3265
79+
78000,3230,3197,3263
80+
79000,3236,3202,3270
81+
80000,3227.5,3205,3250
82+
81000,3234.5,3209,3260
83+
82000,3233.5,3197,3270
84+
83000,3221,3184,3258
85+
84000,3222.5,3184,3261
86+
85000,3234.5,3199,3270
87+
86000,3233.5,3203,3264
88+
87000,3230.5,3205,3256
89+
88000,3241,3214,3268
90+
89000,3231,3186,3276
91+
90000,3240.5,3197,3284
92+
91000,3256,3200,3312
93+
92000,3263,3193,3333
94+
93000,3251.5,3204,3299
95+
94000,3243.5,3205,3282
96+
95000,3239,3260,3218
97+
96000,3236,3291,3181
98+
97000,3257,3290,3224
99+
98000,3259.5,3279,3240
100+
99000,3242,3279,3205
101+
100000,3235,3278,3192
102+
101000,3232,3281,3183
103+
102000,3225,3275,3175
104+
103000,3235,3277,3193
105+
104000,3238.5,3281,3196
106+
105000,3236,3279,3193
107+
106000,3244.5,3296,3193
108+
107000,3227.5,3273,3182
109+
108000,3231.5,3285,3178
110+
109000,3249.5,3280,3219
111+
110000,3254.5,3271,3238
112+
111000,3263,3279,3247
113+
112000,3253,3275,3231
114+
113000,3241,3283,3199
115+
114000,3239.5,3289,3190
116+
115000,3239.5,3291,3188
117+
116000,3228,3278,3178
118+
117000,3226,3275,3177
119+
118000,3238,3285,3191
120+
119000,3233,3283,3183

0 commit comments

Comments
 (0)