簡體   English   中英

Flot中的一個系列的多軸

[英]Multiple axis with one series in Flot

Flot中是否可以有兩個軸和一個數據系列?

謝謝

是: https://www.google.com/search?q=flot+multiple+axes

  1. 多軸 - Flot 示例

    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()); });
  2. 教程:Flot – 如何創建多軸圖表

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM