$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1291161600000,12.1116],[1291248000000,12.1448],[1291334400000,12.1567],[1291420800000,12.2038],[1291507200000,12.2038],[1291593600000,12.2038],[1291680000000,12.2502],[1291766400000,12.2882],[1291852800000,12.2153],[1291939200000,12.2023],[1292025600000,12.2346],[1292112000000,12.2346],[1292198400000,12.2346],[1292284800000,12.2314],[1292371200000,12.3341],[1292457600000,12.2561],[1292544000000,12.2206],[1292630400000,12.2297],[1292716800000,12.2297],[1292803200000,12.2297],[1292889600000,12.1986],[1292976000000,12.1919],[1293062400000,12.1895],[1293148800000,12.1795],[1293235200000,12.1765],[1293321600000,12.1765],[1293408000000,12.1765],[1293494400000,12.1759],[1293580800000,12.1947],[1293667200000,12.2035],[1293753600000,12.2613]], 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: [[1291161600000, 12.111614],[1291161600000, 12.111614],[1291248000000, 12.144764],[1291334400000, 12.156696],[1291420800000, 12.203836],[1291507200000, 12.203836],[1291593600000, 12.203836],[1291680000000, 12.250188],[1291766400000, 12.288179],[1291852800000, 12.215295],[1291939200000, 12.202342],[1292025600000, 12.234597],[1292112000000, 12.234597],[1292198400000, 12.234597],[1292284800000, 12.231417],[1292371200000, 12.334093],[1292457600000, 12.256127],[1292544000000, 12.220592],[1292630400000, 12.229713],[1292716800000, 12.229713],[1292803200000, 12.229713],[1292889600000, 12.198634],[1292976000000, 12.191855],[1293062400000, 12.189466],[1293148800000, 12.179529],[1293235200000, 12.176470],[1293321600000, 12.176470],[1293408000000, 12.176470],[1293494400000, 12.175859],[1293580800000, 12.194696],[1293667200000, 12.203540],[1293753600000, 12.261295]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });