$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[999302400000,0.18154],[999388800000,0.18154],[999475200000,0.18154],[999561600000,0.18154],[999648000000,0.18135],[999734400000,0.18131],[999820800000,0.1813],[999907200000,0.18144],[999993600000,0.18144],[1000080000000,0.18144],[1000166400000,0.1815],[1000252800000,0.18146],[1000339200000,0.1814],[1000425600000,0.18127],[1000512000000,0.1814],[1000598400000,0.1814],[1000684800000,0.1814],[1000771200000,0.18145],[1000857600000,0.18151],[1000944000000,0.18134],[1001030400000,0.18142],[1001116800000,0.18142],[1001203200000,0.18142],[1001289600000,0.18158],[1001376000000,0.18141],[1001462400000,0.18142],[1001548800000,0.18134],[1001635200000,0.18139],[1001721600000,0.18139],[1001808000000,0.18139]], 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: [[999302400000, 0.181540],[999302400000, 0.181540],[999388800000, 0.181540],[999475200000, 0.181540],[999561600000, 0.181540],[999648000000, 0.181350],[999734400000, 0.181310],[999820800000, 0.181300],[999907200000, 0.181440],[999993600000, 0.181440],[1000080000000, 0.181440],[1000166400000, 0.181500],[1000252800000, 0.181460],[1000339200000, 0.181400],[1000425600000, 0.181270],[1000512000000, 0.181400],[1000598400000, 0.181400],[1000684800000, 0.181400],[1000771200000, 0.181450],[1000857600000, 0.181510],[1000944000000, 0.181340],[1001030400000, 0.181420],[1001116800000, 0.181420],[1001203200000, 0.181420],[1001289600000, 0.181580],[1001376000000, 0.181410],[1001462400000, 0.181420],[1001548800000, 0.181340],[1001635200000, 0.181390],[1001721600000, 0.181390],[1001808000000, 0.181390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });