$(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: [[1475280000000,0.008616],[1475366400000,0.008616],[1475452800000,0.008616],[1475539200000,0.008559],[1475625600000,0.00854],[1475712000000,0.008552],[1475798400000,0.008549],[1475884800000,0.008533],[1475971200000,0.008533],[1476057600000,0.008533],[1476144000000,0.008477],[1476230400000,0.008485],[1476316800000,0.00847],[1476403200000,0.008465],[1476489600000,0.008465],[1476576000000,0.008465],[1476662400000,0.008465],[1476748800000,0.008411],[1476835200000,0.008372],[1476921600000,0.008382],[1477008000000,0.008385],[1477094400000,0.008372],[1477180800000,0.008372],[1477267200000,0.008372],[1477353600000,0.008314],[1477440000000,0.008299],[1477526400000,0.008295],[1477612800000,0.008279],[1477699200000,0.008267],[1477785600000,0.008267],[1477872000000,0.008267]], 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: [[1475280000000, 0.008616],[1475280000000, 0.008616],[1475366400000, 0.008616],[1475452800000, 0.008616],[1475539200000, 0.008559],[1475625600000, 0.008540],[1475712000000, 0.008552],[1475798400000, 0.008549],[1475884800000, 0.008533],[1475971200000, 0.008533],[1476057600000, 0.008533],[1476144000000, 0.008477],[1476230400000, 0.008485],[1476316800000, 0.008470],[1476403200000, 0.008465],[1476489600000, 0.008465],[1476576000000, 0.008465],[1476662400000, 0.008465],[1476748800000, 0.008411],[1476835200000, 0.008372],[1476921600000, 0.008382],[1477008000000, 0.008385],[1477094400000, 0.008372],[1477180800000, 0.008372],[1477267200000, 0.008372],[1477353600000, 0.008314],[1477440000000, 0.008299],[1477526400000, 0.008295],[1477612800000, 0.008279],[1477699200000, 0.008267],[1477785600000, 0.008267],[1477872000000, 0.008267]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });