$(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: [[1456790400000,0.077685],[1456876800000,0.07784],[1456963200000,0.077363],[1457049600000,0.075839],[1457136000000,0.076754],[1457222400000,0.076754],[1457308800000,0.076754],[1457395200000,0.076754],[1457481600000,0.076754],[1457568000000,0.075936],[1457654400000,0.074143],[1457740800000,0.075149],[1457827200000,0.075657],[1457913600000,0.075657],[1458000000000,0.077238],[1458086400000,0.078331],[1458172800000,0.077449],[1458259200000,0.077156],[1458345600000,0.075836],[1458432000000,0.075836],[1458518400000,0.075836],[1458604800000,0.076869],[1458691200000,0.07543],[1458777600000,0.075247],[1458864000000,0.075661],[1458950400000,0.075823],[1459036800000,0.075823],[1459123200000,0.075823],[1459209600000,0.07726],[1459296000000,0.077418],[1459382400000,0.076424]], 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, 0.077685],[1456790400000, 0.077685],[1456876800000, 0.077840],[1456963200000, 0.077363],[1457049600000, 0.075839],[1457136000000, 0.076754],[1457222400000, 0.076754],[1457308800000, 0.076754],[1457395200000, 0.076754],[1457481600000, 0.076754],[1457568000000, 0.075936],[1457654400000, 0.074143],[1457740800000, 0.075149],[1457827200000, 0.075657],[1457913600000, 0.075657],[1458000000000, 0.077238],[1458086400000, 0.078331],[1458172800000, 0.077449],[1458259200000, 0.077156],[1458345600000, 0.075836],[1458432000000, 0.075836],[1458518400000, 0.075836],[1458604800000, 0.076869],[1458691200000, 0.075430],[1458777600000, 0.075247],[1458864000000, 0.075661],[1458950400000, 0.075823],[1459036800000, 0.075823],[1459123200000, 0.075823],[1459209600000, 0.077260],[1459296000000, 0.077418],[1459382400000, 0.076424]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });