Sha256: 88c1e4c1224205e32ca398cd02b6aad234e17b5c1767234a9080129c437ef800
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
<%= javascript_include_tag "old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js" %> <%= javascript_include_tag "old_sql/plotkit-0.9.1/PlotKit/Base.js" %> <%= javascript_include_tag "old_sql/plotkit-0.9.1/PlotKit/Layout.js" %> <%= javascript_include_tag "old_sql/plotkit-0.9.1/PlotKit/Canvas.js" %> <%= javascript_include_tag "old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js" %> <script> var options = { "IECanvasHTC": "/plotkit/iecanvas.htc", "colorScheme": PlotKit.Base.palette(PlotKit.Base.baseColors()[0]), "backgroundColor": Color.whiteColor(), "xTicks": <%=chart_fields%>, "drawYAxis": true }; function drawGraph() { var layout = new PlotKit.Layout("<%=chart_type%>", options); layout.addDataset("sqrt", <%=chart_data%>); layout.evaluate(); var canvas = MochiKit.DOM.getElement("graph"); var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout, options); plotter.render(); } MochiKit.DOM.addLoadEvent(drawGraph); </script> <div><canvas id="graph" height="555" width="555"></canvas></div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
old_sql-1.16.0 | app/views/old_sql/report/chart.html.erb |
old_sql-1.15.0 | app/views/old_sql/report/chart.html.erb |