2011-07-01 19 views

答えて

1

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

  1. Multiple axes - Flot Example

    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. Tutorial: Flot – How to Create Charts with Multiple Axes

関連する問題