$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1446336000000,1.14774],[1446422400000,1.14774],[1446508800000,1.14591],[1446595200000,1.14656],[1446681600000,1.15228],[1446768000000,1.14724],[1446854400000,1.13493],[1446940800000,1.13493],[1447027200000,1.13493],[1447113600000,1.1402],[1447200000000,1.14154],[1447286400000,1.14172],[1447372800000,1.14991],[1447459200000,1.15895],[1447545600000,1.15895],[1447632000000,1.15895],[1447718400000,1.16734],[1447804800000,1.19733],[1447891200000,1.20458],[1447977600000,1.19629],[1448064000000,1.20092],[1448150400000,1.20092],[1448236800000,1.20092],[1448323200000,1.2019],[1448409600000,1.19552],[1448496000000,1.18142],[1448582400000,1.17104],[1448668800000,1.18607],[1448755200000,1.18607],[1448841600000,1.18607]], 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: [[1446336000000, 1.147741],[1446336000000, 1.147741],[1446422400000, 1.147741],[1446508800000, 1.145908],[1446595200000, 1.146556],[1446681600000, 1.152279],[1446768000000, 1.147240],[1446854400000, 1.134934],[1446940800000, 1.134934],[1447027200000, 1.134934],[1447113600000, 1.140198],[1447200000000, 1.141537],[1447286400000, 1.141716],[1447372800000, 1.149909],[1447459200000, 1.158946],[1447545600000, 1.158946],[1447632000000, 1.158946],[1447718400000, 1.167344],[1447804800000, 1.197330],[1447891200000, 1.204581],[1447977600000, 1.196288],[1448064000000, 1.200916],[1448150400000, 1.200916],[1448236800000, 1.200916],[1448323200000, 1.201901],[1448409600000, 1.195519],[1448496000000, 1.181423],[1448582400000, 1.171035],[1448668800000, 1.186073],[1448755200000, 1.186073],[1448841600000, 1.186073]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });