$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1456790400000,0.208888],[1456876800000,0.208316],[1456963200000,0.206173],[1457049600000,0.201659],[1457136000000,0.205372],[1457222400000,0.205372],[1457308800000,0.205372],[1457395200000,0.205372],[1457481600000,0.205372],[1457568000000,0.20292],[1457654400000,0.198624],[1457740800000,0.204068],[1457827200000,0.205448],[1457913600000,0.205448],[1458000000000,0.209607],[1458086400000,0.211947],[1458172800000,0.211876],[1458259200000,0.214596],[1458345600000,0.210229],[1458432000000,0.210229],[1458518400000,0.210229],[1458604800000,0.212874],[1458691200000,0.208204],[1458777600000,0.206912],[1458864000000,0.208798],[1458950400000,0.207352],[1459036800000,0.207352],[1459123200000,0.207352],[1459209600000,0.20902],[1459296000000,0.210687],[1459382400000,0.211078]], 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.208888],[1456790400000, 0.208888],[1456876800000, 0.208316],[1456963200000, 0.206173],[1457049600000, 0.201659],[1457136000000, 0.205372],[1457222400000, 0.205372],[1457308800000, 0.205372],[1457395200000, 0.205372],[1457481600000, 0.205372],[1457568000000, 0.202920],[1457654400000, 0.198624],[1457740800000, 0.204068],[1457827200000, 0.205448],[1457913600000, 0.205448],[1458000000000, 0.209607],[1458086400000, 0.211947],[1458172800000, 0.211876],[1458259200000, 0.214596],[1458345600000, 0.210229],[1458432000000, 0.210229],[1458518400000, 0.210229],[1458604800000, 0.212874],[1458691200000, 0.208204],[1458777600000, 0.206912],[1458864000000, 0.208798],[1458950400000, 0.207352],[1459036800000, 0.207352],[1459123200000, 0.207352],[1459209600000, 0.209020],[1459296000000, 0.210687],[1459382400000, 0.211078]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });