$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1425168000000,3.66879],[1425254400000,3.66879],[1425340800000,3.52094],[1425427200000,3.23705],[1425513600000,3.08354],[1425600000000,2.98171],[1425686400000,2.96568],[1425772800000,2.96568],[1425859200000,2.96568],[1425945600000,2.96568],[1426032000000,2.75164],[1426118400000,2.67881],[1426204800000,2.63368],[1426291200000,2.67037],[1426377600000,2.67037],[1426464000000,2.67037],[1426550400000,2.66833],[1426636800000,2.70389],[1426723200000,2.81819],[1426809600000,2.78415],[1426896000000,2.86731],[1426982400000,2.86731],[1427068800000,2.86731],[1427155200000,2.86328],[1427241600000,2.94543],[1427328000000,3.00168],[1427414400000,3.00426],[1427500800000,2.99992],[1427587200000,2.99992],[1427673600000,2.99992],[1427760000000,2.94382]], 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: [[1425168000000, 3.668791],[1425168000000, 3.668791],[1425254400000, 3.668791],[1425340800000, 3.520938],[1425427200000, 3.237051],[1425513600000, 3.083541],[1425600000000, 2.981710],[1425686400000, 2.965684],[1425772800000, 2.965684],[1425859200000, 2.965684],[1425945600000, 2.965684],[1426032000000, 2.751644],[1426118400000, 2.678806],[1426204800000, 2.633677],[1426291200000, 2.670367],[1426377600000, 2.670367],[1426464000000, 2.670367],[1426550400000, 2.668326],[1426636800000, 2.703893],[1426723200000, 2.818192],[1426809600000, 2.784153],[1426896000000, 2.867306],[1426982400000, 2.867306],[1427068800000, 2.867306],[1427155200000, 2.863277],[1427241600000, 2.945430],[1427328000000, 3.001680],[1427414400000, 3.004263],[1427500800000, 2.999923],[1427587200000, 2.999923],[1427673600000, 2.999923],[1427760000000, 2.943819]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });