$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1435708800000,0.11281],[1435795200000,0.112816],[1435881600000,0.112844],[1435968000000,0.11288],[1436054400000,0.11288],[1436140800000,0.11288],[1436227200000,0.11421],[1436313600000,0.116543],[1436400000000,0.117906],[1436486400000,0.117243],[1436572800000,0.117483],[1436659200000,0.117483],[1436745600000,0.117483],[1436832000000,0.117579],[1436918400000,0.117748],[1437004800000,0.118189],[1437091200000,0.117544],[1437177600000,0.117695],[1437264000000,0.117695],[1437350400000,0.117695],[1437436800000,0.117787],[1437523200000,0.11773],[1437609600000,0.11768],[1437696000000,0.1177],[1437782400000,0.118009],[1437868800000,0.118009],[1437955200000,0.118009],[1438041600000,0.118009],[1438128000000,0.117701],[1438214400000,0.117757],[1438300800000,0.115294]], 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: [[1435708800000, 0.112810],[1435708800000, 0.112810],[1435795200000, 0.112816],[1435881600000, 0.112844],[1435968000000, 0.112880],[1436054400000, 0.112880],[1436140800000, 0.112880],[1436227200000, 0.114210],[1436313600000, 0.116543],[1436400000000, 0.117906],[1436486400000, 0.117243],[1436572800000, 0.117483],[1436659200000, 0.117483],[1436745600000, 0.117483],[1436832000000, 0.117579],[1436918400000, 0.117748],[1437004800000, 0.118189],[1437091200000, 0.117544],[1437177600000, 0.117695],[1437264000000, 0.117695],[1437350400000, 0.117695],[1437436800000, 0.117787],[1437523200000, 0.117730],[1437609600000, 0.117680],[1437696000000, 0.117700],[1437782400000, 0.118009],[1437868800000, 0.118009],[1437955200000, 0.118009],[1438041600000, 0.118009],[1438128000000, 0.117701],[1438214400000, 0.117757],[1438300800000, 0.115294]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });