$(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: [[1330560000000,1.44298],[1330646400000,1.43239],[1330732800000,1.42278],[1330819200000,1.42278],[1330905600000,1.42278],[1330992000000,1.4232],[1331078400000,1.40991],[1331164800000,1.40704],[1331251200000,1.40704],[1331337600000,1.40704],[1331424000000,1.40704],[1331510400000,1.40704],[1331596800000,1.40074],[1331683200000,1.39918],[1331769600000,1.38183],[1331856000000,1.37774],[1331942400000,1.38754],[1332028800000,1.38754],[1332115200000,1.38754],[1332201600000,1.39067],[1332288000000,1.38556],[1332374400000,1.38758],[1332460800000,1.37917],[1332547200000,1.38448],[1332633600000,1.38448],[1332720000000,1.38448],[1332806400000,1.39338],[1332892800000,1.40633],[1332979200000,1.39936],[1333065600000,1.38888],[1333152000000,1.40303]], 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: [[1330560000000, 1.442984],[1330560000000, 1.442984],[1330646400000, 1.432387],[1330732800000, 1.422780],[1330819200000, 1.422780],[1330905600000, 1.422780],[1330992000000, 1.423199],[1331078400000, 1.409906],[1331164800000, 1.407035],[1331251200000, 1.407035],[1331337600000, 1.407035],[1331424000000, 1.407035],[1331510400000, 1.407035],[1331596800000, 1.400740],[1331683200000, 1.399183],[1331769600000, 1.381834],[1331856000000, 1.377745],[1331942400000, 1.387537],[1332028800000, 1.387537],[1332115200000, 1.387537],[1332201600000, 1.390673],[1332288000000, 1.385564],[1332374400000, 1.387578],[1332460800000, 1.379167],[1332547200000, 1.384481],[1332633600000, 1.384481],[1332720000000, 1.384481],[1332806400000, 1.393378],[1332892800000, 1.406331],[1332979200000, 1.399360],[1333065600000, 1.388882],[1333152000000, 1.403030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });