ご挨拶 私は jquery の初心者であり、公式のflotの例から「turning-series.html」のバージョンを使用する問題を修正しようとしています。2-オプションを変更して、マウスをポイントに合わせると、Y軸の値が表示されるようにする方法は?
//My data instance:
var datasets = {
"1st input": {
label: "1st input",
data: [
[1.250208e+12, 1339],
[1.2502944e+12, 1316],
[1.2503808e+12, 1379],
[1.2504672e+12, 1223],
]
},
"2nd input": {
label: "2nd input",
data: [
[1.2503808e+12, 1324],
]
},
};
//old one, instead of displaying the selected ones from choiceContainer, I want to display all.
function showWhole() {
var data = [];
choiceContainer.find("option:selected").each(function () {
var key = $(this).attr("name");
if (key && datasets[key])
data.push(datasets[key]);
});
if (data.length > 0)
$.plot($("#placeholder"), data, {
yaxis: {},
xaxis: { mode: "time",minTickSize: [1, "day"],timeformat: "%d/%m/%y"},"lines": {"show": "true"},"points": {"show": "true"},clickable:true,hoverable: true
});
}
よろしく