$(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: [[1001894400000,0.18139],[1001980800000,0.18118],[1002067200000,0.18105],[1002153600000,0.18082],[1002240000000,0.18031],[1002326400000,0.18031],[1002412800000,0.18031],[1002499200000,0.18031],[1002585600000,0.18031],[1002672000000,0.18024],[1002758400000,0.18026],[1002844800000,0.18001],[1002931200000,0.18001],[1003017600000,0.18001],[1003104000000,0.18001],[1003190400000,0.18004],[1003276800000,0.18004],[1003363200000,0.1795],[1003449600000,0.1794],[1003536000000,0.1794],[1003622400000,0.1794],[1003708800000,0.17937],[1003795200000,0.17937],[1003881600000,0.17937],[1003968000000,0.17909],[1004054400000,0.17868],[1004140800000,0.17868],[1004227200000,0.17868],[1004313600000,0.17868],[1004400000000,0.17838],[1004486400000,0.17836]], 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: [[1001894400000, 0.181390],[1001894400000, 0.181390],[1001980800000, 0.181180],[1002067200000, 0.181050],[1002153600000, 0.180820],[1002240000000, 0.180310],[1002326400000, 0.180310],[1002412800000, 0.180310],[1002499200000, 0.180310],[1002585600000, 0.180310],[1002672000000, 0.180240],[1002758400000, 0.180260],[1002844800000, 0.180010],[1002931200000, 0.180010],[1003017600000, 0.180010],[1003104000000, 0.180010],[1003190400000, 0.180040],[1003276800000, 0.180040],[1003363200000, 0.179500],[1003449600000, 0.179400],[1003536000000, 0.179400],[1003622400000, 0.179400],[1003708800000, 0.179370],[1003795200000, 0.179370],[1003881600000, 0.179370],[1003968000000, 0.179090],[1004054400000, 0.178680],[1004140800000, 0.178680],[1004227200000, 0.178680],[1004313600000, 0.178680],[1004400000000, 0.178380],[1004486400000, 0.178360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });