$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CAD, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CAD', data: [[1341100800000,7.79387],[1341187200000,7.79387],[1341273600000,7.85834],[1341360000000,7.86368],[1341446400000,7.88825],[1341532800000,7.89466],[1341619200000,7.87668],[1341705600000,7.87717],[1341792000000,7.87717],[1341878400000,7.82682],[1341964800000,7.84924],[1342051200000,7.84393],[1342137600000,7.81147],[1342224000000,7.86012],[1342310400000,7.86012],[1342396800000,7.86012],[1342483200000,7.8702],[1342569600000,7.87628],[1342656000000,7.88663],[1342742400000,7.93616],[1342828800000,7.91322],[1342915200000,7.91322],[1343001600000,7.91322],[1343088000000,7.85734],[1343174400000,7.85142],[1343260800000,7.84685],[1343347200000,7.9309],[1343433600000,7.93502],[1343520000000,7.93502],[1343606400000,7.93502],[1343692800000,7.95985]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1341100800000, 7.793874],[1341100800000, 7.793874],[1341187200000, 7.793874],[1341273600000, 7.858335],[1341360000000, 7.863679],[1341446400000, 7.888245],[1341532800000, 7.894659],[1341619200000, 7.876676],[1341705600000, 7.877169],[1341792000000, 7.877169],[1341878400000, 7.826824],[1341964800000, 7.849241],[1342051200000, 7.843927],[1342137600000, 7.811472],[1342224000000, 7.860117],[1342310400000, 7.860117],[1342396800000, 7.860117],[1342483200000, 7.870200],[1342569600000, 7.876276],[1342656000000, 7.886633],[1342742400000, 7.936161],[1342828800000, 7.913219],[1342915200000, 7.913219],[1343001600000, 7.913219],[1343088000000, 7.857338],[1343174400000, 7.851416],[1343260800000, 7.846850],[1343347200000, 7.930898],[1343433600000, 7.935019],[1343520000000, 7.935019],[1343606400000, 7.935019],[1343692800000, 7.959850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });