0
有沒有人知道如何啓用和隱藏點標籤上的JourPlot?jqplot按鈕隱藏/啓用標籤
pointLabels: { show: false,
hideZeros: true }
我找到了一個例子,如何刷新吧:
var storedData = [3, 7];
var plot1;
renderGraph();
$('button').click(function()
doUpdate();
);
function renderGraph()
if (plot1)
plot1.destroy();
plot1 = $.jqplot('chart1', [storedData]);
}
function doUpdate()
var newVal = Math.random();
storedData.push(newVal);
renderGraph();
我創建了一個按鈕,但在節目中的變量不能訪問?