I am getting an error while using this plugin from jquery flot tooltop plugin ..
Uncaught TypeError: Cannot read property '0' of undefined
at i.stringFormat (jquery.flot.tooltip.min.js:12)
scope.flotChartData = [
{
"label": "High",
"data": [[1487133026000, "150"], [1487219426000, "180"], [1487305826000, "60"], [1487392226000, "75"], [1487478626000, "194"], [1487565026000, "180"], [1487651426000, "130"]]
},
{
"label": "Medium",
"data": [[1487133026000, "15"], [1487219426000, "60"], [1487305826000, "40"], [1487392226000, "175"], [1487478626000, "90"], [1487565026000, "75"], [1487651426000, "55"]]
},
{
"label": "Low",
"data": [[1487133026000, "112"], [1487219426000, "68"], [1487305826000, "160"], [1487392226000, "75"], [1487478626000, "94"], [1487565026000, "80"], [1487651426000, "20"]]
}
];
scope.lineOptions = {
series: {
curvedLines: {
apply: true,
active: true,
monotonicFit: true
},
lines: {
show: true,
lineWidth: 2,
fill: true,
fillColor: {
colors: [
{
opacity: 0.0
},
{
opacity: 0.0
}
]
}
}
},
xaxis: {
mode: "time",
timeformat: "%m/%d",
tickDecimals: 0
},
colors: ["#ed5565", "#f8ac59", "#3f51b5"],
grid: {
color: "#999999",
hoverable: true,
clickable: true,
tickColor: "#D4D4D4",
borderWidth: 0
},
legend: {
position: 'ew'
},
tooltip: true,
tooltipOpts: {
content: "x: %x, y: %y"
}
};