2011-03-10 57 views

回答

8
$.plot($('#graph'), 
[ 
{data:d1, id:'foo'}, 
{data:d2,id:'bar',fillBetween:'foo'}, 
{data:d3,id:'baz',fillBetween:'bar'} 
], 
{ 
    series: { 
     stack: true, 
     lines: { show: lines, fill: true, steps: steps } 
    } 
}); 

適合我。只要確保在包含內包含堆棧並填充插件(按此順序)即可。