[英]Multiple axis with one series in Flot
Flot中是否可以有兩個軸和一個數據系列?
謝謝
是: https://www.google.com/search?q=flot+multiple+axes
function doPlot(position) { $.plot($("#placeholder"), [ { data: oilprices, label: "Oil price ($)" }, { data: exchangerates, label: "USD/EUR exchange rate", yaxis: 2 }], { xaxes: [ { mode: 'time' } ], yaxes: [ { min: 0 }, { // align if we are to the right alignTicksWithAxis: position == "right"? 1: null, position: position, tickFormatter: euroFormatter } ], legend: { position: 'sw' } }); } doPlot("right"); $("button").click(function () { doPlot($(this).text()); });
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.