$(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: [[1456790400000,27.0303],[1456876800000,27.1152],[1456963200000,26.838],[1457049600000,26.3611],[1457136000000,26.6722],[1457222400000,26.6722],[1457308800000,26.6722],[1457395200000,26.6722],[1457481600000,26.6722],[1457568000000,26.1708],[1457654400000,25.3233],[1457740800000,26.1804],[1457827200000,26.3575],[1457913600000,26.3575],[1458000000000,26.8801],[1458086400000,27.2659],[1458172800000,27.0994],[1458259200000,27.5576],[1458345600000,27.1081],[1458432000000,27.1081],[1458518400000,27.1081],[1458604800000,27.4658],[1458691200000,26.8817],[1458777600000,26.6765],[1458864000000,26.9257],[1458950400000,26.7392],[1459036800000,26.7392],[1459123200000,26.7392],[1459209600000,26.9544],[1459296000000,27.115],[1459382400000,27.2055]], 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: [[1456790400000, 27.030255],[1456790400000, 27.030255],[1456876800000, 27.115157],[1456963200000, 26.837956],[1457049600000, 26.361133],[1457136000000, 26.672189],[1457222400000, 26.672189],[1457308800000, 26.672189],[1457395200000, 26.672189],[1457481600000, 26.672189],[1457568000000, 26.170831],[1457654400000, 25.323268],[1457740800000, 26.180371],[1457827200000, 26.357450],[1457913600000, 26.357450],[1458000000000, 26.880058],[1458086400000, 27.265850],[1458172800000, 27.099422],[1458259200000, 27.557571],[1458345600000, 27.108132],[1458432000000, 27.108132],[1458518400000, 27.108132],[1458604800000, 27.465769],[1458691200000, 26.881702],[1458777600000, 26.676546],[1458864000000, 26.925663],[1458950400000, 26.739171],[1459036800000, 26.739171],[1459123200000, 26.739171],[1459209600000, 26.954366],[1459296000000, 27.114988],[1459382400000, 27.205467]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });