$(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: 'Курс UZS, грн'}, 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: 'Курс UZS', data: [[1456790400000,0.009485],[1456876800000,0.009481],[1456963200000,0.009385],[1457049600000,0.009176],[1457136000000,0.009276],[1457222400000,0.009276],[1457308800000,0.009276],[1457395200000,0.009276],[1457481600000,0.009276],[1457568000000,0.009149],[1457654400000,0.008918],[1457740800000,0.009031],[1457827200000,0.009093],[1457913600000,0.009093],[1458000000000,0.00925],[1458086400000,0.009378],[1458172800000,0.009364],[1458259200000,0.009314],[1458345600000,0.009154],[1458432000000,0.009154],[1458518400000,0.009154],[1458604800000,0.009279],[1458691200000,0.009089],[1458777600000,0.009059],[1458864000000,0.009141],[1458950400000,0.009078],[1459036800000,0.009078],[1459123200000,0.009078],[1459209600000,0.009135],[1459296000000,0.009191],[1459382400000,0.009114]], 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.009485],[1456790400000, 0.009485],[1456876800000, 0.009481],[1456963200000, 0.009385],[1457049600000, 0.009176],[1457136000000, 0.009276],[1457222400000, 0.009276],[1457308800000, 0.009276],[1457395200000, 0.009276],[1457481600000, 0.009276],[1457568000000, 0.009149],[1457654400000, 0.008918],[1457740800000, 0.009031],[1457827200000, 0.009093],[1457913600000, 0.009093],[1458000000000, 0.009250],[1458086400000, 0.009378],[1458172800000, 0.009364],[1458259200000, 0.009314],[1458345600000, 0.009154],[1458432000000, 0.009154],[1458518400000, 0.009154],[1458604800000, 0.009279],[1458691200000, 0.009089],[1458777600000, 0.009059],[1458864000000, 0.009141],[1458950400000, 0.009078],[1459036800000, 0.009078],[1459123200000, 0.009078],[1459209600000, 0.009135],[1459296000000, 0.009191],[1459382400000, 0.009114]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });