$(document).ready(function () { $('#sales').css({ height: '200px', width: 'auto' }); var monitors = [[1, 200], [2, 258], [3, 121], [4, 132], [5, 126], [6, 189], [7, 358], [8, 234], [9, 201], [10, 160], [11, 180], [12, 195], [13, 232], [14, 233], [15, 212]]; var memory = [[1, 356], [2, 345], [3, 452], [4, 345], [5, 325], [6, 424], [7, 478], [8, 464], [9, 558], [10, 443], [11, 562], [12, 535], [13, 342], [14, 348], [15, 402]]; var plot = $.plot($("#sales"), [ { label: "Monitors", data: monitors }, { label: "Memory", data: memory } ], { lines: { show: true }, points: { show: true }, grid: { backgroundColor: '#fffaff', hoverable: true, clickable: true }, legend: { show: false } }); function showTooltip(x, y, contents) { $('