Вход Регистрация
Файл: Main Website Files/assets/bower_components/flot/examples/axes-time/index.html
Строк: 151
<?php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<
html>
<
head>
    <
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <
title>Flot ExamplesTime Axes</title>
    <
link href="../examples.css" rel="stylesheet" type="text/css">
    <!--[if 
lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
    <
script language="javascript" type="text/javascript" src="../../jquery.js"></script>
    <
script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
    <
script language="javascript" type="text/javascript" src="../../jquery.flot.time.js"></script>
    <
script type="text/javascript">

    $(function() {

        var 
= [[-373597200000315.71], [-370918800000317.45], [-368326800000317.50], [-363056400000315.86], [-360378000000314.93], [-357699600000313.19], [-352429200000313.34], [-349837200000314.67], [-347158800000315.58], [-344480400000316.47], [-342061200000316.65], [-339382800000317.71], [-336790800000318.29], [-334112400000318.16], [-331520400000316.55], [-328842000000314.80], [-326163600000313.84], [-323571600000313.34], [-320893200000314.81], [-318301200000315.59], [-315622800000316.43], [-312944400000316.97], [-310438800000317.58], [-307760400000319.03], [-305168400000320.03], [-302490000000319.59], [-299898000000318.18], [-297219600000315.91], [-294541200000314.16], [-291949200000313.83], [-289270800000315.00], [-286678800000316.19], [-284000400000316.89], [-281322000000317.70], [-278902800000318.54], [-276224400000319.48], [-273632400000320.58], [-270954000000319.78], [-268362000000318.58], [-265683600000316.79], [-263005200000314.99], [-260413200000315.31], [-257734800000316.10], [-255142800000317.01], [-252464400000317.94], [-249786000000318.56], [-247366800000319.69], [-244688400000320.58], [-242096400000321.01], [-239418000000320.61], [-236826000000319.61], [-234147600000317.40], [-231469200000316.26], [-228877200000315.42], [-226198800000316.69], [-223606800000317.69], [-220928400000318.74], [-218250000000319.08], [-215830800000319.86], [-213152400000321.39], [-210560400000322.24], [-207882000000321.47], [-205290000000319.74], [-202611600000317.77], [-199933200000316.21], [-197341200000315.99], [-194662800000317.07], [-192070800000318.36], [-189392400000319.57], [-178938000000322.23], [-176259600000321.89], [-173667600000320.44], [-170989200000318.70], [-168310800000316.70], [-165718800000316.87], [-163040400000317.68], [-160448400000318.71], [-157770000000319.44], [-155091600000320.44], [-152672400000320.89], [-149994000000322.13], [-147402000000322.16], [-144723600000321.87], [-142131600000321.21], [-139453200000318.87], [-136774800000317.81], [-134182800000317.30], [-131504400000318.87], [-128912400000319.42], [-126234000000320.62], [-123555600000321.59], [-121136400000322.39], [-118458000000323.70], [-115866000000324.07], [-113187600000323.75], [-110595600000322.40], [-107917200000320.37], [-105238800000318.64], [-102646800000318.10], [-99968400000319.79], [-97376400000321.03], [-94698000000322.33], [-92019600000322.50], [-89600400000323.04], [-86922000000324.42], [-84330000000325.00], [-81651600000324.09], [-79059600000322.55], [-76381200000320.92], [-73702800000319.26], [-71110800000319.39], [-68432400000320.72], [-65840400000321.96], [-63162000000322.57], [-60483600000323.15], [-57978000000323.89], [-55299600000325.02], [-52707600000325.57], [-50029200000325.36], [-47437200000324.14], [-44758800000322.11], [-42080400000320.33], [-39488400000320.25], [-36810000000321.32], [-34218000000322.90], [-31539600000324.00], [-28861200000324.42], [-26442000000325.64], [-23763600000326.66], [-21171600000327.38], [-18493200000326.70], [-15901200000325.89], [-13222800000323.67], [-10544400000322.38], [-7952400000321.78], [-5274000000322.85], [-2682000000324.12], [-3600000325.06], [2674800000325.98], [5094000000326.93], [7772400000328.13], [10364400000328.07], [13042800000327.66], [15634800000326.35], [18313200000324.69], [20991600000323.10], [23583600000323.07], [26262000000324.01], [28854000000325.13], [31532400000326.17], [34210800000326.68], [36630000000327.18], [39308400000327.78], [41900400000328.92], [44578800000328.57], [47170800000327.37], [49849200000325.43], [52527600000323.36], [55119600000323.56], [57798000000324.80], [60390000000326.01], [63068400000326.77], [65746800000327.63], [68252400000327.75], [70930800000329.72], [73522800000330.07], [76201200000329.09], [78793200000328.05], [81471600000326.32], [84150000000324.84], [86742000000325.20], [89420400000326.50], [92012400000327.55], [94690800000328.54], [97369200000329.56], [99788400000330.30], [102466800000331.50], [105058800000332.48], [107737200000332.07], [110329200000330.87], [113007600000329.31], [115686000000327.51], [118278000000327.18], [120956400000328.16], [123548400000328.64], [126226800000329.35], [128905200000330.71], [131324400000331.48], [134002800000332.65], [136594800000333.16], [139273200000332.06], [141865200000330.99], [144543600000329.17], [147222000000327.41], [149814000000327.20], [152492400000328.33], [155084400000329.50], [157762800000330.68], [160441200000331.41], [162860400000331.85], [165538800000333.29], [168130800000333.91], [170809200000333.40], [173401200000331.78], [176079600000329.88], [178758000000328.57], [181350000000328.46], [184028400000329.26], [189298800000331.71], [191977200000332.76], [194482800000333.48], [197161200000334.78], [199753200000334.78], [202431600000334.17], [205023600000332.78], [207702000000330.64], [210380400000328.95], [212972400000328.77], [215650800000330.23], [218242800000331.69], [220921200000332.70], [223599600000333.24], [226018800000334.96], [228697200000336.04], [231289200000336.82], [233967600000336.13], [236559600000334.73], [239238000000332.52], [241916400000331.19], [244508400000331.19], [247186800000332.35], [249778800000333.47], [252457200000335.11], [255135600000335.26], [257554800000336.60], [260233200000337.77], [262825200000338.00], [265503600000337.99], [268095600000336.48], [270774000000334.37], [273452400000332.27], [276044400000332.41], [278722800000333.76], [281314800000334.83], [283993200000336.21], [286671600000336.64], [289090800000338.12], [291769200000339.02], [294361200000339.02], [297039600000339.20], [299631600000337.58], [302310000000335.55], [304988400000333.89], [307580400000334.14], [310258800000335.26], [312850800000336.71], [315529200000337.81], [318207600000338.29], [320713200000340.04], [323391600000340.86], [325980000000341.47], [328658400000341.26], [331250400000339.29], [333928800000337.60], [336607200000336.12], [339202800000336.08], [341881200000337.22], [344473200000338.34], [347151600000339.36], [349830000000340.51], [352249200000341.57], [354924000000342.56], [357516000000343.01], [360194400000342.47], [362786400000340.71], [365464800000338.52], [368143200000336.96], [370738800000337.13], [373417200000338.58], [376009200000339.89], [378687600000340.93], [381366000000341.69], [383785200000342.69], [389052000000344.30], [391730400000343.43], [394322400000341.88], [397000800000339.89], [399679200000337.95], [402274800000338.10], [404953200000339.27], [407545200000340.67], [410223600000341.42], [412902000000342.68], [415321200000343.46], [417996000000345.10], [420588000000345.76], [423266400000345.36], [425858400000343.91], [428536800000342.05], [431215200000340.00], [433810800000340.12], [436489200000341.33], [439081200000342.94], [441759600000343.87], [444438000000344.60], [446943600000345.20], [452210400000347.36], [454888800000346.74], [457480800000345.41], [460159200000343.01], [462837600000341.23], [465433200000341.52], [468111600000342.86], [470703600000344.41], [473382000000345.09], [476060400000345.89], [478479600000347.49], [481154400000348.00], [483746400000348.75], [486424800000348.19], [489016800000346.54], [491695200000344.63], [494373600000343.03], [496969200000342.92], [499647600000344.24], [502239600000345.62], [504918000000346.43], [507596400000346.94], [510015600000347.88], [512690400000349.57], [515282400000350.35], [517960800000349.72], [520552800000347.78], [523231200000345.86], [525909600000344.84], [528505200000344.32], [531183600000345.67], [533775600000346.88], [536454000000348.19], [539132400000348.55], [541551600000349.52], [544226400000351.12], [546818400000351.84], [549496800000351.49], [552088800000349.82], [554767200000347.63], [557445600000346.38], [560041200000346.49], [562719600000347.75], [565311600000349.03], [567990000000350.20], [570668400000351.61], [573174000000352.22], [575848800000353.53], [578440800000354.14], [581119200000353.62], [583711200000352.53], [586389600000350.41], [589068000000348.84], [591663600000348.94], [594342000000350.04], [596934000000351.29], [599612400000352.72], [602290800000353.10], [604710000000353.65], [607384800000355.43], [609976800000355.70], [612655200000355.11], [615247200000353.79], [617925600000351.42], [620604000000349.81], [623199600000350.11], [625878000000351.26], [628470000000352.63], [631148400000353.64], [633826800000354.72], [636246000000355.49], [638920800000356.09], [641512800000357.08], [644191200000356.11], [646783200000354.70], [649461600000352.68], [652140000000351.05], [654735600000351.36], [657414000000352.81], [660006000000354.22], [662684400000354.85], [665362800000355.66], [667782000000357.04], [670456800000358.40], [673048800000359.00], [675727200000357.99], [678319200000356.00], [680997600000353.78], [683676000000352.20], [686271600000352.22], [688950000000353.70], [691542000000354.98], [694220400000356.09], [696898800000356.85], [699404400000357.73], [702079200000358.91], [704671200000359.45], [707349600000359.19], [709941600000356.72], [712620000000354.79], [715298400000352.79], [717894000000353.20], [720572400000354.15], [723164400000355.39], [725842800000356.77], [728521200000357.17], [730940400000358.26], [733615200000359.16], [736207200000360.07], [738885600000359.41], [741477600000357.44], [744156000000355.30], [746834400000353.87], [749430000000354.04], [752108400000355.27], [754700400000356.70], [757378800000358.00], [760057200000358.81], [762476400000359.68], [765151200000361.13], [767743200000361.48], [770421600000360.60], [773013600000359.20], [775692000000357.23], [778370400000355.42], [780966000000355.89], [783644400000357.41], [786236400000358.74], [788914800000359.73], [791593200000360.61], [794012400000361.58], [796687200000363.05], [799279200000363.62], [801957600000363.03], [804549600000361.55], [807228000000358.94], [809906400000357.93], [812502000000357.80], [815180400000359.22], [817772400000360.44], [820450800000361.83], [823129200000362.95], [825634800000363.91], [828309600000364.28], [830901600000364.94], [833580000000364.70], [836172000000363.31], [838850400000361.15], [841528800000359.40], [844120800000359.34], [846802800000360.62], [849394800000361.96], [852073200000362.81], [854751600000363.87], [857170800000364.25], [859845600000366.02], [862437600000366.46], [865116000000365.32], [867708000000364.07], [870386400000361.95], [873064800000360.06], [875656800000360.49], [878338800000362.19], [880930800000364.12], [883609200000364.99], [886287600000365.82], [888706800000366.95], [891381600000368.42], [893973600000369.33], [896652000000368.78], [899244000000367.59], [901922400000365.84], [904600800000363.83], [907192800000364.18], [909874800000365.34], [912466800000366.93], [915145200000367.94], [917823600000368.82], [920242800000369.46], [922917600000370.77], [925509600000370.66], [928188000000370.10], [930780000000369.08], [933458400000366.66], [936136800000364.60], [938728800000365.17], [941410800000366.51], [944002800000367.89], [946681200000369.04], [949359600000369.35], [951865200000370.38], [954540000000371.63], [957132000000371.32], [959810400000371.53], [962402400000369.75], [965080800000368.23], [967759200000366.87], [970351200000366.94], [973033200000368.27], [975625200000369.64], [978303600000370.46], [980982000000371.44], [983401200000372.37], [986076000000373.33], [988668000000373.77], [991346400000373.09], [993938400000371.51], [996616800000369.55], [999295200000368.12], [1001887200000368.38], [1004569200000369.66], [1007161200000371.11], [1009839600000372.36], [1012518000000373.09], [1014937200000373.81], [1017612000000374.93], [1020204000000375.58], [1022882400000375.44], [1025474400000373.86], [1028152800000371.77], [1030831200000370.73], [1033423200000370.50], [1036105200000372.18], [1038697200000373.70], [1041375600000374.92], [1044054000000375.62], [1046473200000376.51], [1049148000000377.75], [1051740000000378.54], [1054418400000378.20], [1057010400000376.68], [1059688800000374.43], [1062367200000373.11], [1064959200000373.10], [1067641200000374.77], [1070233200000375.97], [1072911600000377.03], [1075590000000377.87], [1078095600000378.88], [1080770400000380.42], [1083362400000380.62], [1086040800000379.70], [1088632800000377.43], [1091311200000376.32], [1093989600000374.19], [1096581600000374.47], [1099263600000376.15], [1101855600000377.51], [1104534000000378.43], [1107212400000379.70], [1109631600000380.92], [1112306400000382.18], [1114898400000382.45], [1117576800000382.14], [1120168800000380.60], [1122847200000378.64], [1125525600000376.73], [1128117600000376.84], [1130799600000378.29], [1133391600000380.06], [1136070000000381.40], [1138748400000382.20], [1141167600000382.66], [1143842400000384.69], [1146434400000384.94], [1149112800000384.01], [1151704800000382.14], [1154383200000380.31], [1157061600000378.81], [1159653600000379.03], [1162335600000380.17], [1164927600000381.85], [1167606000000382.94], [1170284400000383.86], [1172703600000384.49], [1175378400000386.37], [1177970400000386.54], [1180648800000385.98], [1183240800000384.36], [1185919200000381.85], [1188597600000380.74], [1191189600000381.15], [1193871600000382.38], [1196463600000383.94], [1199142000000385.44]]; 

        $.
plot("#placeholder", [d], {
            
xaxis: { mode"time" }
        });

        $(
"#whole").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: { mode"time" }
            });
        });

        $(
"#nineties").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: {
                    
mode"time",
                    
min: (new Date(199001)).getTime(),
                    
max: (new Date(200001)).getTime()
                }
            });
        });

        $(
"#latenineties").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: {
                    
mode"time",
                    
minTickSize: [1"year"],
                    
min: (new Date(199601)).getTime(),
                    
max: (new Date(200001)).getTime()
                }
            });
        });

        $(
"#ninetyninequarters").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: {
                    
mode"time",
                    
minTickSize: [1"quarter"],
                    
min: (new Date(199901)).getTime(),
                    
max: (new Date(200001)).getTime()
                }
            });
        });

        $(
"#ninetynine").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: {
                    
mode"time",
                    
minTickSize: [1"month"],
                    
min: (new Date(199901)).getTime(),
                    
max: (new Date(200001)).getTime()
                }
            });
        });

        $(
"#lastweekninetynine").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: {
                    
mode"time",
                    
minTickSize: [1"day"],
                    
min: (new Date(19991125)).getTime(),
                    
max: (new Date(200001)).getTime(),
                    
timeformat"%a"
                
}
            });
        });

        $(
"#lastdayninetynine").click(function () {
            $.
plot("#placeholder", [d], {
                
xaxis: {
                    
mode"time",
                    
minTickSize: [1"hour"],
                    
min: (new Date(19991131)).getTime(),
                    
max: (new Date(200001)).getTime(),
                    
twelveHourClocktrue
                
}
            });
        });

        
// Add the Flot version string to the footer

        
$("#footer").prepend("Flot " + $.plot.version " &ndash; ");
    });

    </
script>
</
head>
<
body>

    <
div id="header">
        <
h2>Time Axes</h2>
    </
div>

    <
div id="content">

        <
div class="demo-container">
            <
div id="placeholder" class="demo-placeholder"></div>
        </
div>

        <
p>Monthly mean atmospheric CO<sub>2</subin PPM at Mauna LoaHawaii (source: <a href="http://www.esrl.noaa.gov/gmd/ccgg/trends/">NOAA/ESRL</a>).</p>

        <
p>If you tell Flot that an axis represents timethe data will be interpreted as timestamps and the ticks adjusted and formatted accordingly.</p>

        <
p>Zoom to: <button id="whole">Whole period</button>
        <
button id="nineties">1990-2000</button>
        <
button id="latenineties">1996-2000</button></p>

        <
p>Zoom to: <button id="ninetyninequarters">1999 by quarter</button>
        <
button id="ninetynine">1999 by month</button>
        <
button id="lastweekninetynine">Last week of 1999</button>
        <
button id="lastdayninetynine">Dec311999</button></p>

        <
p>The timestamps must be specified as Javascript timestamps, as milliseconds since January 11970 00:00. This is like Unix timestampsbut in milliseconds instead of seconds (remember to multiply with 1000!).</p>

        <
p>As an extra caveatthe timestamps are interpreted according to UTC and, by default, displayed as suchYou can set the axis "timezone" option to "browser" to display the timestamps in the user's timezone, or, if you use timezoneJS, you can specify a time zone.</p>

    </div>

    <div id="footer">
        Copyright &copy; 2007 - 2014 IOLA and Ole Laursen
    </div>

</body>
</html>
?>
Онлайн: 0
Реклама