From: Dan Vanderkam Date: Sat, 29 Aug 2009 06:08:14 +0000 (+0000) Subject: add spacing test X-Git-Tag: v1.0.0~897 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=fd2a2ee217e75d58fd782c7ab56b742968b657e9;p=dygraphs.git add spacing test --- diff --git a/tests/data.js b/tests/data.js index 68b6187..75da280 100644 --- a/tests/data.js +++ b/tests/data.js @@ -1,371 +1,371 @@ function data() { return "" + "Date,High,Low\n" + -"200701011,62,39\n" + -"200701021,62,44\n" + -"200701031,62,42\n" + -"200701041,57,45\n" + -"200701051,54,44\n" + -"200701061,55,36\n" + -"200701071,62,45\n" + -"200701081,66,48\n" + -"200701091,63,39\n" + -"200701101,57,37\n" + -"200701111,50,37\n" + -"200701121,48,35\n" + -"200701131,48,30\n" + -"200701141,48,28\n" + -"200701151,53,28\n" + -"200701161,50,30\n" + -"200701171,57,37\n" + -"200701181,61,33\n" + -"200701191,55,35\n" + -"200701201,61,35\n" + -"200701211,64,43\n" + -"200701221,61,36\n" + -"200701231,57,35\n" + -"200701241,60,35\n" + -"200701251,55,39\n" + -"200701261,54,44\n" + -"200701271,57,48\n" + -"200701281,59,45\n" + -"200701291,63,45\n" + -"200701301,59,41\n" + -"200701311,55,48\n" + -"200702011,53,46\n" + -"200702021,55,44\n" + -"200702031,59,37\n" + -"200702041,66,39\n" + -"200702051,64,43\n" + -"200702061,61,46\n" + -"200702071,61,51\n" + -"200702081,60,51\n" + -"200702091,61,55\n" + -"200702101,62,55\n" + -"200702111,61,46\n" + -"200702121,59,43\n" + -"200702131,57,46\n" + -"200702141,61,39\n" + -"200702151,64,44\n" + -"200702161,71,46\n" + -"200702171,73,51\n" + -"200702181,60,46\n" + -"200702191,63,44\n" + -"200702201,57,45\n" + -"200702211,59,48\n" + -"200702221,55,44\n" + -"200702231,55,42\n" + -"200702241,57,39\n" + -"200702251,55,48\n" + -"200702261,57,44\n" + -"200702271,53,39\n" + -"200702281,53,37\n" + -"200703011,54,37\n" + -"200703021,61,39\n" + -"200703031,66,43\n" + -"200703041,70,48\n" + -"200703051,68,53\n" + -"200703061,69,46\n" + -"200703071,62,51\n" + -"200703081,61,46\n" + -"200703091,60,45\n" + -"200703101,68,46\n" + -"200703111,79,48\n" + -"200703121,80,52\n" + -"200703131,73,53\n" + -"200703141,64,48\n" + -"200703151,78,46\n" + -"200703161,78,50\n" + -"200703171,62,51\n" + -"200703181,66,46\n" + -"200703191,64,48\n" + -"200703201,60,48\n" + -"200703211,66,46\n" + -"200703221,73,43\n" + -"200703231,78,48\n" + -"200703241,68,48\n" + -"200703251,64,53\n" + -"200703261,66,48\n" + -"200703271,57,46\n" + -"200703281,66,42\n" + -"200703291,73,42\n" + -"200703301,72,46\n" + -"200703311,69,46\n" + -"200704011,64,46\n" + -"200704021,69,46\n" + -"200704031,71,46\n" + -"200704041,69,50\n" + -"200704051,71,52\n" + -"200704061,64,52\n" + -"200704071,68,51\n" + -"200704081,71,51\n" + -"200704091,66,50\n" + -"200704101,72,46\n" + -"200704111,63,50\n" + -"200704121,64,46\n" + -"200704131,70,44\n" + -"200704141,57,51\n" + -"200704151,68,46\n" + -"200704161,75,46\n" + -"200704171,62,48\n" + -"200704181,61,45\n" + -"200704191,57,42\n" + -"200704201,64,46\n" + -"200704211,61,43\n" + -"200704221,63,48\n" + -"200704231,70,44\n" + -"200704241,66,46\n" + -"200704251,66,48\n" + -"200704261,69,48\n" + -"200704271,82,50\n" + -"200704281,81,55\n" + -"200704291,70,53\n" + -"200704301,77,51\n" + -"200705011,70,48\n" + -"200705021,66,52\n" + -"200705031,63,48\n" + -"200705041,64,51\n" + -"200705051,73,46\n" + -"200705061,88,54\n" + -"200705071,91,57\n" + -"200705081,84,60\n" + -"200705091,73,55\n" + -"200705101,57,52\n" + -"200705111,64,51\n" + -"200705121,64,50\n" + -"200705131,72,46\n" + -"200705141,66,50\n" + -"200705151,63,51\n" + -"200705161,70,48\n" + -"200705171,68,50\n" + -"200705181,73,50\n" + -"200705191,70,52\n" + -"200705201,73,51\n" + -"200705211,78,54\n" + -"200705221,81,51\n" + -"200705231,86,55\n" + -"200705241,78,55\n" + -"200705251,69,54\n" + -"200705261,69,55\n" + -"200705271,69,54\n" + -"200705281,73,52\n" + -"200705291,69,53\n" + -"200705301,66,55\n" + -"200705311,64,54\n" + -"200706011,66,54\n" + -"200706021,64,54\n" + -"200706031,70,55\n" + -"200706041,73,59\n" + -"200706051,68,55\n" + -"200706061,70,53\n" + -"200706071,75,51\n" + -"200706081,70,50\n" + -"200706091,75,53\n" + -"200706101,75,55\n" + -"200706111,75,53\n" + -"200706121,79,52\n" + -"200706131,90,59\n" + -"200706141,89,60\n" + -"200706151,86,59\n" + -"200706161,72,55\n" + -"200706171,79,53\n" + -"200706181,79,57\n" + -"200706191,73,55\n" + -"200706201,71,55\n" + -"200706211,77,55\n" + -"200706221,79,54\n" + -"200706231,77,54\n" + -"200706241,77,53\n" + -"200706251,82,53\n" + -"200706261,71,54\n" + -"200706271,73,55\n" + -"200706281,73,57\n" + -"200706291,77,60\n" + -"200706301,75,54\n" + -"200707011,78,54\n" + -"200707021,82,57\n" + -"200707031,72,57\n" + -"200707041,84,59\n" + -"200707051,84,61\n" + -"200707061,75,60\n" + -"200707071,73,55\n" + -"200707081,78,55\n" + -"200707091,73,57\n" + -"200707101,73,59\n" + -"200707111,78,62\n" + -"200707121,75,59\n" + -"200707131,79,60\n" + -"200707141,73,60\n" + -"200707151,78,62\n" + -"200707161,75,59\n" + -"200707171,77,60\n" + -"200707181,75,63\n" + -"200707191,80,59\n" + -"200707201,79,59\n" + -"200707211,77,61\n" + -"200707221,75,63\n" + -"200707231,79,64\n" + -"200707241,73,61\n" + -"200707251,72,57\n" + -"200707261,75,60\n" + -"200707271,78,60\n" + -"200707281,77,57\n" + -"200707291,73,57\n" + -"200707301,80,59\n" + -"200707311,75,59\n" + -"200708011,75,59\n" + -"200708021,73,60\n" + -"200708031,79,60\n" + -"200708041,77,59\n" + -"200708051,71,57\n" + -"200708061,71,59\n" + -"200708071,73,57\n" + -"200708081,71,55\n" + -"200708091,77,60\n" + -"200708101,77,57\n" + -"200708111,73,57\n" + -"200708121,72,55\n" + -"200708131,75,55\n" + -"200708141,73,55\n" + -"200708151,75,57\n" + -"200708161,79,60\n" + -"200708171,80,55\n" + -"200708181,78,57\n" + -"200708191,77,55\n" + -"200708201,80,64\n" + -"200708211,82,62\n" + -"200708221,82,60\n" + -"200708231,82,57\n" + -"200708241,78,59\n" + -"200708251,73,61\n" + -"200708261,73,61\n" + -"200708271,78,59\n" + -"200708281,86,62\n" + -"200708291,88,68\n" + -"200708301,90,68\n" + -"200708311,80,66\n" + -"200709011,87,62\n" + -"200709021,89,61\n" + -"200709031,78,61\n" + -"200709041,78,63\n" + -"200709051,89,57\n" + -"200709061,82,64\n" + -"200709071,75,61\n" + -"200709081,73,62\n" + -"200709091,71,61\n" + -"200709101,73,59\n" + -"200709111,71,59\n" + -"200709121,72,60\n" + -"200709131,77,57\n" + -"200709141,75,60\n" + -"200709151,73,57\n" + -"200709161,72,61\n" + -"200709171,72,55\n" + -"200709181,73,55\n" + -"200709191,66,55\n" + -"200709201,71,52\n" + -"200709211,77,57\n" + -"200709221,64,57\n" + -"200709231,68,55\n" + -"200709241,78,52\n" + -"200709251,84,53\n" + -"200709261,87,57\n" + -"200709271,75,55\n" + -"200709281,66,54\n" + -"200709291,73,52\n" + -"200709301,75,48\n" + -"200710011,71,57\n" + -"200710021,81,53\n" + -"200710031,73,54\n" + -"200710041,69,55\n" + -"200710051,64,50\n" + -"200710061,73,45\n" + -"200710071,77,46\n" + -"200710081,79,53\n" + -"200710091,72,53\n" + -"200710101,69,54\n" + -"200710111,70,48\n" + -"200710121,64,54\n" + -"200710131,70,53\n" + -"200710141,66,51\n" + -"200710151,68,52\n" + -"200710161,66,52\n" + -"200710171,66,50\n" + -"200710181,73,50\n" + -"200710191,72,57\n" + -"200710201,66,54\n" + -"200710211,73,51\n" + -"200710221,81,51\n" + -"200710231,84,53\n" + -"200710241,79,55\n" + -"200710251,66,53\n" + -"200710261,68,46\n" + -"200710271,66,52\n" + -"200710281,75,52\n" + -"200710291,63,55\n" + -"200710301,63,53\n" + -"200710311,63,54\n" + -"200711011,66,53\n" + -"200711021,77,50\n" + -"200711031,80,48\n" + -"200711041,77,48\n" + -"200711051,66,48\n" + -"200711061,62,52\n" + -"200711071,61,48\n" + -"200711081,59,53\n" + -"200711091,63,48\n" + -"200711101,66,48\n" + -"200711111,63,48\n" + -"200711121,68,44\n" + -"200711131,72,51\n" + -"200711141,75,55\n" + -"200711151,69,51\n" + -"200711161,63,55\n" + -"200711171,66,51\n" + -"200711181,64,53\n" + -"200711191,66,48\n" + -"200711201,63,46\n" + -"200711211,64,43\n" + -"200711221,64,37\n" + -"200711231,70,37\n" + -"200711241,60,37\n" + -"200711251,60,46\n" + -"200711261,63,42\n" + -"200711271,63,45\n" + -"200711281,64,46\n" + -"200711291,62,41\n" + -"200711301,55,42\n" + -"200712011,57,37\n" + -"200712021,61,45\n" + -"200712031,66,50\n" + -"200712041,61,54\n" + -"200712051,60,50\n" + -"200712061,57,48\n" + -"200712071,55,45\n" + -"200712081,53,42\n" + -"200712091,57,39\n" + -"200712101,57,39\n" + -"200712111,57,41\n" + -"200712121,55,35\n" + -"200712131,59,34\n" + -"200712141,55,34\n" + -"200712151,55,39\n" + -"200712161,55,43\n" + -"200712171,57,48\n" + -"200712181,57,43\n" + -"200712191,59,41\n" + -"200712201,55,43\n" + -"200712211,53,39\n" + -"200712221,53,32\n" + -"200712231,55,37\n" + -"200712241,57,45\n" + -"200712251,57,37\n" + -"200712261,53,43\n" + -"200712271,48,37\n" + -"200712281,48,43\n" + -"200712291,57,44\n" + -"200712301,52,43\n" + -"200712311,57,42\n"; +"20070101,62,39\n" + +"20070102,62,44\n" + +"20070103,62,42\n" + +"20070104,57,45\n" + +"20070105,54,44\n" + +"20070106,55,36\n" + +"20070107,62,45\n" + +"20070108,66,48\n" + +"20070109,63,39\n" + +"20070110,57,37\n" + +"20070111,50,37\n" + +"20070112,48,35\n" + +"20070113,48,30\n" + +"20070114,48,28\n" + +"20070115,53,28\n" + +"20070116,50,30\n" + +"20070117,57,37\n" + +"20070118,61,33\n" + +"20070119,55,35\n" + +"20070120,61,35\n" + +"20070121,64,43\n" + +"20070122,61,36\n" + +"20070123,57,35\n" + +"20070124,60,35\n" + +"20070125,55,39\n" + +"20070126,54,44\n" + +"20070127,57,48\n" + +"20070128,59,45\n" + +"20070129,63,45\n" + +"20070130,59,41\n" + +"20070131,55,48\n" + +"20070201,53,46\n" + +"20070202,55,44\n" + +"20070203,59,37\n" + +"20070204,66,39\n" + +"20070205,64,43\n" + +"20070206,61,46\n" + +"20070207,61,51\n" + +"20070208,60,51\n" + +"20070209,61,55\n" + +"20070210,62,55\n" + +"20070211,61,46\n" + +"20070212,59,43\n" + +"20070213,57,46\n" + +"20070214,61,39\n" + +"20070215,64,44\n" + +"20070216,71,46\n" + +"20070217,73,51\n" + +"20070218,60,46\n" + +"20070219,63,44\n" + +"20070220,57,45\n" + +"20070221,59,48\n" + +"20070222,55,44\n" + +"20070223,55,42\n" + +"20070224,57,39\n" + +"20070225,55,48\n" + +"20070226,57,44\n" + +"20070227,53,39\n" + +"20070228,53,37\n" + +"20070301,54,37\n" + +"20070302,61,39\n" + +"20070303,66,43\n" + +"20070304,70,48\n" + +"20070305,68,53\n" + +"20070306,69,46\n" + +"20070307,62,51\n" + +"20070308,61,46\n" + +"20070309,60,45\n" + +"20070310,68,46\n" + +"20070311,79,48\n" + +"20070312,80,52\n" + +"20070313,73,53\n" + +"20070314,64,48\n" + +"20070315,78,46\n" + +"20070316,78,50\n" + +"20070317,62,51\n" + +"20070318,66,46\n" + +"20070319,64,48\n" + +"20070320,60,48\n" + +"20070321,66,46\n" + +"20070322,73,43\n" + +"20070323,78,48\n" + +"20070324,68,48\n" + +"20070325,64,53\n" + +"20070326,66,48\n" + +"20070327,57,46\n" + +"20070328,66,42\n" + +"20070329,73,42\n" + +"20070330,72,46\n" + +"20070331,69,46\n" + +"20070401,64,46\n" + +"20070402,69,46\n" + +"20070403,71,46\n" + +"20070404,69,50\n" + +"20070405,71,52\n" + +"20070406,64,52\n" + +"20070407,68,51\n" + +"20070408,71,51\n" + +"20070409,66,50\n" + +"20070410,72,46\n" + +"20070411,63,50\n" + +"20070412,64,46\n" + +"20070413,70,44\n" + +"20070414,57,51\n" + +"20070415,68,46\n" + +"20070416,75,46\n" + +"20070417,62,48\n" + +"20070418,61,45\n" + +"20070419,57,42\n" + +"20070420,64,46\n" + +"20070421,61,43\n" + +"20070422,63,48\n" + +"20070423,70,44\n" + +"20070424,66,46\n" + +"20070425,66,48\n" + +"20070426,69,48\n" + +"20070427,82,50\n" + +"20070428,81,55\n" + +"20070429,70,53\n" + +"20070430,77,51\n" + +"20070501,70,48\n" + +"20070502,66,52\n" + +"20070503,63,48\n" + +"20070504,64,51\n" + +"20070505,73,46\n" + +"20070506,88,54\n" + +"20070507,91,57\n" + +"20070508,84,60\n" + +"20070509,73,55\n" + +"20070510,57,52\n" + +"20070511,64,51\n" + +"20070512,64,50\n" + +"20070513,72,46\n" + +"20070514,66,50\n" + +"20070515,63,51\n" + +"20070516,70,48\n" + +"20070517,68,50\n" + +"20070518,73,50\n" + +"20070519,70,52\n" + +"20070520,73,51\n" + +"20070521,78,54\n" + +"20070522,81,51\n" + +"20070523,86,55\n" + +"20070524,78,55\n" + +"20070525,69,54\n" + +"20070526,69,55\n" + +"20070527,69,54\n" + +"20070528,73,52\n" + +"20070529,69,53\n" + +"20070530,66,55\n" + +"20070531,64,54\n" + +"20070601,66,54\n" + +"20070602,64,54\n" + +"20070603,70,55\n" + +"20070604,73,59\n" + +"20070605,68,55\n" + +"20070606,70,53\n" + +"20070607,75,51\n" + +"20070608,70,50\n" + +"20070609,75,53\n" + +"20070610,75,55\n" + +"20070611,75,53\n" + +"20070612,79,52\n" + +"20070613,90,59\n" + +"20070614,89,60\n" + +"20070615,86,59\n" + +"20070616,72,55\n" + +"20070617,79,53\n" + +"20070618,79,57\n" + +"20070619,73,55\n" + +"20070620,71,55\n" + +"20070621,77,55\n" + +"20070622,79,54\n" + +"20070623,77,54\n" + +"20070624,77,53\n" + +"20070625,82,53\n" + +"20070626,71,54\n" + +"20070627,73,55\n" + +"20070628,73,57\n" + +"20070629,77,60\n" + +"20070630,75,54\n" + +"20070701,78,54\n" + +"20070702,82,57\n" + +"20070703,72,57\n" + +"20070704,84,59\n" + +"20070705,84,61\n" + +"20070706,75,60\n" + +"20070707,73,55\n" + +"20070708,78,55\n" + +"20070709,73,57\n" + +"20070710,73,59\n" + +"20070711,78,62\n" + +"20070712,75,59\n" + +"20070713,79,60\n" + +"20070714,73,60\n" + +"20070715,78,62\n" + +"20070716,75,59\n" + +"20070717,77,60\n" + +"20070718,75,63\n" + +"20070719,80,59\n" + +"20070720,79,59\n" + +"20070721,77,61\n" + +"20070722,75,63\n" + +"20070723,79,64\n" + +"20070724,73,61\n" + +"20070725,72,57\n" + +"20070726,75,60\n" + +"20070727,78,60\n" + +"20070728,77,57\n" + +"20070729,73,57\n" + +"20070730,80,59\n" + +"20070731,75,59\n" + +"20070801,75,59\n" + +"20070802,73,60\n" + +"20070803,79,60\n" + +"20070804,77,59\n" + +"20070805,71,57\n" + +"20070806,71,59\n" + +"20070807,73,57\n" + +"20070808,71,55\n" + +"20070809,77,60\n" + +"20070810,77,57\n" + +"20070811,73,57\n" + +"20070812,72,55\n" + +"20070813,75,55\n" + +"20070814,73,55\n" + +"20070815,75,57\n" + +"20070816,79,60\n" + +"20070817,80,55\n" + +"20070818,78,57\n" + +"20070819,77,55\n" + +"20070820,80,64\n" + +"20070821,82,62\n" + +"20070822,82,60\n" + +"20070823,82,57\n" + +"20070824,78,59\n" + +"20070825,73,61\n" + +"20070826,73,61\n" + +"20070827,78,59\n" + +"20070828,86,62\n" + +"20070829,88,68\n" + +"20070830,90,68\n" + +"20070831,80,66\n" + +"20070901,87,62\n" + +"20070902,89,61\n" + +"20070903,78,61\n" + +"20070904,78,63\n" + +"20070905,89,57\n" + +"20070906,82,64\n" + +"20070907,75,61\n" + +"20070908,73,62\n" + +"20070909,71,61\n" + +"20070910,73,59\n" + +"20070911,71,59\n" + +"20070912,72,60\n" + +"20070913,77,57\n" + +"20070914,75,60\n" + +"20070915,73,57\n" + +"20070916,72,61\n" + +"20070917,72,55\n" + +"20070918,73,55\n" + +"20070919,66,55\n" + +"20070920,71,52\n" + +"20070921,77,57\n" + +"20070922,64,57\n" + +"20070923,68,55\n" + +"20070924,78,52\n" + +"20070925,84,53\n" + +"20070926,87,57\n" + +"20070927,75,55\n" + +"20070928,66,54\n" + +"20070929,73,52\n" + +"20070930,75,48\n" + +"20071001,71,57\n" + +"20071002,81,53\n" + +"20071003,73,54\n" + +"20071004,69,55\n" + +"20071005,64,50\n" + +"20071006,73,45\n" + +"20071007,77,46\n" + +"20071008,79,53\n" + +"20071009,72,53\n" + +"20071010,69,54\n" + +"20071011,70,48\n" + +"20071012,64,54\n" + +"20071013,70,53\n" + +"20071014,66,51\n" + +"20071015,68,52\n" + +"20071016,66,52\n" + +"20071017,66,50\n" + +"20071018,73,50\n" + +"20071019,72,57\n" + +"20071020,66,54\n" + +"20071021,73,51\n" + +"20071022,81,51\n" + +"20071023,84,53\n" + +"20071024,79,55\n" + +"20071025,66,53\n" + +"20071026,68,46\n" + +"20071027,66,52\n" + +"20071028,75,52\n" + +"20071029,63,55\n" + +"20071030,63,53\n" + +"20071031,63,54\n" + +"20071101,66,53\n" + +"20071102,77,50\n" + +"20071103,80,48\n" + +"20071104,77,48\n" + +"20071105,66,48\n" + +"20071106,62,52\n" + +"20071107,61,48\n" + +"20071108,59,53\n" + +"20071109,63,48\n" + +"20071110,66,48\n" + +"20071111,63,48\n" + +"20071112,68,44\n" + +"20071113,72,51\n" + +"20071114,75,55\n" + +"20071115,69,51\n" + +"20071116,63,55\n" + +"20071117,66,51\n" + +"20071118,64,53\n" + +"20071119,66,48\n" + +"20071120,63,46\n" + +"20071121,64,43\n" + +"20071122,64,37\n" + +"20071123,70,37\n" + +"20071124,60,37\n" + +"20071125,60,46\n" + +"20071126,63,42\n" + +"20071127,63,45\n" + +"20071128,64,46\n" + +"20071129,62,41\n" + +"20071130,55,42\n" + +"20071201,57,37\n" + +"20071202,61,45\n" + +"20071203,66,50\n" + +"20071204,61,54\n" + +"20071205,60,50\n" + +"20071206,57,48\n" + +"20071207,55,45\n" + +"20071208,53,42\n" + +"20071209,57,39\n" + +"20071210,57,39\n" + +"20071211,57,41\n" + +"20071212,55,35\n" + +"20071213,59,34\n" + +"20071214,55,34\n" + +"20071215,55,39\n" + +"20071216,55,43\n" + +"20071217,57,48\n" + +"20071218,57,43\n" + +"20071219,59,41\n" + +"20071220,55,43\n" + +"20071221,53,39\n" + +"20071222,53,32\n" + +"20071223,55,37\n" + +"20071224,57,45\n" + +"20071225,57,37\n" + +"20071226,53,43\n" + +"20071227,48,37\n" + +"20071228,48,43\n" + +"20071229,57,44\n" + +"20071230,52,43\n" + +"20071231,57,42\n"; } function NoisyData() { diff --git a/tests/gviz.html b/tests/gviz.html index 7942aa6..8cf8c45 100644 --- a/tests/gviz.html +++ b/tests/gviz.html @@ -1,6 +1,6 @@ - noise + gviz diff --git a/tests/spacing.html b/tests/spacing.html new file mode 100644 index 0000000..ca84bb1 --- /dev/null +++ b/tests/spacing.html @@ -0,0 +1,33 @@ + + + spacing + + + + + + +

Wide

+
+ +

Narrow

+
+ + + + diff --git a/tests/two-series.html b/tests/two-series.html index b065d5d..93fdbe7 100644 --- a/tests/two-series.html +++ b/tests/two-series.html @@ -5,6 +5,7 @@ +