如何繪製背景圖像頂部的圖形?jQuery Flot:如何繪製背景圖像頂部的圖形?
我嘗試了幾種方法,但沒有任何工作。 Argh;)
下面的代碼只顯示圖像,但沒有圖形。怎麼來的?也許是因爲圖形是在圖像後面繪製的?我希望我能得到一些幫助。
在此先感謝。
var data = [ [ ["overview_track_v2.png", -36627, -72447, 35374, 109983] ] , [ [-36627, 35374 ], [-72447, 109983] ] ];
var options = {
series: { images: { show: true } },
xaxis: { min: -36627, max: 35374 },
yaxis: { min: -72447, max: 109983 },
lines: { show: true },
grid: { hoverable: true, clickable: true },
};
var graph = $.plot.image.loadDataImages(data, options, function() {
$.plot($("#graphPosition"), data, options);
});
這只是不是圖像插件做什麼 - 這是添加網格來預渲染圖。即您的圖像將**爲圖形。所有的功能都是添加座標軸。 – Ryley 2012-02-01 06:02:12
好的。感謝你的這個信息。 – OrangeTux 2012-02-01 15:27:41