$(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: [[1141171200000,0.17958],[1141257600000,0.1802],[1141344000000,0.18018],[1141430400000,0.18081],[1141516800000,0.18081],[1141603200000,0.18081],[1141689600000,0.18113],[1141776000000,0.18039],[1141862400000,0.18039],[1141948800000,0.18036],[1142035200000,0.18023],[1142121600000,0.18023],[1142208000000,0.18023],[1142294400000,0.18031],[1142380800000,0.1804],[1142467200000,0.18137],[1142553600000,0.18154],[1142640000000,0.18229],[1142726400000,0.18229],[1142812800000,0.18229],[1142899200000,0.18256],[1142985600000,0.18229],[1143072000000,0.18206],[1143158400000,0.18186],[1143244800000,0.18135],[1143331200000,0.18135],[1143417600000,0.18135],[1143504000000,0.18183],[1143590400000,0.18164],[1143676800000,0.18163],[1143763200000,0.1819]], 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: [[1141171200000, 0.179580],[1141171200000, 0.179580],[1141257600000, 0.180200],[1141344000000, 0.180180],[1141430400000, 0.180810],[1141516800000, 0.180810],[1141603200000, 0.180810],[1141689600000, 0.181130],[1141776000000, 0.180390],[1141862400000, 0.180390],[1141948800000, 0.180360],[1142035200000, 0.180230],[1142121600000, 0.180230],[1142208000000, 0.180230],[1142294400000, 0.180310],[1142380800000, 0.180400],[1142467200000, 0.181370],[1142553600000, 0.181540],[1142640000000, 0.182290],[1142726400000, 0.182290],[1142812800000, 0.182290],[1142899200000, 0.182560],[1142985600000, 0.182290],[1143072000000, 0.182060],[1143158400000, 0.181860],[1143244800000, 0.181350],[1143331200000, 0.181350],[1143417600000, 0.181350],[1143504000000, 0.181830],[1143590400000, 0.181640],[1143676800000, 0.181630],[1143763200000, 0.181900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });