$(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: [[1512086400000,27.504],[1512172800000,27.5033],[1512259200000,27.5033],[1512345600000,27.5033],[1512432000000,27.6819],[1512518400000,27.5693],[1512604800000,27.4318],[1512691200000,27.3187],[1512777600000,27.1974],[1512864000000,27.1974],[1512950400000,27.1974],[1513036800000,27.4076],[1513123200000,27.3983],[1513209600000,27.4759],[1513296000000,27.7829],[1513382400000,27.9595],[1513468800000,27.9595],[1513555200000,27.9595],[1513641600000,28.2157],[1513728000000,28.3154],[1513814400000,28.2013],[1513900800000,28.1743],[1513987200000,28.232],[1514073600000,28.232],[1514160000000,28.232],[1514246400000,28.232],[1514332800000,28.2256],[1514419200000,28.2405],[1514505600000,28.6188],[1514592000000,28.6188],[1514678400000,28.6188]], 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: [[1512086400000, 27.504031],[1512086400000, 27.504031],[1512172800000, 27.503258],[1512259200000, 27.503258],[1512345600000, 27.503258],[1512432000000, 27.681933],[1512518400000, 27.569324],[1512604800000, 27.431824],[1512691200000, 27.318702],[1512777600000, 27.197362],[1512864000000, 27.197362],[1512950400000, 27.197362],[1513036800000, 27.407565],[1513123200000, 27.398323],[1513209600000, 27.475853],[1513296000000, 27.782947],[1513382400000, 27.959513],[1513468800000, 27.959513],[1513555200000, 27.959513],[1513641600000, 28.215716],[1513728000000, 28.315393],[1513814400000, 28.201335],[1513900800000, 28.174289],[1513987200000, 28.231978],[1514073600000, 28.231978],[1514160000000, 28.231978],[1514246400000, 28.231978],[1514332800000, 28.225561],[1514419200000, 28.240486],[1514505600000, 28.618783],[1514592000000, 28.618783],[1514678400000, 28.618783]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });