jqplot_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +2 -0
- data/LICENSE +0 -0
- data/README.rdoc +1 -0
- data/files/dist/MIT-LICENSE.txt +21 -0
- data/files/dist/README.txt +77 -0
- data/files/dist/changes.txt +395 -0
- data/files/dist/copyright.txt +56 -0
- data/files/dist/docs/files/MIT-LICENSE-txt.html +39 -0
- data/files/dist/docs/files/changes-txt.html +39 -0
- data/files/dist/docs/files/gpl-2-0-txt.html +39 -0
- data/files/dist/docs/files/images/background.jpg +0 -0
- data/files/dist/docs/files/images/basicline.png +0 -0
- data/files/dist/docs/files/images/basiclogaxis.png +0 -0
- data/files/dist/docs/files/images/basiclogoptions.png +0 -0
- data/files/dist/docs/files/images/basicoptions.png +0 -0
- data/files/dist/docs/files/images/dualaxis.png +0 -0
- data/files/dist/docs/files/images/logo.jpg +0 -0
- data/files/dist/docs/files/images/navdocs.png +0 -0
- data/files/dist/docs/files/images/navdocsover.png +0 -0
- data/files/dist/docs/files/images/navdownload.png +0 -0
- data/files/dist/docs/files/images/navdownloadover.png +0 -0
- data/files/dist/docs/files/images/navexamples.png +0 -0
- data/files/dist/docs/files/images/navexamplesover.png +0 -0
- data/files/dist/docs/files/images/navhome.png +0 -0
- data/files/dist/docs/files/images/navhomeover.png +0 -0
- data/files/dist/docs/files/images/new.png +0 -0
- data/files/dist/docs/files/images/sample3.png +0 -0
- data/files/dist/docs/files/images/samplesm.png +0 -0
- data/files/dist/docs/files/jqPlotCssStyling-txt.html +39 -0
- data/files/dist/docs/files/jqPlotOptions-txt.html +292 -0
- data/files/dist/docs/files/jqplot-axisLabelRenderer-js.html +47 -0
- data/files/dist/docs/files/jqplot-axisTickRenderer-js.html +71 -0
- data/files/dist/docs/files/jqplot-canvasGridRenderer-js.html +39 -0
- data/files/dist/docs/files/jqplot-core-js.html +385 -0
- data/files/dist/docs/files/jqplot-divTitleRenderer-js.html +39 -0
- data/files/dist/docs/files/jqplot-lineRenderer-js.html +69 -0
- data/files/dist/docs/files/jqplot-linearAxisRenderer-js.html +61 -0
- data/files/dist/docs/files/jqplot-markerRenderer-js.html +65 -0
- data/files/dist/docs/files/jqplot-shadowRenderer-js.html +61 -0
- data/files/dist/docs/files/jqplot-shapeRenderer-js.html +65 -0
- data/files/dist/docs/files/jqplot-themeEngine-js.html +191 -0
- data/files/dist/docs/files/jqplot-toImage-js.html +39 -0
- data/files/dist/docs/files/optionsTutorial-txt.html +120 -0
- data/files/dist/docs/files/plugins/jqplot-BezierCurveRenderer-js.html +45 -0
- data/files/dist/docs/files/plugins/jqplot-barRenderer-js.html +69 -0
- data/files/dist/docs/files/plugins/jqplot-blockRenderer-js.html +53 -0
- data/files/dist/docs/files/plugins/jqplot-bubbleRenderer-js.html +71 -0
- data/files/dist/docs/files/plugins/jqplot-canvasAxisLabelRenderer-js.html +63 -0
- data/files/dist/docs/files/plugins/jqplot-canvasAxisTickRenderer-js.html +79 -0
- data/files/dist/docs/files/plugins/jqplot-canvasOverlay-js.html +113 -0
- data/files/dist/docs/files/plugins/jqplot-categoryAxisRenderer-js.html +46 -0
- data/files/dist/docs/files/plugins/jqplot-ciParser-js.html +39 -0
- data/files/dist/docs/files/plugins/jqplot-cursor-js.html +93 -0
- data/files/dist/docs/files/plugins/jqplot-dateAxisRenderer-js.html +101 -0
- data/files/dist/docs/files/plugins/jqplot-donutRenderer-js.html +98 -0
- data/files/dist/docs/files/plugins/jqplot-dragable-js.html +45 -0
- data/files/dist/docs/files/plugins/jqplot-enhancedLegendRenderer-js.html +49 -0
- data/files/dist/docs/files/plugins/jqplot-funnelRenderer-js.html +87 -0
- data/files/dist/docs/files/plugins/jqplot-highlighter-js.html +80 -0
- data/files/dist/docs/files/plugins/jqplot-logAxisRenderer-js.html +47 -0
- data/files/dist/docs/files/plugins/jqplot-mekkoAxisRenderer-js.html +49 -0
- data/files/dist/docs/files/plugins/jqplot-mekkoRenderer-js.html +62 -0
- data/files/dist/docs/files/plugins/jqplot-meterGaugeRenderer-js.html +103 -0
- data/files/dist/docs/files/plugins/jqplot-ohlcRenderer-js.html +65 -0
- data/files/dist/docs/files/plugins/jqplot-pieRenderer-js.html +93 -0
- data/files/dist/docs/files/plugins/jqplot-pointLabels-js.html +72 -0
- data/files/dist/docs/files/plugins/jqplot-pyramidAxisRenderer-js.html +49 -0
- data/files/dist/docs/files/plugins/jqplot-pyramidGridRenderer-js.html +39 -0
- data/files/dist/docs/files/plugins/jqplot-pyramidRenderer-js.html +53 -0
- data/files/dist/docs/files/plugins/jqplot-trendline-js.html +67 -0
- data/files/dist/docs/files/usage-txt.html +58 -0
- data/files/dist/docs/index/Classes.html +70 -0
- data/files/dist/docs/index/Files.html +34 -0
- data/files/dist/docs/index/Functions.html +66 -0
- data/files/dist/docs/index/General.html +42 -0
- data/files/dist/docs/index/General2.html +42 -0
- data/files/dist/docs/index/General3.html +42 -0
- data/files/dist/docs/index/General4.html +46 -0
- data/files/dist/docs/index/General5.html +46 -0
- data/files/dist/docs/index/General6.html +34 -0
- data/files/dist/docs/index/General7.html +58 -0
- data/files/dist/docs/index/Hooks.html +46 -0
- data/files/dist/docs/index/Properties.html +42 -0
- data/files/dist/docs/index/Properties2.html +42 -0
- data/files/dist/docs/index/Properties3.html +46 -0
- data/files/dist/docs/index/Properties4.html +50 -0
- data/files/dist/docs/index/Properties5.html +34 -0
- data/files/dist/docs/index/Properties6.html +58 -0
- data/files/dist/docs/index.html +1 -0
- data/files/dist/docs/javascript/main.js +836 -0
- data/files/dist/docs/javascript/searchdata.js +182 -0
- data/files/dist/docs/search/ClassesA.html +20 -0
- data/files/dist/docs/search/ClassesD.html +20 -0
- data/files/dist/docs/search/ClassesG.html +20 -0
- data/files/dist/docs/search/ClassesH.html +20 -0
- data/files/dist/docs/search/ClassesJ.html +20 -0
- data/files/dist/docs/search/ClassesL.html +20 -0
- data/files/dist/docs/search/ClassesS.html +20 -0
- data/files/dist/docs/search/ClassesSymbols.html +20 -0
- data/files/dist/docs/search/ClassesT.html +20 -0
- data/files/dist/docs/search/ClassesV.html +20 -0
- data/files/dist/docs/search/FilesJ.html +20 -0
- data/files/dist/docs/search/FunctionsC.html +20 -0
- data/files/dist/docs/search/FunctionsD.html +20 -0
- data/files/dist/docs/search/FunctionsG.html +20 -0
- data/files/dist/docs/search/FunctionsI.html +20 -0
- data/files/dist/docs/search/FunctionsM.html +20 -0
- data/files/dist/docs/search/FunctionsN.html +20 -0
- data/files/dist/docs/search/FunctionsR.html +20 -0
- data/files/dist/docs/search/FunctionsS.html +20 -0
- data/files/dist/docs/search/FunctionsZ.html +20 -0
- data/files/dist/docs/search/GeneralA.html +20 -0
- data/files/dist/docs/search/GeneralB.html +20 -0
- data/files/dist/docs/search/GeneralC.html +20 -0
- data/files/dist/docs/search/GeneralD.html +20 -0
- data/files/dist/docs/search/GeneralE.html +20 -0
- data/files/dist/docs/search/GeneralF.html +20 -0
- data/files/dist/docs/search/GeneralG.html +20 -0
- data/files/dist/docs/search/GeneralH.html +20 -0
- data/files/dist/docs/search/GeneralI.html +20 -0
- data/files/dist/docs/search/GeneralJ.html +20 -0
- data/files/dist/docs/search/GeneralL.html +20 -0
- data/files/dist/docs/search/GeneralM.html +20 -0
- data/files/dist/docs/search/GeneralN.html +20 -0
- data/files/dist/docs/search/GeneralO.html +20 -0
- data/files/dist/docs/search/GeneralP.html +20 -0
- data/files/dist/docs/search/GeneralR.html +20 -0
- data/files/dist/docs/search/GeneralS.html +20 -0
- data/files/dist/docs/search/GeneralSymbols.html +20 -0
- data/files/dist/docs/search/GeneralT.html +20 -0
- data/files/dist/docs/search/GeneralU.html +20 -0
- data/files/dist/docs/search/GeneralV.html +20 -0
- data/files/dist/docs/search/GeneralW.html +20 -0
- data/files/dist/docs/search/GeneralX.html +20 -0
- data/files/dist/docs/search/GeneralY.html +20 -0
- data/files/dist/docs/search/GeneralZ.html +20 -0
- data/files/dist/docs/search/HooksA.html +20 -0
- data/files/dist/docs/search/HooksE.html +20 -0
- data/files/dist/docs/search/HooksJ.html +20 -0
- data/files/dist/docs/search/HooksP.html +20 -0
- data/files/dist/docs/search/NoResults.html +15 -0
- data/files/dist/docs/search/PropertiesA.html +20 -0
- data/files/dist/docs/search/PropertiesB.html +20 -0
- data/files/dist/docs/search/PropertiesC.html +20 -0
- data/files/dist/docs/search/PropertiesD.html +20 -0
- data/files/dist/docs/search/PropertiesE.html +20 -0
- data/files/dist/docs/search/PropertiesF.html +20 -0
- data/files/dist/docs/search/PropertiesG.html +20 -0
- data/files/dist/docs/search/PropertiesH.html +20 -0
- data/files/dist/docs/search/PropertiesI.html +20 -0
- data/files/dist/docs/search/PropertiesL.html +20 -0
- data/files/dist/docs/search/PropertiesM.html +20 -0
- data/files/dist/docs/search/PropertiesN.html +20 -0
- data/files/dist/docs/search/PropertiesO.html +20 -0
- data/files/dist/docs/search/PropertiesP.html +20 -0
- data/files/dist/docs/search/PropertiesR.html +20 -0
- data/files/dist/docs/search/PropertiesS.html +20 -0
- data/files/dist/docs/search/PropertiesT.html +20 -0
- data/files/dist/docs/search/PropertiesU.html +20 -0
- data/files/dist/docs/search/PropertiesV.html +20 -0
- data/files/dist/docs/search/PropertiesW.html +20 -0
- data/files/dist/docs/search/PropertiesX.html +20 -0
- data/files/dist/docs/search/PropertiesY.html +20 -0
- data/files/dist/docs/search/PropertiesZ.html +20 -0
- data/files/dist/docs/styles/1.css +767 -0
- data/files/dist/docs/styles/2.css +174 -0
- data/files/dist/docs/styles/main.css +2 -0
- data/files/dist/examples/KCPsample4.csv +25 -0
- data/files/dist/examples/ajax-loader.gif +0 -0
- data/files/dist/examples/area.html +139 -0
- data/files/dist/examples/axisLabelTests.html +157 -0
- data/files/dist/examples/axisLabelsRotatedText.html +229 -0
- data/files/dist/examples/axisScalingForceTickAt.html +242 -0
- data/files/dist/examples/bandedLine.html +310 -0
- data/files/dist/examples/bar-charts.html +219 -0
- data/files/dist/examples/barLineAnimated.html +165 -0
- data/files/dist/examples/barTest.html +299 -0
- data/files/dist/examples/bezierCurve.html +125 -0
- data/files/dist/examples/blockPlot.html +197 -0
- data/files/dist/examples/bubble-plots.html +213 -0
- data/files/dist/examples/bubbleChart.html +264 -0
- data/files/dist/examples/candlestick-charts.html +209 -0
- data/files/dist/examples/candlestick.html +322 -0
- data/files/dist/examples/cursor-highlighter.html +137 -0
- data/files/dist/examples/customHighlighterCursorTrendline.html +104 -0
- data/files/dist/examples/dashboardWidget.html +212 -0
- data/files/dist/examples/dashedLines.html +227 -0
- data/files/dist/examples/data-renderers.html +144 -0
- data/files/dist/examples/date-axes.html +107 -0
- data/files/dist/examples/dateAxisLogAxisZooming.html +105 -0
- data/files/dist/examples/dateAxisRenderer.html +292 -0
- data/files/dist/examples/example.js +114 -0
- data/files/dist/examples/example.min.js +1 -0
- data/files/dist/examples/examples.css +135 -0
- data/files/dist/examples/examples.min.css +1 -0
- data/files/dist/examples/fillBetweenLines.html +134 -0
- data/files/dist/examples/hiddenPlotsInTabs.html +225 -0
- data/files/dist/examples/images/logo.jpg +0 -0
- data/files/dist/examples/index.html +100 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_454545_256x240.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_888888_256x240.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/jquery-ui.css +612 -0
- data/files/dist/examples/jquery-ui/css/ui-lightness/jquery-ui.min.css +10 -0
- data/files/dist/examples/jquery-ui/js/jquery-ui.min.js +473 -0
- data/files/dist/examples/jquery-ui/js/jquery.effects.blind.js +80 -0
- data/files/dist/examples/jquery-ui/js/jquery.effects.blind.min.js +14 -0
- data/files/dist/examples/jquery-ui/js/jquery.effects.core.js +890 -0
- data/files/dist/examples/jquery-ui/js/jquery.effects.core.min.js +32 -0
- data/files/dist/examples/jsondata.txt +1 -0
- data/files/dist/examples/kcp_area.html +250 -0
- data/files/dist/examples/kcp_cdf.html +351 -0
- data/files/dist/examples/kcp_engel.html +244 -0
- data/files/dist/examples/kcp_lorenz.html +510 -0
- data/files/dist/examples/kcp_pdf.html +387 -0
- data/files/dist/examples/kcp_pyramid.html +580 -0
- data/files/dist/examples/kcp_pyramid2.html +568 -0
- data/files/dist/examples/line-charts.html +193 -0
- data/files/dist/examples/mekkoCharts.html +269 -0
- data/files/dist/examples/meterGauge.html +179 -0
- data/files/dist/examples/nav.inc +40 -0
- data/files/dist/examples/pie-donut-charts.html +160 -0
- data/files/dist/examples/pieTest.html +187 -0
- data/files/dist/examples/pieTest2.js +80 -0
- data/files/dist/examples/pieTest4.html +258 -0
- data/files/dist/examples/point-labels.html +193 -0
- data/files/dist/examples/resizablePlot.html +196 -0
- data/files/dist/examples/rotated-tick-labels.html +216 -0
- data/files/dist/examples/rotatedTickLabelsZoom.html +118 -0
- data/files/dist/examples/smoothedLine.html +137 -0
- data/files/dist/examples/syntaxhighlighter/LGPL-LICENSE +165 -0
- data/files/dist/examples/syntaxhighlighter/MIT-LICENSE +20 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shAutoloader.js +17 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shAutoloader.min.js +1 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shBrushJScript.js +52 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shBrushJScript.min.js +1 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shBrushXml.js +69 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shBrushXml.min.js +1 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shCore.js +17 -0
- data/files/dist/examples/syntaxhighlighter/scripts/shCore.min.js +1 -0
- data/files/dist/examples/syntaxhighlighter/styles/shCore.css +226 -0
- data/files/dist/examples/syntaxhighlighter/styles/shCore.min.css +1 -0
- data/files/dist/examples/syntaxhighlighter/styles/shCoreDefault.css +328 -0
- data/files/dist/examples/syntaxhighlighter/styles/shCoreDefault.min.css +1 -0
- data/files/dist/examples/syntaxhighlighter/styles/shThemeDefault.css +117 -0
- data/files/dist/examples/syntaxhighlighter/styles/shThemeDefault.min.css +1 -0
- data/files/dist/examples/syntaxhighlighter/styles/shThemejqPlot.css +138 -0
- data/files/dist/examples/syntaxhighlighter/styles/shThemejqPlot.min.css +1 -0
- data/files/dist/examples/theming.html +519 -0
- data/files/dist/examples/topbanner.inc +9 -0
- data/files/dist/examples/waterfall.html +162 -0
- data/files/dist/examples/waterfall2.html +231 -0
- data/files/dist/examples/yahooData.js +1807 -0
- data/files/dist/examples/yahooData.min.js +1 -0
- data/files/dist/examples/zoom1.html +149 -0
- data/files/dist/examples/zoomOptions.html +176 -0
- data/files/dist/examples/zoomProxy.html +110 -0
- data/files/dist/examples/zooming.html +209 -0
- data/files/dist/excanvas.js +1438 -0
- data/files/dist/excanvas.min.js +57 -0
- data/files/dist/gpl-2.0.txt +280 -0
- data/files/dist/jqPlotCssStyling.txt +53 -0
- data/files/dist/jqPlotOptions.txt +276 -0
- data/files/dist/jquery.jqplot.css +259 -0
- data/files/dist/jquery.jqplot.js +10901 -0
- data/files/dist/jquery.jqplot.min.css +1 -0
- data/files/dist/jquery.js +9046 -0
- data/files/dist/jquery.min.js +4 -0
- data/files/dist/optionsTutorial.txt +240 -0
- data/files/dist/plugins/jqplot.BezierCurveRenderer.js +312 -0
- data/files/dist/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.barRenderer.js +747 -0
- data/files/dist/plugins/jqplot.barRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.blockRenderer.js +234 -0
- data/files/dist/plugins/jqplot.blockRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.bubbleRenderer.js +754 -0
- data/files/dist/plugins/jqplot.bubbleRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.canvasAxisLabelRenderer.js +202 -0
- data/files/dist/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.canvasAxisTickRenderer.js +242 -0
- data/files/dist/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.canvasOverlay.js +864 -0
- data/files/dist/plugins/jqplot.canvasOverlay.min.js +57 -0
- data/files/dist/plugins/jqplot.canvasTextRenderer.js +448 -0
- data/files/dist/plugins/jqplot.canvasTextRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.categoryAxisRenderer.js +636 -0
- data/files/dist/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.ciParser.js +115 -0
- data/files/dist/plugins/jqplot.ciParser.min.js +57 -0
- data/files/dist/plugins/jqplot.cursor.js +1093 -0
- data/files/dist/plugins/jqplot.cursor.min.js +57 -0
- data/files/dist/plugins/jqplot.dateAxisRenderer.js +702 -0
- data/files/dist/plugins/jqplot.dateAxisRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.donutRenderer.js +800 -0
- data/files/dist/plugins/jqplot.donutRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.dragable.js +224 -0
- data/files/dist/plugins/jqplot.dragable.min.js +57 -0
- data/files/dist/plugins/jqplot.enhancedLegendRenderer.js +241 -0
- data/files/dist/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.funnelRenderer.js +938 -0
- data/files/dist/plugins/jqplot.funnelRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.highlighter.js +454 -0
- data/files/dist/plugins/jqplot.highlighter.min.js +57 -0
- data/files/dist/plugins/jqplot.json2.js +475 -0
- data/files/dist/plugins/jqplot.json2.min.js +57 -0
- data/files/dist/plugins/jqplot.logAxisRenderer.js +528 -0
- data/files/dist/plugins/jqplot.logAxisRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.mekkoAxisRenderer.js +610 -0
- data/files/dist/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.mekkoRenderer.js +436 -0
- data/files/dist/plugins/jqplot.mekkoRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.meterGaugeRenderer.js +1029 -0
- data/files/dist/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.ohlcRenderer.js +372 -0
- data/files/dist/plugins/jqplot.ohlcRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.pieRenderer.js +899 -0
- data/files/dist/plugins/jqplot.pieRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.pointLabels.js +362 -0
- data/files/dist/plugins/jqplot.pointLabels.min.js +57 -0
- data/files/dist/plugins/jqplot.pyramidAxisRenderer.js +730 -0
- data/files/dist/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.pyramidGridRenderer.js +423 -0
- data/files/dist/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.pyramidRenderer.js +490 -0
- data/files/dist/plugins/jqplot.pyramidRenderer.min.js +57 -0
- data/files/dist/plugins/jqplot.trendline.js +222 -0
- data/files/dist/plugins/jqplot.trendline.min.js +57 -0
- data/files/dist/usage.txt +126 -0
- data/files/javascripts/excanvas.min.js +57 -0
- data/files/javascripts/jquery.jqplot.min.js +57 -0
- data/files/javascripts/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.barRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.blockRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.bubbleRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.canvasOverlay.min.js +57 -0
- data/files/javascripts/plugins/jqplot.canvasTextRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.ciParser.min.js +57 -0
- data/files/javascripts/plugins/jqplot.cursor.min.js +57 -0
- data/files/javascripts/plugins/jqplot.dateAxisRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.donutRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.dragable.min.js +57 -0
- data/files/javascripts/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.funnelRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.highlighter.min.js +57 -0
- data/files/javascripts/plugins/jqplot.json2.min.js +57 -0
- data/files/javascripts/plugins/jqplot.logAxisRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.mekkoRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.ohlcRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.pieRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.pointLabels.min.js +57 -0
- data/files/javascripts/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.pyramidRenderer.min.js +57 -0
- data/files/javascripts/plugins/jqplot.trendline.min.js +57 -0
- data/files/stylesheets/jqplot_rails_overrides.css +3 -0
- data/files/stylesheets/jquery.jqplot.min.css +1 -0
- data/lib/jqplot_rails/jqplot_action_view.rb +106 -0
- data/lib/jqplot_rails/railtie.rb +29 -0
- data/lib/jqplot_rails/tasks.rb +58 -0
- data/lib/jqplot_rails/version.rb +17 -0
- data/lib/jqplot_rails.rb +5 -0
- metadata +473 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Effects 1.9pre
|
3
|
+
*
|
4
|
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6
|
+
* http://jquery.org/license
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI/Effects/
|
9
|
+
*/
|
10
|
+
jQuery.effects||function(f,m){function r(c){var a;if(c&&c.constructor===Array&&c.length===3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
|
11
|
+
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return s.transparent;return s[f.trim(c).toLowerCase()]}function t(){var c=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(d=c.length;d--;){b=c[d];if(typeof c[b]==="string")a[f.camelCase(b)]=c[b]}else for(b in c)if(typeof c[b]===
|
12
|
+
"string")a[b]=c[b];return a}function o(c,a,b,d){if(f.isPlainObject(c))return c;c={effect:c};if(a===m)a={};if(f.isFunction(a)){d=a;b=null;a={}}if(f.type(a)==="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a&&f.extend(c,a);b=b||a.duration;c.duration=f.fx.off?0:typeof b==="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;c.complete=d||a.complete;return c}function q(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects.effect[c]){if(u&&
|
13
|
+
f.effects[c])return false;return true}return false}var u=f.uiBackCompat!==false;f.effects={effect:{}};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){var d;d=b.elem;var e=a,g;do{g=f.curCSS(d,e);if(g!=""&&g!=="transparent"||f.nodeName(d,"body"))break;e="backgroundColor"}while(d=d.parentNode);d=r(g);b.start=d;b.end=r(b.end);b.colorInit=true}b.elem.style[a]=
|
14
|
+
"rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var s={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
|
15
|
+
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
|
16
|
+
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},w=["add","remove","toggle"],x={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(c,a){f.fx.step[a]=function(b){if(b.end!=="none"&&!b.setAttr||b.pos===1&&!b.setAttr){jQuery.style(b.elem,a,b.end);b.setAttr=
|
17
|
+
true}}});f.effects.animateClass=function(c,a,b,d){var e=f.speed(a,b,d);return this.queue(function(){var g=f(this),h=g.attr("class")||"",n,j=e.children?g.find("*").andSelf():g;j=j.map(function(){var k=f(this);return{el:k,originalStyleAttr:k.attr("style")||" ",start:t.call(this)}});f.each(w,function(k,i){if(c[i])g[i+"Class"](c[i])});n=g.attr("class");j=j.map(function(){this.end=t.call(this.el[0]);var k=this.start,i=this.end,v={},l,p;for(l in i){p=i[l];if(k[l]!=p)if(!x[l])if(f.fx.step[l]||!isNaN(parseFloat(p)))v[l]=
|
18
|
+
p}this.diff=v;return this});g.attr("class",h);j=j.map(function(){var k=this,i=f.Deferred();this.el.animate(this.diff,{duration:e.duration,easing:e.easing,queue:false,complete:function(){i.resolve(k)}});return i.promise()});f.when.apply(f,j.get()).done(function(){g.attr("class",n);f.each(arguments,function(){if(typeof this.el.attr("style")==="object"){this.el.attr("style").cssText="";this.el.attr("style").cssText=this.originalStyleAttr}else this.el.attr("style",this.originalStyleAttr)});e.complete.call(g[0])})})};
|
19
|
+
f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a==="boolean"||a===m?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,
|
20
|
+
[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.9pre",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a==="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b,d;switch(c[0]){case "top":b=
|
21
|
+
0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":d=0;break;case "center":d=0.5;break;case "right":d=1;break;default:d=c[1]/a.width}return{x:d,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),
|
22
|
+
d={width:c.width(),height:c.height()},e=document.activeElement;c.wrap(b);if(c[0]===e||f.contains(c[0],e))f(e).focus();b=c.parent();if(c.css("position")==="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(g,h){a[h]=c.css(h);if(isNaN(parseInt(a[h],10)))a[h]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}c.css(d);return b.css(a).show()},
|
23
|
+
removeWrapper:function(c){var a=document.activeElement;if(c.parent().is(".ui-effects-wrapper")){c.parent().replaceWith(c);if(c[0]===a||f.contains(c[0],a))f(a).focus()}return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){var h=c.cssUnit(g);if(h[0]>0)d[g]=h[0]*b+h[1]});return d}});f.fn.extend({effect:function(){function c(h){function n(){f.isFunction(k)&&k.call(j[0]);f.isFunction(h)&&h()}var j=f(this),k=a.complete,i=a.mode;(j.is(":hidden")?i==="hide":i==="show")?n():e.call(j[0],
|
24
|
+
a,n)}var a=o.apply(this,arguments),b=a.mode,d=a.queue,e=f.effects.effect[a.effect],g=!e&&u&&f.effects[a.effect];if(f.fx.off||!(e||g))return b?this[b](a.duration,a.complete):this.each(function(){a.complete&&a.complete.call(this)});return e?d===false?this.each(c):this.queue(d||"fx",c):g.call(this,{options:a,duration:a.duration,callback:a.complete,mode:a.mode})},_show:f.fn.show,show:function(c){if(q(c))return this._show.apply(this,arguments);else{var a=o.apply(this,arguments);a.mode="show";return this.effect.call(this,
|
25
|
+
a)}},_hide:f.fn.hide,hide:function(c){if(q(c))return this._hide.apply(this,arguments);else{var a=o.apply(this,arguments);a.mode="hide";return this.effect.call(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(q(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=o.apply(this,arguments);a.mode="toggle";return this.effect.call(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),
|
26
|
+
e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,
|
27
|
+
b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*
|
28
|
+
((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+
|
29
|
+
b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=e*0.3,h=d;if(a==0)return b;if((a/=e)==1)return b+d;if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*
|
30
|
+
e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=e*0.3,h=d;if(a==0)return b;if((a/=e)==1)return b+d;if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=e*0.3*1.5,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*
|
31
|
+
Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==m)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==m)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==m)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,
|
32
|
+
d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
|
@@ -0,0 +1 @@
|
|
1
|
+
[[1, 3, 2, 4, 6, 9]]
|
@@ -0,0 +1,250 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
|
6
|
+
<title>Area Chart</title>
|
7
|
+
|
8
|
+
<link class="include" rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
|
9
|
+
<link rel="stylesheet" type="text/css" href="examples.min.css" />
|
10
|
+
<link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreDefault.min.css" />
|
11
|
+
<link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shThemejqPlot.min.css" />
|
12
|
+
|
13
|
+
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
|
14
|
+
<script class="include" type="text/javascript" src="../jquery.min.js"></script>
|
15
|
+
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div class="logo">
|
20
|
+
<div class="nav">
|
21
|
+
<a class="nav" href="../../../index.php"><span>></span>Home</a>
|
22
|
+
<a class="nav" href="../../../docs/"><span>></span>Docs</a>
|
23
|
+
<a class="nav" href="../../download/"><span>></span>Download</a>
|
24
|
+
<a class="nav" href="../../../info.php"><span>></span>Info</a>
|
25
|
+
<a class="nav" href="../../../donate.php"><span>></span>Donate</a>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div class="example-content">
|
29
|
+
|
30
|
+
<div class="example-nav">
|
31
|
+
<a href="index.html">Previous</a> <a href="./">Examples</a> <a href="kcp_cdf.html">Next</a></div>
|
32
|
+
|
33
|
+
|
34
|
+
<!-- Example scripts go here -->
|
35
|
+
|
36
|
+
|
37
|
+
<link class="include" type="text/css" href="jquery-ui/css/ui-lightness/jquery-ui.min.css" rel="Stylesheet" />
|
38
|
+
|
39
|
+
<style type="text/css">
|
40
|
+
|
41
|
+
.chart-container {
|
42
|
+
border: 1px solid darkblue;
|
43
|
+
padding: 30px 0px 30px 30px;
|
44
|
+
width: 900px;
|
45
|
+
height: 400px;
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
table.jqplot-table-legend {
|
50
|
+
font-size: 0.65em;
|
51
|
+
line-height: 1em;
|
52
|
+
margin: 0px 0px 10px 15px;
|
53
|
+
}
|
54
|
+
|
55
|
+
td.jqplot-table-legend-label {
|
56
|
+
width: 20em;
|
57
|
+
}
|
58
|
+
|
59
|
+
div.jqplot-table-legend-swatch {
|
60
|
+
border-width: 2px 6px;
|
61
|
+
}
|
62
|
+
|
63
|
+
div.jqplot-table-legend-swatch-outline {
|
64
|
+
border: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
#chart1 {
|
68
|
+
width: 96%;
|
69
|
+
height: 96%;
|
70
|
+
}
|
71
|
+
|
72
|
+
.jqplot-datestamp {
|
73
|
+
font-size: 0.8em;
|
74
|
+
color: #777;
|
75
|
+
/* margin-top: 1em;
|
76
|
+
text-align: right;*/
|
77
|
+
font-style: italic;
|
78
|
+
position: absolute;
|
79
|
+
bottom: 15px;
|
80
|
+
right: 15px;
|
81
|
+
}
|
82
|
+
|
83
|
+
td.controls li {
|
84
|
+
list-style-type: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
td.controls ul {
|
88
|
+
margin-top: 0.5em;
|
89
|
+
padding-left: 0.2em;
|
90
|
+
}
|
91
|
+
|
92
|
+
pre.code {
|
93
|
+
margin-top: 45px;
|
94
|
+
clear: both;
|
95
|
+
}
|
96
|
+
|
97
|
+
</style>
|
98
|
+
|
99
|
+
<div class="chart-container">
|
100
|
+
<div id="chart1"></div>
|
101
|
+
<div class="jqplot-datestamp"></div>
|
102
|
+
</div>
|
103
|
+
|
104
|
+
<pre class="code brush:js"></pre>
|
105
|
+
|
106
|
+
<script class="code" type="text/javascript">
|
107
|
+
$(document).ready(function(){
|
108
|
+
|
109
|
+
///////////
|
110
|
+
// Function to parse a csv file.
|
111
|
+
// Note, this IS NOT a complete parser. It does not handle quoted text.
|
112
|
+
// It is implemented to demonstrate functionality from within JavaScript.
|
113
|
+
// If a full csv parser is needed, check out:
|
114
|
+
// http://www.bennadel.com/blog/1504-Ask-Ben-Parsing-CSV-Strings-With-Javascript-Exec-Regular-Expression-Command.htm
|
115
|
+
///////////
|
116
|
+
var parseCSVFile = function(url) {
|
117
|
+
var ret = null;
|
118
|
+
var labels = [];
|
119
|
+
var ticks = [];
|
120
|
+
var values = [];
|
121
|
+
var temp;
|
122
|
+
$.ajax({
|
123
|
+
// have to use synchronous here, else returns before data is fetched
|
124
|
+
async: false,
|
125
|
+
url: url,
|
126
|
+
dataType:'text',
|
127
|
+
success: function(data) {
|
128
|
+
// parse csv data
|
129
|
+
var lines = data.split('\n');
|
130
|
+
var line;
|
131
|
+
for (var i=0, l=lines.length; i<l; i++) {
|
132
|
+
line = lines[i].replace('\r', '').split(',');
|
133
|
+
// console.log(line);
|
134
|
+
if (line.length > 1) {
|
135
|
+
if (i === 0) {
|
136
|
+
ticks = line.slice(1, line.length);
|
137
|
+
for (var n=0, nl=ticks.length; n<nl; n++) {
|
138
|
+
ticks[n] = [n+1, ticks[n]];
|
139
|
+
}
|
140
|
+
}
|
141
|
+
else {
|
142
|
+
labels.push(line[0]);
|
143
|
+
values.push(line.slice(1, line.length));
|
144
|
+
temp = values[values.length-1];
|
145
|
+
// make a copy of temp
|
146
|
+
temp = temp.slice(0, temp.length);
|
147
|
+
for (var n=0, nl=temp.length; n<nl; n++) {
|
148
|
+
values[values.length-1][n] = parseFloat(temp[n]);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
ret = [values, labels, ticks];
|
154
|
+
}
|
155
|
+
});
|
156
|
+
return ret;
|
157
|
+
};
|
158
|
+
|
159
|
+
var jsonurl = "./KCPsample4.csv";
|
160
|
+
|
161
|
+
var infos = parseCSVFile(jsonurl);
|
162
|
+
|
163
|
+
// area plots are made with all series except last 2
|
164
|
+
data = infos[0].slice(0, infos[0].length-2);
|
165
|
+
labels = infos[1].slice(0, infos[1].length-2);
|
166
|
+
ticks = infos[2];
|
167
|
+
|
168
|
+
// make the plot
|
169
|
+
|
170
|
+
plot1 = $.jqplot('chart1', data, {
|
171
|
+
title: 'Area Plot',
|
172
|
+
stackSeries: true,
|
173
|
+
seriesDefaults: {
|
174
|
+
showMarker: false,
|
175
|
+
fill: true,
|
176
|
+
fillAndStroke: true
|
177
|
+
},
|
178
|
+
legend: {
|
179
|
+
show: true,
|
180
|
+
placement: 'outsideGrid',
|
181
|
+
labels: labels,
|
182
|
+
location: 'ne',
|
183
|
+
rowSpacing: '0px'
|
184
|
+
},
|
185
|
+
axes: {
|
186
|
+
xaxis: {
|
187
|
+
pad: 0,
|
188
|
+
ticks: ticks,
|
189
|
+
tickOptions: {
|
190
|
+
showGridline: false
|
191
|
+
}
|
192
|
+
},
|
193
|
+
yaxis: {
|
194
|
+
min: 0,
|
195
|
+
max: 100,
|
196
|
+
tickOptions: {
|
197
|
+
showGridline: false
|
198
|
+
}
|
199
|
+
}
|
200
|
+
},
|
201
|
+
grid: {
|
202
|
+
drawBorder: false,
|
203
|
+
shadow: false,
|
204
|
+
// background: 'rgba(0,0,0,0)' works to make transparent.
|
205
|
+
background: 'white'
|
206
|
+
}
|
207
|
+
});
|
208
|
+
|
209
|
+
// add a date at the bottom.
|
210
|
+
|
211
|
+
var d = new $.jsDate();
|
212
|
+
$('div.jqplot-datestamp').html('Generated on '+d.strftime('%v'));
|
213
|
+
|
214
|
+
// make it resizable.
|
215
|
+
|
216
|
+
$("div.chart-container").resizable({delay:20});
|
217
|
+
|
218
|
+
$('div.chart-container').bind('resize', function(event, ui) {
|
219
|
+
plot1.replot();
|
220
|
+
});
|
221
|
+
});
|
222
|
+
|
223
|
+
</script>
|
224
|
+
|
225
|
+
|
226
|
+
<!-- End example scripts -->
|
227
|
+
|
228
|
+
<!-- Don't touch this! -->
|
229
|
+
|
230
|
+
|
231
|
+
<script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
|
232
|
+
<script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
|
233
|
+
<script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
|
234
|
+
<script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
|
235
|
+
<!-- End Don't touch this! -->
|
236
|
+
|
237
|
+
<!-- Additional plugins go here -->
|
238
|
+
|
239
|
+
<script class="include" type="text/javascript" src="jquery-ui/js/jquery-ui.min.js"></script>
|
240
|
+
|
241
|
+
<!-- End additional plugins -->
|
242
|
+
|
243
|
+
|
244
|
+
</div>
|
245
|
+
<script type="text/javascript" src="example.min.js"></script>
|
246
|
+
|
247
|
+
</body>
|
248
|
+
|
249
|
+
|
250
|
+
</html>
|
@@ -0,0 +1,351 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
|
6
|
+
<title>Cumulative Density Function Chart</title>
|
7
|
+
|
8
|
+
<link class="include" rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
|
9
|
+
<link rel="stylesheet" type="text/css" href="examples.min.css" />
|
10
|
+
<link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreDefault.min.css" />
|
11
|
+
<link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shThemejqPlot.min.css" />
|
12
|
+
|
13
|
+
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
|
14
|
+
<script class="include" type="text/javascript" src="../jquery.min.js"></script>
|
15
|
+
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div class="logo">
|
20
|
+
<div class="nav">
|
21
|
+
<a class="nav" href="../../../index.php"><span>></span>Home</a>
|
22
|
+
<a class="nav" href="../../../docs/"><span>></span>Docs</a>
|
23
|
+
<a class="nav" href="../../download/"><span>></span>Download</a>
|
24
|
+
<a class="nav" href="../../../info.php"><span>></span>Info</a>
|
25
|
+
<a class="nav" href="../../../donate.php"><span>></span>Donate</a>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div class="example-content">
|
29
|
+
|
30
|
+
<div class="example-nav">
|
31
|
+
<a href="kcp_area.html">Previous</a> <a href="./">Examples</a> <a href="kcp_engel.html">Next</a></div>
|
32
|
+
|
33
|
+
|
34
|
+
<!-- Example scripts go here -->
|
35
|
+
|
36
|
+
|
37
|
+
<link class="include" type="text/css" href="jquery-ui/css/ui-lightness/jquery-ui.min.css" rel="Stylesheet" />
|
38
|
+
|
39
|
+
<style type="text/css">
|
40
|
+
|
41
|
+
.chart-container {
|
42
|
+
border: 1px solid darkblue;
|
43
|
+
padding: 30px;
|
44
|
+
width: 500px;
|
45
|
+
height: 400px;
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
#chart1 {
|
50
|
+
width: 96%;
|
51
|
+
height: 96%;
|
52
|
+
}
|
53
|
+
|
54
|
+
.jqplot-datestamp {
|
55
|
+
font-size: 0.8em;
|
56
|
+
color: #777;
|
57
|
+
/* margin-top: 1em;
|
58
|
+
text-align: right;*/
|
59
|
+
font-style: italic;
|
60
|
+
position: absolute;
|
61
|
+
bottom: 15px;
|
62
|
+
right: 15px;
|
63
|
+
}
|
64
|
+
|
65
|
+
td.controls li {
|
66
|
+
list-style-type: none;
|
67
|
+
}
|
68
|
+
|
69
|
+
td.controls ul {
|
70
|
+
margin-top: 0.5em;
|
71
|
+
padding-left: 0.2em;
|
72
|
+
}
|
73
|
+
|
74
|
+
pre.code {
|
75
|
+
margin-top: 45px;
|
76
|
+
clear: both;
|
77
|
+
}
|
78
|
+
|
79
|
+
</style>
|
80
|
+
|
81
|
+
<table class="app">
|
82
|
+
<td class="controls">
|
83
|
+
|
84
|
+
<div>
|
85
|
+
Data Series:
|
86
|
+
<ul>
|
87
|
+
<li><input name="dataSeries" value="national" type="radio" checked />National</li>
|
88
|
+
<li><input name="dataSeries" value="urban" type="radio" />Urban</li>
|
89
|
+
<li><input name="dataSeries" value="rural" type="radio" />Rural</li>
|
90
|
+
</ul>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div>
|
94
|
+
Background Color:
|
95
|
+
<ul>
|
96
|
+
<li><input name="backgroundColor" value="white" type="radio" checked />Default</li>
|
97
|
+
<li><input name="backgroundColor" value="#efefef" type="radio" />Gray</li>
|
98
|
+
</ul>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div>
|
102
|
+
Line Width:
|
103
|
+
<ul>
|
104
|
+
<li><input name="lineWidth" value="2.5" type="radio" checked />Thin</li>
|
105
|
+
<li><input name="lineWidth" value="5" type="radio" />Thick</li>
|
106
|
+
</ul>
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<div>
|
110
|
+
Grids:
|
111
|
+
<ul>
|
112
|
+
<li><input name="gridsVertical" value="vertical" type="checkbox" checked />Vertical</li>
|
113
|
+
<li><input name="gridsHorizontal" value="horizontal" type="checkbox" checked />Horizontal</li>
|
114
|
+
</ul>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div>
|
118
|
+
Set lines at:
|
119
|
+
<ul>
|
120
|
+
<li><input name="userLine1" value="8250" type="text" size="8" /> and </li>
|
121
|
+
<li><input name="userLine2" value="60000" type="text" size="8" /></li>
|
122
|
+
</ul>
|
123
|
+
</div>
|
124
|
+
</td>
|
125
|
+
|
126
|
+
<td class="chart">
|
127
|
+
<div class="chart-container">
|
128
|
+
<div id="chart1"></div>
|
129
|
+
<div class="jqplot-datestamp"></div>
|
130
|
+
</div>
|
131
|
+
</td>
|
132
|
+
|
133
|
+
</table>
|
134
|
+
|
135
|
+
<pre class="code brush:js"></pre>
|
136
|
+
|
137
|
+
<script class="code" type="text/javascript">
|
138
|
+
$(document).ready(function(){
|
139
|
+
var dataSets = {
|
140
|
+
national: [[1521.3938, 0.034259], [1626.3757, 0.036908], [1738.6018, 0.039957], [1858.5719, 0.043623], [1986.8205, 0.048008], [2123.9187, 0.053278], [2270.4772, 0.059665], [2427.1488, 0.067405], [2594.6313, 0.076951], [2773.6707, 0.088909], [2965.0643, 0.103706], [3169.6651, 0.121406], [3388.384, 0.142376], [3622.1955, 0.167456], [3872.1408, 0.198392], [4139.3332, 0.237371], [4424.963, 0.287096], [4730.3023, 0.350664], [5056.7112, 0.43322], [5405.6431, 0.546538], [5778.6531, 0.703419], [6177.4022, 0.921534], [6603.6665, 1.225405], [7059.3446, 1.658248], [7546.4664, 2.286919], [8067.2013, 3.168531], [8623.869, 4.338121], [9218.9488, 5.828025], [9855.0905, 7.674282], [10535.1293, 9.856185], [11262.0934, 12.427952], [12039.2208, 15.374906], [12869.973, 18.559853], [13758.0502, 21.938501], [14707.4081, 25.480211], [15722.2754, 29.195872], [16807.1724, 33.040813], [17966.9296, 36.929108], [19206.7162, 40.883239], [20532.0529, 44.934876], [21948.8429, 48.979949], [23463.3991, 52.874709], [25082.4581, 56.569122], [26813.238, 60.143349], [28663.448, 63.632698], [30641.3597, 67.019887], [32755.7239, 70.272329], [35015.9867, 73.31569], [37432.2159, 76.137996], [40015.1736, 78.734309], [42776.4074, 81.144203], [45728.1335, 83.364771], [48883.5393, 85.40072], [52256.6796, 87.276365], [55862.5786, 88.994984], [59717.3573, 90.547773], [63838.07, 91.930153], [68243.1267, 93.143588], [72952.1481, 94.19365], [77986.109, 95.093093], [83367.4313, 95.863261], [89120.1733, 96.518119], [95269.7861, 97.07861], [101843.7444, 97.555507], [108871.3294, 97.958887], [116383.8431, 98.29631], [124414.8718, 98.57645], [132999.9458, 98.805892], [142177.421, 98.994988], [151988.1749, 99.15183], [162475.9062, 99.279882], [173687.5023, 99.384116], [185672.5653, 99.470272], [198484.6408, 99.541871], [212180.7957, 99.601871], [226822.0345, 99.653556], [242473.814, 99.698334], [259205.3802, 99.737113], [277091.4846, 99.770733], [296211.7947, 99.800151], [316651.475, 99.826487], [338501.5668, 99.85018], [361859.7555, 99.871291], [386829.3815, 99.889939], [413522.0015, 99.906286], [442056.5084, 99.92045], [472559.9991, 99.932702], [505168.8456, 99.9433], [540027.3147, 99.952485], [577291.1437, 99.960528], [617126.311, 99.96755], [659710.2484, 99.9736], [705233.3359, 99.978742], [753896.9752, 99.983126], [805918.5808, 99.986929], [861529.8645, 99.990275], [920978.5269, 99.993221], [984529.3611, 99.995794], [1052466.484, 99.998031], [1125090.461, 100]],
|
141
|
+
|
142
|
+
urban: [[2918.1368, 0.022476], [3099.059, 0.026364], [3291.1983, 0.031079], [3495.2501, 0.03683], [3711.9529, 0.043812], [3942.0911, 0.052123], [4186.4977, 0.061977], [4446.0574, 0.07392], [4721.7095, 0.08836], [5014.4519, 0.105627], [5325.3441, 0.126649], [5655.5113, 0.152991], [6006.1487, 0.186685], [6378.5253, 0.230466], [6773.9889, 0.288337], [7193.971, 0.364009], [7639.9917, 0.462362], [8113.6654, 0.591815], [8616.7064, 0.763717], [9150.9356, 0.990265], [9718.2865, 1.291577], [10320.8128, 1.689361], [10960.6953, 2.197829], [11640.25, 2.833156], [12361.9366, 3.607935], [13128.3672, 4.531058], [13942.3158, 5.612064], [14806.7287, 6.829389], [15724.7345, 8.150496], [16699.656, 9.587093], [17735.0219, 11.139531], [18834.5796, 12.843232], [20002.3091, 14.744], [21242.4369, 16.882944], [22559.4426, 19.274088], [23958.1299, 21.898373], [25443.5105, 24.70402], [27020.9832, 27.725078], [28696.2577, 31.02485], [30475.3976, 34.577391], [32364.8747, 38.361881], [34371.4652, 42.220399], [36502.4624, 46.204947], [38765.5793, 50.279452], [41169.0072, 54.284933], [43721.489, 58.020934], [46432.1785, 61.527083], [49310.9281, 65.059633], [52368.1573, 68.631977], [55614.9317, 72.134933], [59063.062, 75.35901], [62724.914, 78.289798], [66613.7972, 80.980675], [70743.7873, 83.426691], [75129.8328, 85.63051], [79787.8886, 87.600439], [84734.6595, 89.324337], [89988.1253, 90.82494], [95567.3009, 92.132382], [101492.3799, 93.28344], [107784.9158, 94.291515], [114467.4749, 95.165628], [121564.3462, 95.917569], [129101.2165, 96.566309], [137105.3654, 97.111687], [145605.9093, 97.557321], [154633.333, 97.923776], [164220.4481, 98.224115], [174401.955, 98.472073], [185214.7052, 98.683427], [196698.0321, 98.864412], [208893.1174, 99.018636], [221844.2859, 99.150765], [235598.4142, 99.266909], [250205.285, 99.369967], [265718.0332, 99.460335], [282192.2909, 99.538693], [299687.9363, 99.60658], [318268.2947, 99.665149], [338000.617, 99.716006], [358956.683, 99.76009], [381211.6455, 99.798168], [404846.394, 99.830962], [429946.4736, 99.858805], [456602.7336, 99.881656], [484912.1405, 99.900176], [514976.218, 99.91564], [546904.2389, 99.928971], [580811.7657, 99.940546], [616821.5259, 99.950572], [655064.5111, 99.959091], [695677.8688, 99.966315], [738809.2149, 99.97239], [784614.6621, 99.97761], [833260.0023, 99.982252], [884922.1907, 99.986425], [939786.4993, 99.990223], [998052.3412, 99.993742], [1059930.608, 99.996997], [1125645.267, 100]],
|
143
|
+
|
144
|
+
rural: [[1522.3755, 0.044856], [1621.4335, 0.048153], [1726.937, 0.051764], [1839.3056, 0.055907], [1958.9857, 0.060801], [2086.4531, 0.066762], [2222.2145, 0.073899], [2366.8099, 0.082612], [2520.8136, 0.093168], [2684.8381, 0.106164], [2859.5353, 0.122508], [3045.6, 0.142886], [3243.7713, 0.16758], [3454.8371, 0.19669], [3679.6367, 0.23118], [3919.0639, 0.273098], [4174.0698, 0.325019], [4445.6684, 0.390807], [4734.9398, 0.474177], [5043.0332, 0.579565], [5371.1735, 0.719638], [5720.6654, 0.911325], [6092.8986, 1.175054], [6489.3516, 1.537895], [6911.6011, 2.041596], [7361.3256, 2.758826], [7840.3135, 3.776691], [8350.4675, 5.133703], [8893.8162, 6.852621], [9472.5195, 8.948744], [10088.8789, 11.417648], [10745.3427, 14.293846], [11444.5212, 17.634387], [12189.194, 21.360828], [12982.3225, 25.29956], [13827.0569, 29.428878], [14726.7567, 33.707138], [15684.9997, 38.129755], [16705.5921, 42.671778], [17792.5925, 47.229102], [18950.322, 51.800588], [20183.3846, 56.383771], [21496.6782, 60.886558], [22895.4161, 65.12792], [24385.1837, 69.030354], [25971.888, 72.617033], [27661.8365, 75.986887], [29461.7179, 79.112304], [31378.744, 81.975561], [33420.5079, 84.537139], [35595.0905, 86.782817], [37911.2052, 88.71901], [40378.0258, 90.413815], [43005.3584, 91.908817], [45803.6014, 93.228911], [48783.9674, 94.381653], [51958.2609, 95.359352], [55339.1005, 96.170082], [58939.867, 96.837248], [62774.9884, 97.378991], [66859.655, 97.8273], [71210.033, 98.200135], [75843.5542, 98.506646], [80778.5711, 98.752685], [86034.7015, 98.949784], [91632.7482, 99.10766], [97595.1423, 99.232528], [103945.4998, 99.334335], [110709.0646, 99.42121], [117912.6058, 99.497035], [125584.9876, 99.563629], [133756.5988, 99.621726], [142459.781, 99.672192], [151729.4076, 99.715746], [161602.1937, 99.752893], [172117.386, 99.784601], [183316.6015, 99.811139], [195244.7151, 99.833203], [207948.9717, 99.852181], [221479.8735, 99.868723], [235890.9734, 99.883153], [251240.0159, 99.89576], [267587.7958, 99.906951], [284999.0141, 99.917064], [303543.4372, 99.926265], [323294.5157, 99.9346], [344330.7648, 99.942191], [366735.4418, 99.949086], [390598.3214, 99.955426], [416013.9199, 99.961279], [443083.2701, 99.966677], [471913.507, 99.971673], [502620.1526, 99.976302], [535324.8297, 99.980575], [570156.9769, 99.984496], [607256.1655, 99.988063], [646769.3381, 99.991314], [688853.5686, 99.994366], [733675.418, 99.997264], [781414.486, 100]]
|
145
|
+
};
|
146
|
+
|
147
|
+
// Initial values for the user lines.
|
148
|
+
var userLine1Val = 8250;
|
149
|
+
var userLine2Val = 60000;
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
plot1 = $.jqplot("chart1", [dataSets.national], {
|
154
|
+
title: "Cumulative Density Function",
|
155
|
+
cursor: {
|
156
|
+
show: false
|
157
|
+
},
|
158
|
+
highlighter: {
|
159
|
+
show: true,
|
160
|
+
showMarker: false,
|
161
|
+
useAxesFormatters: false,
|
162
|
+
formatString: '%d, %.1f'
|
163
|
+
},
|
164
|
+
axesDefaults: {
|
165
|
+
labelRenderer: $.jqplot.CanvasAxisLabelRenderer
|
166
|
+
},
|
167
|
+
seriesDefaults: {
|
168
|
+
showMarker: false
|
169
|
+
},
|
170
|
+
axes: {
|
171
|
+
xaxis: {
|
172
|
+
label: "Per Capita Expenditure (local currency)",
|
173
|
+
renderer: $.jqplot.LogAxisRenderer,
|
174
|
+
pad:0,
|
175
|
+
ticks: [700, 7000, 70000, 700000, {value:1000000, showLabel:false, showMark:false, showGridline:false}],
|
176
|
+
tickOptions: {
|
177
|
+
formatString: "%d"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
yaxis: {
|
181
|
+
label: "Population Share (%)",
|
182
|
+
forceTickAt0: true,
|
183
|
+
pad: 0
|
184
|
+
}
|
185
|
+
},
|
186
|
+
grid: {
|
187
|
+
drawBorder: false,
|
188
|
+
shadow: false,
|
189
|
+
// background: 'rgba(0,0,0,0)' works.
|
190
|
+
background: "white"
|
191
|
+
},
|
192
|
+
canvasOverlay: {
|
193
|
+
show: true,
|
194
|
+
objects: [
|
195
|
+
{verticalLine: {
|
196
|
+
name: "line1",
|
197
|
+
x: userLine1Val,
|
198
|
+
color: "#d4c35D",
|
199
|
+
yOffset: 0,
|
200
|
+
shadow: false,
|
201
|
+
showTooltip: true,
|
202
|
+
tooltipFormatString: "PCE=%'d",
|
203
|
+
showTooltipPrecision: 0.5
|
204
|
+
}},
|
205
|
+
{verticalLine: {
|
206
|
+
name: "line2",
|
207
|
+
x: userLine2Val,
|
208
|
+
color: "#d4c35D",
|
209
|
+
yOffset: 0,
|
210
|
+
shadow: false,
|
211
|
+
showTooltip: true,
|
212
|
+
tooltipFormatString: "PCE=%'d",
|
213
|
+
showTooltipPrecision: 0.5
|
214
|
+
}}
|
215
|
+
]
|
216
|
+
}
|
217
|
+
});
|
218
|
+
|
219
|
+
// add a date at the bottom.
|
220
|
+
|
221
|
+
var d = new $.jsDate();
|
222
|
+
$("div.jqplot-datestamp").html("Generated on "+d.strftime("%v"));
|
223
|
+
|
224
|
+
// initialize form elements
|
225
|
+
// set these before attaching event handlers.
|
226
|
+
|
227
|
+
$("input[type=radio][name=dataSeries]").attr("checked", false);
|
228
|
+
$("input[type=radio][name=dataSeries][value=national]").attr("checked", true);
|
229
|
+
|
230
|
+
$("input[type=radio][name=backgroundColor]").attr("checked", false);
|
231
|
+
$("input[type=radio][name=backgroundColor][value=white]").attr("checked", true);
|
232
|
+
|
233
|
+
$("input[type=radio][name=lineWidth]").attr("checked", false);
|
234
|
+
$('input[type=radio][name=lineWidth][value="2.5"]').attr("checked", true);
|
235
|
+
|
236
|
+
$("input[type=text][name=userLine1]").val(userLine1Val);
|
237
|
+
$("input[type=text][name=userLine2]").val(userLine2Val);
|
238
|
+
|
239
|
+
$("input[type=checkbox][name=gridsVertical]").attr("checked", true);
|
240
|
+
$("input[type=checkbox][name=gridsHorizontal]").attr("checked", true);
|
241
|
+
|
242
|
+
$("input[type=radio][name=backgroundColor]").change(function(){
|
243
|
+
plot1.grid.background = $(this).val();
|
244
|
+
plot1.replot();
|
245
|
+
});
|
246
|
+
|
247
|
+
$("input[type=radio][name=dataSeries]").change(function(){
|
248
|
+
var val = $(this).val();
|
249
|
+
plot1.series[0].data = dataSets[val];
|
250
|
+
|
251
|
+
switch (val) {
|
252
|
+
case "national":
|
253
|
+
plot1.series[0].renderer.shapeRenderer.strokeStyle = "#4bb2c5";
|
254
|
+
break;
|
255
|
+
case "urban":
|
256
|
+
plot1.series[0].renderer.shapeRenderer.strokeStyle = "#c54b62";
|
257
|
+
break;
|
258
|
+
case "rural":
|
259
|
+
plot1.series[0].renderer.shapeRenderer.strokeStyle = "#b2c54b";
|
260
|
+
break;
|
261
|
+
default:
|
262
|
+
plot1.series[0].renderer.shapeRenderer.strokeStyle = "#4bb2c5";
|
263
|
+
break;
|
264
|
+
}
|
265
|
+
// hack to make sure plot auto computes a new format string if needed.
|
266
|
+
plot1.axes.yaxis.tickOptions.formatString = ''
|
267
|
+
plot1.replot({resetAxes:["yaxis"]});
|
268
|
+
});
|
269
|
+
|
270
|
+
$("input[type=checkbox][name=gridsVertical]").change(function(){
|
271
|
+
plot1.axes.xaxis.tickOptions.showGridline = this.checked;
|
272
|
+
plot1.replot();
|
273
|
+
});
|
274
|
+
|
275
|
+
$("input[type=checkbox][name=gridsHorizontal]").change(function(){
|
276
|
+
plot1.axes.yaxis.tickOptions.showGridline = this.checked;
|
277
|
+
plot1.replot();
|
278
|
+
});
|
279
|
+
|
280
|
+
$("input[type=text][name=userLine1]").keyup(function(){
|
281
|
+
var val = parseFloat($(this).val());
|
282
|
+
plot1.plugins.canvasOverlay.get("line1").options.x = val;
|
283
|
+
plot1.replot();
|
284
|
+
});
|
285
|
+
|
286
|
+
$("input[type=text][name=userLine2]").keyup(function(){
|
287
|
+
var val = parseFloat($(this).val());
|
288
|
+
plot1.plugins.canvasOverlay.get("line2").options.x = val;
|
289
|
+
plot1.replot();
|
290
|
+
});
|
291
|
+
|
292
|
+
$("input[type=radio][name=lineWidth]").change(function(){
|
293
|
+
var val = parseFloat($(this).val()), shadowOffset;
|
294
|
+
plot1.series[0].renderer.shapeRenderer.lineWidth = val;
|
295
|
+
plot1.series[0].renderer.shadowRenderer.lineWidth = val;
|
296
|
+
// for thick lines, scale shadow offset.
|
297
|
+
if (val > 2.5) {
|
298
|
+
shadowOffset = 1.25 * (1 + (Math.atan((val/2.5))/0.785398163 - 1)*0.6);
|
299
|
+
// var shadow_offset = this.shadowOffset;
|
300
|
+
}
|
301
|
+
// for skinny lines, don't make such a big shadow.
|
302
|
+
else {
|
303
|
+
shadowOffset = 1.25*Math.atan((val/2.5))/0.785398163;
|
304
|
+
}
|
305
|
+
plot1.series[0].renderer.shadowRenderer.offset = shadowOffset;
|
306
|
+
plot1.plugins.canvasOverlay.get("line1").options.lineWidth = val;
|
307
|
+
plot1.plugins.canvasOverlay.get("line2").options.lineWidth = val;
|
308
|
+
plot1.replot();
|
309
|
+
});
|
310
|
+
|
311
|
+
|
312
|
+
$("div.chart-container").resizable({delay:20});
|
313
|
+
|
314
|
+
$("div.chart-container").bind("resize", function(event, ui) {
|
315
|
+
plot1.replot();
|
316
|
+
});
|
317
|
+
});
|
318
|
+
|
319
|
+
</script>
|
320
|
+
|
321
|
+
|
322
|
+
<!-- End example scripts -->
|
323
|
+
|
324
|
+
<!-- Don't touch this! -->
|
325
|
+
|
326
|
+
|
327
|
+
<script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
|
328
|
+
<script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
|
329
|
+
<script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
|
330
|
+
<script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
|
331
|
+
<!-- End Don't touch this! -->
|
332
|
+
|
333
|
+
<!-- Additional plugins go here -->
|
334
|
+
<script class="include" type="text/javascript" src="../plugins/jqplot.logAxisRenderer.min.js"></script>
|
335
|
+
<script class="include" type="text/javascript" src="../plugins/jqplot.cursor.min.js"></script>
|
336
|
+
<script class="include" type="text/javascript" src="../plugins/jqplot.canvasTextRenderer.min.js"></script>
|
337
|
+
<script class="include" type="text/javascript" src="../plugins/jqplot.canvasAxisLabelRenderer.min.js"></script>
|
338
|
+
<script class="include" type="text/javascript" src="../plugins/jqplot.highlighter.min.js"></script>
|
339
|
+
<script class="include" type="text/javascript" src="../plugins/jqplot.canvasOverlay.min.js"></script>
|
340
|
+
<script class="include" type="text/javascript" src="jquery-ui/js/jquery-ui.min.js"></script>
|
341
|
+
|
342
|
+
<!-- End additional plugins -->
|
343
|
+
|
344
|
+
|
345
|
+
</div>
|
346
|
+
<script type="text/javascript" src="example.min.js"></script>
|
347
|
+
|
348
|
+
</body>
|
349
|
+
|
350
|
+
|
351
|
+
</html>
|