Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>please check the code this is source of an example by plugin check the link tooo <a href="http://people.iola.dk/olau/flot/examples/multiple-axes.html" rel="nofollow noreferrer">http://people.iola.dk/olau/flot/examples/multiple-axes.html</a> - <em>Thank you @Mads Skjern for correcting the link</em></p> <p><strong>this is a sample part of the example by the jflot dev team</strong></p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;title&gt;Flot Examples&lt;/title&gt; &lt;link href="layout.css" rel="stylesheet" type="text/css"&gt;&lt;/link&gt; &lt;!--[if IE]&gt;&lt;script language="javascript" type="text/javascript" src="../excanvas.min.js"&gt;&lt;/script&gt;&lt;![endif]--&gt; &lt;script language="javascript" type="text/javascript" src="../jquery.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="../jquery.flot.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Flot Examples&lt;/h1&gt; &lt;div id="placeholder" style="width:600px;height:300px;"&gt;&lt;/div&gt; &lt;p&gt;Dual axis support showing the raw oil price in US $/barrel of crude oil (left axis) vs. the exchange rate from US $ to € (right axis).&lt;/p&gt; &lt;p&gt;As illustrated, you can put in secondary y and x axes if you need to. For each data series, simply specify the axis number.&lt;/p&gt; &lt;script id="source" language="javascript" type="text/javascript"&gt; $(function () { var oilprices = [[1167692400000,61.05], [1167778800000,58.32], [1167865200000,57.35], [1167951600000,56.31], .... some data..... [1219874400000,115.59], [1219960800000,115.46], [1220306400000,109.71], [1220392800000,109.35], [1220565600000,106.23], [1220824800000,106.34]]; var exchangerates = [[1167606000000,0.7580], [1167692400000,0.7580], [1167778800000,0.75470], ... some data..[1220738400000,0.70120], [1220824800000,0.7010], [1220911200000,0.70050]]; $.plot($("#placeholder"), [ { data: oilprices, label: "Oil price ($)" }, { data: exchangerates, label: "USD/EUR exchange rate", yaxis: 2 }], { xaxis: { mode: 'time' }, yaxis: { min: 0 }, y2axis: { tickFormatter: function (v, axis) { return v.toFixed(axis.tickDecimals) +"€" }}, legend: { position: 'sw' } }); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload