Skip to content

Commit

Permalink
deduplicate, easy
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Sep 14, 2022
1 parent 3ba40c5 commit 5512d27
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2,755 deletions.
2 changes: 1 addition & 1 deletion auto_tests/data/data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is mostly the same as tests/data.js
// This file is mostly the same as gallery/data.js
// but some functions renamed and less functions

function temperature_nolabel() {
Expand Down
70 changes: 69 additions & 1 deletion gallery/data.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// This file is a superset of auto_tests/data/data.js
// and only contains test data

function data_nolabel() {
return "" +
"2007-01-01,62,39\n" +
Expand Down Expand Up @@ -435,6 +438,70 @@ return "" +
"2006-11-29,1.41093474427,0.495309102312,3.02013422819,0.701020603129";
}

function NoisyDataABC() {
return "" +
"Date,A,B,C\n" +
"2006-10-01,3.01953818828,0.7212041046,2.18487394958,0.599318549691,2.02013422819,0.701020603129\n" +
"2006-10-02,3.63321799308,0.778297234566,1.69491525424,0.531417655826,1.54237288136,0.648039583782\n" +
"2006-10-03,2.44328097731,0.644967734352,2.51256281407,0.640539070386,0.51006711409,0.499540743312\n" +
"2006-10-04,3.52733686067,0.774700921683,2.68456375839,0.66207105053,1.53378378378,0.645878720149\n" +
"2006-10-05,3.28719723183,0.741636245748,2.35294117647,0.621407707226,2.066439523,0.711598843969\n" +
"2006-10-06,1.58450704225,0.523967868159,3.78657487091,0.791868460623,1.01005025126,0.57439025002\n" +
"2006-10-07,5.32859680284,0.946589405904,4.0404040404,0.807910739509,1.6936026936,0.664269394219\n" +
"2006-10-08,2.64084507042,0.672799548916,2.37288135593,0.626609885481,1.5466893039,0.649125445325\n" +
"2006-10-09,2.26480836237,0.620990945917,3.5413153457,0.75897176848,1.01680672269,0.576301104352\n" +
"2006-10-10,3.29289428076,0.74289969528,2.02702702703,0.579191340004,1.6981450253,0.665374048085\n" +
"2006-10-11,2.7633851468,0.681234043829,1.1744966443,0.4413034044,0.85185185185,0.55316023504\n" +
"2006-10-12,3.28719723183,0.741636245748,3.37268128162,0.741327769578,0.69491525424,0.531417655826\n" +
"2006-10-13,1.77304964539,0.55569466381,1.85810810811,0.555011329732,1.19594594595,0.602321544724\n" +
"2006-10-14,3.39892665474,0.7664008338,1.67224080268,0.524368852929,0.843170320405,0.375484163785\n" +
"2006-10-15,2.65017667845,0.675144574777,3.35570469799,0.737661045752,1.22222222222,0.60944692682\n" +
"2006-10-16,3.63951473137,0.779620631266,2.34899328859,0.620377617453,1.20338983051,0.604340313133\n" +
"2006-10-17,2.25694444444,0.618859623032,1.68067226891,0.526990133716,3.05405405405,0.81058250986\n" +
"2006-10-18,4.47504302926,0.857766274964,2.51677852349,0.641599927369,2.0303030303,0.703344064467\n" +
"2006-10-19,2.44755244755,0.646081155692,1.68067226891,0.526990133716,2.71621621622,0.777438794254\n" +
"2006-10-20,3.67775831874,0.787656442774,3.066439523,0.711598843969,1.72572402044,0.672079879106\n" +
"2006-10-21,3.94265232975,0.823839169829,3.85906040268,0.788990618726,1.6981450253,0.665374048085\n" +
"2006-10-22,2.59067357513,0.660187558973,3.71621621622,0.777438794254,0.52027027027,0.502889967904\n" +
"2006-10-23,4.33275563258,0.847570482324,3.85906040268,0.788990618726,1.35294117647,0.621407707226\n" +
"2006-10-24,3.10344827586,0.720049610821,2.84280936455,0.679611549697,2.55329949239,0.761492892041\n" +
"2006-10-25,1.40350877193,0.492720767725,2.7027027027,0.666482380968,2.07692307692,0.713993047527\n" +
"2006-10-26,1.95035460993,0.582291234145,2.36486486486,0.624518599275,1.68907563025,0.663168401088\n" +
"2006-10-27,2.30905861456,0.632980642182,2.03045685279,0.580161203819,1.0202020202,0.57726130639\n" +
"2006-10-28,4.09252669039,0.835706590809,2.87648054146,0.68754192469,0.51260504202,0.500373860545\n" +
"2006-10-29,2.66903914591,0.679883997626,2.02360876897,0.578224712918,2.20945945946,0.724388507178\n" +
"2006-10-30,4.74516695958,0.89127787497,4.36241610738,0.836670992529,3.36241610738,0.836670992529\n" +
"2006-10-31,2.78260869565,0.685905251933,3.20945945946,0.724388507178,1.02360876897,0.578224712918\n" +
"2006-11-01,1.5873015873,0.524884521441,1.51260504202,0.500373860545,1.87648054146,0.68754192469\n" +
"2006-11-02,2.78745644599,0.687083077461,2.0202020202,0.57726130639,1.03045685279,0.580161203819\n" +
"2006-11-03,5.11463844797,0.925157232782,2.68907563025,0.663168401088,1.36486486486,0.624518599275\n" +
"2006-11-04,4.9001814882,0.919644816432,3.07692307692,0.713993047527,1.7027027027,0.666482380968\n" +
"2006-11-05,5.13274336283,0.928343545136,3.55329949239,0.761492892041,1.84280936455,0.679611549697\n" +
"2006-11-06,1.92644483363,0.575222935029,2.35294117647,0.621407707226,2.85906040268,0.788990618726\n" +
"2006-11-07,2.46478873239,0.650573541306,1.52027027027,0.502889967904,2.71621621622,0.777438794254\n" +
"2006-11-08,2.13523131673,0.609772022763,2.6981450253,0.665374048085,2.85906040268,0.788990618726\n" +
"2006-11-09,3.88007054674,0.811026422222,2.72572402044,0.672079879106,2.066439523,0.711598843969\n" +
"2006-11-10,2.63620386643,0.671633132526,3.71621621622,0.777438794254,0.68067226891,0.526990133716\n" +
"2006-11-11,3.69718309859,0.791736755355,3.0303030303,0.703344064467,1.51677852349,0.641599927369\n" +
"2006-11-12,3.83944153578,0.802703592906,4.05405405405,0.81058250986,0.68067226891,0.526990133716\n" +
"2006-11-13,2.47787610619,0.653984033555,2.20338983051,0.604340313133,1.34899328859,0.620377617453\n" +
"2006-11-14,1.77304964539,0.55569466381,2.22222222222,0.60944692682,2.35570469799,0.737661045752\n" +
"2006-11-15,2.30088495575,0.630766388737,0.843170320405,0.375484163785,0.67224080268,0.524368852929\n" +
"2006-11-16,1.57894736842,0.522144132232,2.19594594595,0.602321544724,0.85810810811,0.555011329732\n" +
"2006-11-18,2.45183887916,0.647198426991,1.69491525424,0.531417655826,2.37268128162,0.741327769578\n" +
"2006-11-19,3.52733686067,0.774700921683,1.85185185185,0.55316023504,0.1744966443,0.4413034044\n" +
"2006-11-20,2.97723292469,0.711254751484,2.6981450253,0.665374048085,1.02702702703,0.579191340004\n" +
"2006-11-21,2.29681978799,0.629665059963,2.01680672269,0.576301104352,2.5413153457,0.75897176848\n" +
"2006-11-22,3.01418439716,0.719945245328,2.5466893039,0.649125445325,1.37288135593,0.626609885481\n" +
"2006-11-23,3.78378378378,0.809917534069,2.6936026936,0.664269394219,3.0404040404,0.807910739509\n" +
"2006-11-24,3.18584070796,0.738851643987,2.01005025126,0.57439025002,2.78657487091,0.791868460623\n" +
"2006-11-25,2.83185840708,0.697868332879,3.066439523,0.711598843969,1.35294117647,0.621407707226\n" +
"2006-11-26,3.01953818828,0.7212041046,2.53378378378,0.645878720149,1.68456375839,0.66207105053\n" +
"2006-11-27,2.81195079086,0.693033387099,1.51006711409,0.499540743312,1.51256281407,0.640539070386\n" +
"2006-11-28,2.97723292469,0.711254751484,2.54237288136,0.648039583782,0.69491525424,0.531417655826\n" +
"2006-11-29,1.41093474427,0.495309102312,3.02013422819,0.701020603129,1.18487394958,0.599318549691\n";
}

function data_showzerovalues() {
return "" +
"2007-01-01,0,39\n" +
Expand Down Expand Up @@ -1522,7 +1589,8 @@ return "" +
"2009-12-04,46;49;52,44;48;57\n" +
"2009-12-05,37;42;47,\n";
}
var stockData = function() {

function stockData() {
return "Month,Nominal,Real\n" +
"1913-01-15,59.740;61.330;64.880,609.591836734694;625.816326530612;662.04081632653\n" +
"1913-02-15,57.670;58.840;61.140,588.469387755102;600.408163265306;623.877551020408\n" +
Expand Down
Loading

0 comments on commit 5512d27

Please sign in to comment.