$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1435708800000,22.5706],[1435795200000,22.2981],[1435881600000,22.1295],[1435968000000,22.2834],[1436054400000,22.2834],[1436140800000,22.2834],[1436227200000,22.4616],[1436313600000,22.8457],[1436400000000,23.1498],[1436486400000,22.9922],[1436572800000,23.4266],[1436659200000,23.4266],[1436745600000,23.4266],[1436832000000,23.1607],[1436918400000,23.2806],[1437004800000,23.3144],[1437091200000,22.9585],[1437177600000,22.9815],[1437264000000,22.9815],[1437350400000,22.9815],[1437436800000,22.895],[1437523200000,22.9221],[1437609600000,22.8941],[1437696000000,23.0247],[1437782400000,22.9702],[1437868800000,22.9702],[1437955200000,22.9702],[1438041600000,22.9702],[1438128000000,22.7964],[1438214400000,22.9214],[1438300800000,22.2662]], 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, 22.570575],[1435708800000, 22.570575],[1435795200000, 22.298053],[1435881600000, 22.129482],[1435968000000, 22.283440],[1436054400000, 22.283440],[1436140800000, 22.283440],[1436227200000, 22.461619],[1436313600000, 22.845697],[1436400000000, 23.149832],[1436486400000, 22.992165],[1436572800000, 23.426592],[1436659200000, 23.426592],[1436745600000, 23.426592],[1436832000000, 23.160671],[1436918400000, 23.280623],[1437004800000, 23.314404],[1437091200000, 22.958521],[1437177600000, 22.981546],[1437264000000, 22.981546],[1437350400000, 22.981546],[1437436800000, 22.895022],[1437523200000, 22.922147],[1437609600000, 22.894090],[1437696000000, 23.024687],[1437782400000, 22.970152],[1437868800000, 22.970152],[1437955200000, 22.970152],[1438041600000, 22.970152],[1438128000000, 22.796368],[1438214400000, 22.921422],[1438300800000, 22.266246]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });