$(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: [[1233446400000,0.21742],[1233532800000,0.21742],[1233619200000,0.21284],[1233705600000,0.21313],[1233792000000,0.21381],[1233878400000,0.21207],[1233964800000,0.21166],[1234051200000,0.21166],[1234137600000,0.21166],[1234224000000,0.21314],[1234310400000,0.21431],[1234396800000,0.21489],[1234483200000,0.22126],[1234569600000,null],[1234656000000,null],[1234742400000,0.22282],[1234828800000,0.22139],[1234915200000,0.21608],[1235001600000,0.21138],[1235088000000,0.21335],[1235174400000,0.21344],[1235260800000,0.21344],[1235347200000,0.21344],[1235433600000,0.21344],[1235520000000,0.21374],[1235606400000,0.21542],[1235692800000,0.21555],[1235779200000,0.21556]], 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: [[1233446400000, 0.217420],[1233446400000, 0.217420],[1233532800000, 0.217420],[1233619200000, 0.212840],[1233705600000, 0.213130],[1233792000000, 0.213810],[1233878400000, 0.212070],[1233964800000, 0.211660],[1234051200000, 0.211660],[1234137600000, 0.211660],[1234224000000, 0.213140],[1234310400000, 0.214310],[1234396800000, 0.214890],[1234483200000, 0.221260],[1234742400000, 0.222820],[1234828800000, 0.221390],[1234915200000, 0.216080],[1235001600000, 0.211380],[1235088000000, 0.213350],[1235174400000, 0.213440],[1235260800000, 0.213440],[1235347200000, 0.213440],[1235433600000, 0.213440],[1235520000000, 0.213740],[1235606400000, 0.215420],[1235692800000, 0.215550],[1235779200000, 0.215560]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });