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,475 @@
|
|
1
|
+
/*
|
2
|
+
2010-11-01 Chris Leonello
|
3
|
+
|
4
|
+
Slightly modified version of the original json2.js to put JSON
|
5
|
+
functions under the $.jqplot namespace.
|
6
|
+
|
7
|
+
licensing and orignal comments follow:
|
8
|
+
|
9
|
+
http://www.JSON.org/json2.js
|
10
|
+
2010-08-25
|
11
|
+
|
12
|
+
Public Domain.
|
13
|
+
|
14
|
+
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
15
|
+
|
16
|
+
See http://www.JSON.org/js.html
|
17
|
+
|
18
|
+
|
19
|
+
This code should be minified before deployment.
|
20
|
+
See http://javascript.crockford.com/jsmin.html
|
21
|
+
|
22
|
+
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
23
|
+
NOT CONTROL.
|
24
|
+
|
25
|
+
|
26
|
+
This file creates a global JSON object containing two methods: stringify
|
27
|
+
and parse.
|
28
|
+
|
29
|
+
$.jqplot.JSON.stringify(value, replacer, space)
|
30
|
+
value any JavaScript value, usually an object or array.
|
31
|
+
|
32
|
+
replacer an optional parameter that determines how object
|
33
|
+
values are stringified for objects. It can be a
|
34
|
+
function or an array of strings.
|
35
|
+
|
36
|
+
space an optional parameter that specifies the indentation
|
37
|
+
of nested structures. If it is omitted, the text will
|
38
|
+
be packed without extra whitespace. If it is a number,
|
39
|
+
it will specify the number of spaces to indent at each
|
40
|
+
level. If it is a string (such as '\t' or ' '),
|
41
|
+
it contains the characters used to indent at each level.
|
42
|
+
|
43
|
+
This method produces a JSON text from a JavaScript value.
|
44
|
+
|
45
|
+
When an object value is found, if the object contains a toJSON
|
46
|
+
method, its toJSON method will be called and the result will be
|
47
|
+
stringified. A toJSON method does not serialize: it returns the
|
48
|
+
value represented by the name/value pair that should be serialized,
|
49
|
+
or undefined if nothing should be serialized. The toJSON method
|
50
|
+
will be passed the key associated with the value, and this will be
|
51
|
+
bound to the value
|
52
|
+
|
53
|
+
For example, this would serialize Dates as ISO strings.
|
54
|
+
|
55
|
+
Date.prototype.toJSON = function (key) {
|
56
|
+
function f(n) {
|
57
|
+
// Format integers to have at least two digits.
|
58
|
+
return n < 10 ? '0' + n : n;
|
59
|
+
}
|
60
|
+
|
61
|
+
return this.getUTCFullYear() + '-' +
|
62
|
+
f(this.getUTCMonth() + 1) + '-' +
|
63
|
+
f(this.getUTCDate()) + 'T' +
|
64
|
+
f(this.getUTCHours()) + ':' +
|
65
|
+
f(this.getUTCMinutes()) + ':' +
|
66
|
+
f(this.getUTCSeconds()) + 'Z';
|
67
|
+
};
|
68
|
+
|
69
|
+
You can provide an optional replacer method. It will be passed the
|
70
|
+
key and value of each member, with this bound to the containing
|
71
|
+
object. The value that is returned from your method will be
|
72
|
+
serialized. If your method returns undefined, then the member will
|
73
|
+
be excluded from the serialization.
|
74
|
+
|
75
|
+
If the replacer parameter is an array of strings, then it will be
|
76
|
+
used to select the members to be serialized. It filters the results
|
77
|
+
such that only members with keys listed in the replacer array are
|
78
|
+
stringified.
|
79
|
+
|
80
|
+
Values that do not have JSON representations, such as undefined or
|
81
|
+
functions, will not be serialized. Such values in objects will be
|
82
|
+
dropped; in arrays they will be replaced with null. You can use
|
83
|
+
a replacer function to replace those with JSON values.
|
84
|
+
$.jqplot.JSON.stringify(undefined) returns undefined.
|
85
|
+
|
86
|
+
The optional space parameter produces a stringification of the
|
87
|
+
value that is filled with line breaks and indentation to make it
|
88
|
+
easier to read.
|
89
|
+
|
90
|
+
If the space parameter is a non-empty string, then that string will
|
91
|
+
be used for indentation. If the space parameter is a number, then
|
92
|
+
the indentation will be that many spaces.
|
93
|
+
|
94
|
+
Example:
|
95
|
+
|
96
|
+
text = $.jqplot.JSON.stringify(['e', {pluribus: 'unum'}]);
|
97
|
+
// text is '["e",{"pluribus":"unum"}]'
|
98
|
+
|
99
|
+
|
100
|
+
text = $.jqplot.JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
101
|
+
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
102
|
+
|
103
|
+
text = $.jqplot.JSON.stringify([new Date()], function (key, value) {
|
104
|
+
return this[key] instanceof Date ?
|
105
|
+
'Date(' + this[key] + ')' : value;
|
106
|
+
});
|
107
|
+
// text is '["Date(---current time---)"]'
|
108
|
+
|
109
|
+
|
110
|
+
$.jqplot.JSON.parse(text, reviver)
|
111
|
+
This method parses a JSON text to produce an object or array.
|
112
|
+
It can throw a SyntaxError exception.
|
113
|
+
|
114
|
+
The optional reviver parameter is a function that can filter and
|
115
|
+
transform the results. It receives each of the keys and values,
|
116
|
+
and its return value is used instead of the original value.
|
117
|
+
If it returns what it received, then the structure is not modified.
|
118
|
+
If it returns undefined then the member is deleted.
|
119
|
+
|
120
|
+
Example:
|
121
|
+
|
122
|
+
// Parse the text. Values that look like ISO date strings will
|
123
|
+
// be converted to Date objects.
|
124
|
+
|
125
|
+
myData = $.jqplot.JSON.parse(text, function (key, value) {
|
126
|
+
var a;
|
127
|
+
if (typeof value === 'string') {
|
128
|
+
a =
|
129
|
+
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
130
|
+
if (a) {
|
131
|
+
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
132
|
+
+a[5], +a[6]));
|
133
|
+
}
|
134
|
+
}
|
135
|
+
return value;
|
136
|
+
});
|
137
|
+
|
138
|
+
myData = $.jqplot.JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
139
|
+
var d;
|
140
|
+
if (typeof value === 'string' &&
|
141
|
+
value.slice(0, 5) === 'Date(' &&
|
142
|
+
value.slice(-1) === ')') {
|
143
|
+
d = new Date(value.slice(5, -1));
|
144
|
+
if (d) {
|
145
|
+
return d;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
return value;
|
149
|
+
});
|
150
|
+
|
151
|
+
|
152
|
+
This is a reference implementation. You are free to copy, modify, or
|
153
|
+
redistribute.
|
154
|
+
*/
|
155
|
+
|
156
|
+
(function($) {
|
157
|
+
|
158
|
+
$.jqplot.JSON = window.JSON;
|
159
|
+
|
160
|
+
if (!window.JSON) {
|
161
|
+
$.jqplot.JSON = {};
|
162
|
+
}
|
163
|
+
|
164
|
+
function f(n) {
|
165
|
+
// Format integers to have at least two digits.
|
166
|
+
return n < 10 ? '0' + n : n;
|
167
|
+
}
|
168
|
+
|
169
|
+
if (typeof Date.prototype.toJSON !== 'function') {
|
170
|
+
|
171
|
+
Date.prototype.toJSON = function (key) {
|
172
|
+
|
173
|
+
return isFinite(this.valueOf()) ?
|
174
|
+
this.getUTCFullYear() + '-' +
|
175
|
+
f(this.getUTCMonth() + 1) + '-' +
|
176
|
+
f(this.getUTCDate()) + 'T' +
|
177
|
+
f(this.getUTCHours()) + ':' +
|
178
|
+
f(this.getUTCMinutes()) + ':' +
|
179
|
+
f(this.getUTCSeconds()) + 'Z' : null;
|
180
|
+
};
|
181
|
+
|
182
|
+
String.prototype.toJSON =
|
183
|
+
Number.prototype.toJSON =
|
184
|
+
Boolean.prototype.toJSON = function (key) {
|
185
|
+
return this.valueOf();
|
186
|
+
};
|
187
|
+
}
|
188
|
+
|
189
|
+
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
190
|
+
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
191
|
+
gap,
|
192
|
+
indent,
|
193
|
+
meta = { // table of character substitutions
|
194
|
+
'\b': '\\b',
|
195
|
+
'\t': '\\t',
|
196
|
+
'\n': '\\n',
|
197
|
+
'\f': '\\f',
|
198
|
+
'\r': '\\r',
|
199
|
+
'"' : '\\"',
|
200
|
+
'\\': '\\\\'
|
201
|
+
},
|
202
|
+
rep;
|
203
|
+
|
204
|
+
|
205
|
+
function quote(string) {
|
206
|
+
|
207
|
+
// If the string contains no control characters, no quote characters, and no
|
208
|
+
// backslash characters, then we can safely slap some quotes around it.
|
209
|
+
// Otherwise we must also replace the offending characters with safe escape
|
210
|
+
// sequences.
|
211
|
+
|
212
|
+
escapable.lastIndex = 0;
|
213
|
+
return escapable.test(string) ?
|
214
|
+
'"' + string.replace(escapable, function (a) {
|
215
|
+
var c = meta[a];
|
216
|
+
return typeof c === 'string' ? c :
|
217
|
+
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
218
|
+
}) + '"' :
|
219
|
+
'"' + string + '"';
|
220
|
+
}
|
221
|
+
|
222
|
+
|
223
|
+
function str(key, holder) {
|
224
|
+
|
225
|
+
// Produce a string from holder[key].
|
226
|
+
|
227
|
+
var i, // The loop counter.
|
228
|
+
k, // The member key.
|
229
|
+
v, // The member value.
|
230
|
+
length,
|
231
|
+
mind = gap,
|
232
|
+
partial,
|
233
|
+
value = holder[key];
|
234
|
+
|
235
|
+
// If the value has a toJSON method, call it to obtain a replacement value.
|
236
|
+
|
237
|
+
if (value && typeof value === 'object' &&
|
238
|
+
typeof value.toJSON === 'function') {
|
239
|
+
value = value.toJSON(key);
|
240
|
+
}
|
241
|
+
|
242
|
+
// If we were called with a replacer function, then call the replacer to
|
243
|
+
// obtain a replacement value.
|
244
|
+
|
245
|
+
if (typeof rep === 'function') {
|
246
|
+
value = rep.call(holder, key, value);
|
247
|
+
}
|
248
|
+
|
249
|
+
// What happens next depends on the value's type.
|
250
|
+
|
251
|
+
switch (typeof value) {
|
252
|
+
case 'string':
|
253
|
+
return quote(value);
|
254
|
+
|
255
|
+
case 'number':
|
256
|
+
|
257
|
+
// JSON numbers must be finite. Encode non-finite numbers as null.
|
258
|
+
|
259
|
+
return isFinite(value) ? String(value) : 'null';
|
260
|
+
|
261
|
+
case 'boolean':
|
262
|
+
case 'null':
|
263
|
+
|
264
|
+
// If the value is a boolean or null, convert it to a string. Note:
|
265
|
+
// typeof null does not produce 'null'. The case is included here in
|
266
|
+
// the remote chance that this gets fixed someday.
|
267
|
+
|
268
|
+
return String(value);
|
269
|
+
|
270
|
+
// If the type is 'object', we might be dealing with an object or an array or
|
271
|
+
// null.
|
272
|
+
|
273
|
+
case 'object':
|
274
|
+
|
275
|
+
// Due to a specification blunder in ECMAScript, typeof null is 'object',
|
276
|
+
// so watch out for that case.
|
277
|
+
|
278
|
+
if (!value) {
|
279
|
+
return 'null';
|
280
|
+
}
|
281
|
+
|
282
|
+
// Make an array to hold the partial results of stringifying this object value.
|
283
|
+
|
284
|
+
gap += indent;
|
285
|
+
partial = [];
|
286
|
+
|
287
|
+
// Is the value an array?
|
288
|
+
|
289
|
+
if (Object.prototype.toString.apply(value) === '[object Array]') {
|
290
|
+
|
291
|
+
// The value is an array. Stringify every element. Use null as a placeholder
|
292
|
+
// for non-JSON values.
|
293
|
+
|
294
|
+
length = value.length;
|
295
|
+
for (i = 0; i < length; i += 1) {
|
296
|
+
partial[i] = str(i, value) || 'null';
|
297
|
+
}
|
298
|
+
|
299
|
+
// Join all of the elements together, separated with commas, and wrap them in
|
300
|
+
// brackets.
|
301
|
+
|
302
|
+
v = partial.length === 0 ? '[]' :
|
303
|
+
gap ? '[\n' + gap +
|
304
|
+
partial.join(',\n' + gap) + '\n' +
|
305
|
+
mind + ']' :
|
306
|
+
'[' + partial.join(',') + ']';
|
307
|
+
gap = mind;
|
308
|
+
return v;
|
309
|
+
}
|
310
|
+
|
311
|
+
// If the replacer is an array, use it to select the members to be stringified.
|
312
|
+
|
313
|
+
if (rep && typeof rep === 'object') {
|
314
|
+
length = rep.length;
|
315
|
+
for (i = 0; i < length; i += 1) {
|
316
|
+
k = rep[i];
|
317
|
+
if (typeof k === 'string') {
|
318
|
+
v = str(k, value);
|
319
|
+
if (v) {
|
320
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
321
|
+
}
|
322
|
+
}
|
323
|
+
}
|
324
|
+
} else {
|
325
|
+
|
326
|
+
// Otherwise, iterate through all of the keys in the object.
|
327
|
+
|
328
|
+
for (k in value) {
|
329
|
+
if (Object.hasOwnProperty.call(value, k)) {
|
330
|
+
v = str(k, value);
|
331
|
+
if (v) {
|
332
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
333
|
+
}
|
334
|
+
}
|
335
|
+
}
|
336
|
+
}
|
337
|
+
|
338
|
+
// Join all of the member texts together, separated with commas,
|
339
|
+
// and wrap them in braces.
|
340
|
+
|
341
|
+
v = partial.length === 0 ? '{}' :
|
342
|
+
gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
|
343
|
+
mind + '}' : '{' + partial.join(',') + '}';
|
344
|
+
gap = mind;
|
345
|
+
return v;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
// If the JSON object does not yet have a stringify method, give it one.
|
350
|
+
|
351
|
+
if (typeof $.jqplot.JSON.stringify !== 'function') {
|
352
|
+
$.jqplot.JSON.stringify = function (value, replacer, space) {
|
353
|
+
|
354
|
+
// The stringify method takes a value and an optional replacer, and an optional
|
355
|
+
// space parameter, and returns a JSON text. The replacer can be a function
|
356
|
+
// that can replace values, or an array of strings that will select the keys.
|
357
|
+
// A default replacer method can be provided. Use of the space parameter can
|
358
|
+
// produce text that is more easily readable.
|
359
|
+
|
360
|
+
var i;
|
361
|
+
gap = '';
|
362
|
+
indent = '';
|
363
|
+
|
364
|
+
// If the space parameter is a number, make an indent string containing that
|
365
|
+
// many spaces.
|
366
|
+
|
367
|
+
if (typeof space === 'number') {
|
368
|
+
for (i = 0; i < space; i += 1) {
|
369
|
+
indent += ' ';
|
370
|
+
}
|
371
|
+
|
372
|
+
// If the space parameter is a string, it will be used as the indent string.
|
373
|
+
|
374
|
+
} else if (typeof space === 'string') {
|
375
|
+
indent = space;
|
376
|
+
}
|
377
|
+
|
378
|
+
// If there is a replacer, it must be a function or an array.
|
379
|
+
// Otherwise, throw an error.
|
380
|
+
|
381
|
+
rep = replacer;
|
382
|
+
if (replacer && typeof replacer !== 'function' &&
|
383
|
+
(typeof replacer !== 'object' ||
|
384
|
+
typeof replacer.length !== 'number')) {
|
385
|
+
throw new Error('$.jqplot.JSON.stringify');
|
386
|
+
}
|
387
|
+
|
388
|
+
// Make a fake root object containing our value under the key of ''.
|
389
|
+
// Return the result of stringifying the value.
|
390
|
+
|
391
|
+
return str('', {'': value});
|
392
|
+
};
|
393
|
+
}
|
394
|
+
|
395
|
+
|
396
|
+
// If the JSON object does not yet have a parse method, give it one.
|
397
|
+
|
398
|
+
if (typeof $.jqplot.JSON.parse !== 'function') {
|
399
|
+
$.jqplot.JSON.parse = function (text, reviver) {
|
400
|
+
|
401
|
+
// The parse method takes a text and an optional reviver function, and returns
|
402
|
+
// a JavaScript value if the text is a valid JSON text.
|
403
|
+
|
404
|
+
var j;
|
405
|
+
|
406
|
+
function walk(holder, key) {
|
407
|
+
|
408
|
+
// The walk method is used to recursively walk the resulting structure so
|
409
|
+
// that modifications can be made.
|
410
|
+
|
411
|
+
var k, v, value = holder[key];
|
412
|
+
if (value && typeof value === 'object') {
|
413
|
+
for (k in value) {
|
414
|
+
if (Object.hasOwnProperty.call(value, k)) {
|
415
|
+
v = walk(value, k);
|
416
|
+
if (v !== undefined) {
|
417
|
+
value[k] = v;
|
418
|
+
} else {
|
419
|
+
delete value[k];
|
420
|
+
}
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
return reviver.call(holder, key, value);
|
425
|
+
}
|
426
|
+
|
427
|
+
|
428
|
+
// Parsing happens in four stages. In the first stage, we replace certain
|
429
|
+
// Unicode characters with escape sequences. JavaScript handles many characters
|
430
|
+
// incorrectly, either silently deleting them, or treating them as line endings.
|
431
|
+
|
432
|
+
text = String(text);
|
433
|
+
cx.lastIndex = 0;
|
434
|
+
if (cx.test(text)) {
|
435
|
+
text = text.replace(cx, function (a) {
|
436
|
+
return '\\u' +
|
437
|
+
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
438
|
+
});
|
439
|
+
}
|
440
|
+
|
441
|
+
// In the second stage, we run the text against regular expressions that look
|
442
|
+
// for non-JSON patterns. We are especially concerned with '()' and 'new'
|
443
|
+
// because they can cause invocation, and '=' because it can cause mutation.
|
444
|
+
// But just to be safe, we want to reject all unexpected forms.
|
445
|
+
|
446
|
+
// We split the second stage into 4 regexp operations in order to work around
|
447
|
+
// crippling inefficiencies in IE's and Safari's regexp engines. First we
|
448
|
+
// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
|
449
|
+
// replace all simple value tokens with ']' characters. Third, we delete all
|
450
|
+
// open brackets that follow a colon or comma or that begin the text. Finally,
|
451
|
+
// we look to see that the remaining characters are only whitespace or ']' or
|
452
|
+
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
|
453
|
+
|
454
|
+
if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
455
|
+
|
456
|
+
// In the third stage we use the eval function to compile the text into a
|
457
|
+
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
|
458
|
+
// in JavaScript: it can begin a block or an object literal. We wrap the text
|
459
|
+
// in parens to eliminate the ambiguity.
|
460
|
+
|
461
|
+
j = eval('(' + text + ')');
|
462
|
+
|
463
|
+
// In the optional fourth stage, we recursively walk the new structure, passing
|
464
|
+
// each name/value pair to a reviver function for possible transformation.
|
465
|
+
|
466
|
+
return typeof reviver === 'function' ?
|
467
|
+
walk({'': j}, '') : j;
|
468
|
+
}
|
469
|
+
|
470
|
+
// If the text is not JSON parseable, then a SyntaxError is thrown.
|
471
|
+
|
472
|
+
throw new SyntaxError('$.jqplot.JSON.parse');
|
473
|
+
};
|
474
|
+
}
|
475
|
+
})(jQuery);
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* jqPlot
|
3
|
+
* Pure JavaScript plotting plugin using jQuery
|
4
|
+
*
|
5
|
+
* Version: 1.0.0b2_r1012
|
6
|
+
*
|
7
|
+
* Copyright (c) 2009-2011 Chris Leonello
|
8
|
+
* jqPlot is currently available for use in all personal or commercial projects
|
9
|
+
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
|
10
|
+
* version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
|
11
|
+
* choose the license that best suits your project and use it accordingly.
|
12
|
+
*
|
13
|
+
* Although not required, the author would appreciate an email letting him
|
14
|
+
* know of any substantial use of jqPlot. You can reach the author at:
|
15
|
+
* chris at jqplot dot com or see http://www.jqplot.com/info.php .
|
16
|
+
*
|
17
|
+
* If you are feeling kind and generous, consider supporting the project by
|
18
|
+
* making a donation at: http://www.jqplot.com/donate.php .
|
19
|
+
*
|
20
|
+
* sprintf functions contained in jqplot.sprintf.js by Ash Searle:
|
21
|
+
*
|
22
|
+
* version 2007.04.27
|
23
|
+
* author Ash Searle
|
24
|
+
* http://hexmen.com/blog/2007/03/printf-sprintf/
|
25
|
+
* http://hexmen.com/js/sprintf.js
|
26
|
+
* The author (Ash Searle) has placed this code in the public domain:
|
27
|
+
* "This code is unrestricted: you are free to use it however you like."
|
28
|
+
*
|
29
|
+
* included jsDate library by Chris Leonello:
|
30
|
+
*
|
31
|
+
* Copyright (c) 2010-2011 Chris Leonello
|
32
|
+
*
|
33
|
+
* jsDate is currently available for use in all personal or commercial projects
|
34
|
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
35
|
+
* choose the license that best suits your project and use it accordingly.
|
36
|
+
*
|
37
|
+
* jsDate borrows many concepts and ideas from the Date Instance
|
38
|
+
* Methods by Ken Snyder along with some parts of Ken's actual code.
|
39
|
+
*
|
40
|
+
* Ken's origianl Date Instance Methods and copyright notice:
|
41
|
+
*
|
42
|
+
* Ken Snyder (ken d snyder at gmail dot com)
|
43
|
+
* 2008-09-10
|
44
|
+
* version 2.0.2 (http://kendsnyder.com/sandbox/date/)
|
45
|
+
* Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/)
|
46
|
+
*
|
47
|
+
* jqplotToImage function based on Larry Siden's export-jqplot-to-png.js.
|
48
|
+
* Larry has generously given permission to adapt his code for inclusion
|
49
|
+
* into jqPlot.
|
50
|
+
*
|
51
|
+
* Larry's original code can be found here:
|
52
|
+
*
|
53
|
+
* https://github.com/lsiden/export-jqplot-to-png
|
54
|
+
*
|
55
|
+
*
|
56
|
+
*/
|
57
|
+
(function($){$.jqplot.JSON=window.JSON;if(!window.JSON){$.jqplot.JSON={}}function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof $.jqplot.JSON.stringify!=="function"){$.jqplot.JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("$.jqplot.JSON.stringify")}return str("",{"":value})}}if(typeof $.jqplot.JSON.parse!=="function"){$.jqplot.JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("$.jqplot.JSON.parse")}}})(jQuery);
|