$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1462060800000,35.718],[1462147200000,35.718],[1462233600000,35.718],[1462320000000,35.718],[1462406400000,35.7754],[1462492800000,35.5899],[1462579200000,35.6653],[1462665600000,35.6653],[1462752000000,35.6653],[1462838400000,35.6653],[1462924800000,35.5665],[1463011200000,35.7945],[1463097600000,35.7662],[1463184000000,35.9122],[1463270400000,35.9122],[1463356800000,35.9122],[1463443200000,35.7937],[1463529600000,35.6364],[1463616000000,35.5663],[1463702400000,35.5255],[1463788800000,35.429],[1463875200000,null],[1463961600000,35.429],[1464048000000,35.3039],[1464134400000,35.3247],[1464220800000,35.2562],[1464307200000,35.2905],[1464393600000,35.3369],[1464480000000,35.3369],[1464566400000,35.3369],[1464652800000,35.379]], 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: [[1462060800000, 35.718001],[1462060800000, 35.718001],[1462147200000, 35.718001],[1462233600000, 35.718001],[1462320000000, 35.718001],[1462406400000, 35.775386],[1462492800000, 35.589910],[1462579200000, 35.665275],[1462665600000, 35.665275],[1462752000000, 35.665275],[1462838400000, 35.665275],[1462924800000, 35.566515],[1463011200000, 35.794523],[1463097600000, 35.766225],[1463184000000, 35.912219],[1463270400000, 35.912219],[1463356800000, 35.912219],[1463443200000, 35.793660],[1463529600000, 35.636378],[1463616000000, 35.566262],[1463702400000, 35.525475],[1463788800000, 35.429011],[1463961600000, 35.429011],[1464048000000, 35.303935],[1464134400000, 35.324715],[1464220800000, 35.256154],[1464307200000, 35.290521],[1464393600000, 35.336906],[1464480000000, 35.336906],[1464566400000, 35.336906],[1464652800000, 35.379049]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });