$(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: [[1446336000000,17.4524],[1446422400000,17.4524],[1446508800000,17.5712],[1446595200000,17.5386],[1446681600000,17.6599],[1446768000000,17.4231],[1446854400000,17.1565],[1446940800000,17.1565],[1447027200000,17.1565],[1447113600000,17.1654],[1447200000000,17.1639],[1447286400000,17.1577],[1447372800000,17.1979],[1447459200000,17.3311],[1447545600000,17.3311],[1447632000000,17.3311],[1447718400000,17.4105],[1447804800000,17.8618],[1447891200000,17.9331],[1447977600000,17.9377],[1448064000000,18.0158],[1448150400000,18.0158],[1448236800000,18.0158],[1448323200000,17.9876],[1448409600000,17.927],[1448496000000,17.8372],[1448582400000,17.736],[1448668800000,17.8953],[1448755200000,17.8953],[1448841600000,17.8953]], 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, 17.452421],[1446336000000, 17.452421],[1446422400000, 17.452421],[1446508800000, 17.571202],[1446595200000, 17.538598],[1446681600000, 17.659906],[1446768000000, 17.423086],[1446854400000, 17.156489],[1446940800000, 17.156489],[1447027200000, 17.156489],[1447113600000, 17.165360],[1447200000000, 17.163944],[1447286400000, 17.157744],[1447372800000, 17.197944],[1447459200000, 17.331066],[1447545600000, 17.331066],[1447632000000, 17.331066],[1447718400000, 17.410546],[1447804800000, 17.861789],[1447891200000, 17.933087],[1447977600000, 17.937686],[1448064000000, 18.015823],[1448150400000, 18.015823],[1448236800000, 18.015823],[1448323200000, 17.987648],[1448409600000, 17.927006],[1448496000000, 17.837159],[1448582400000, 17.735999],[1448668800000, 17.895309],[1448755200000, 17.895309],[1448841600000, 17.895309]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });