$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1233446400000,9.54506],[1233532800000,9.54506],[1233619200000,9.53797],[1233705600000,9.54033],[1233792000000,9.54151],[1233878400000,9.5297],[1233964800000,9.5297],[1234051200000,9.5297],[1234137600000,9.5297],[1234224000000,9.53324],[1234310400000,9.53324],[1234396800000,9.54151],[1234483200000,9.54743],[1234569600000,null],[1234656000000,null],[1234742400000,9.54743],[1234828800000,9.54743],[1234915200000,9.54979],[1235001600000,9.54979],[1235088000000,9.55098],[1235174400000,9.55098],[1235260800000,9.55098],[1235347200000,9.55098],[1235433600000,9.56284],[1235520000000,9.56165],[1235606400000,9.56759],[1235692800000,9.56284],[1235779200000,9.56284]], 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, 9.545060],[1233446400000, 9.545060],[1233532800000, 9.545060],[1233619200000, 9.537966],[1233705600000, 9.540330],[1233792000000, 9.541512],[1233878400000, 9.529703],[1233964800000, 9.529703],[1234051200000, 9.529703],[1234137600000, 9.529703],[1234224000000, 9.533243],[1234310400000, 9.533243],[1234396800000, 9.541512],[1234483200000, 9.547427],[1234742400000, 9.547427],[1234828800000, 9.547427],[1234915200000, 9.549795],[1235001600000, 9.549795],[1235088000000, 9.550980],[1235174400000, 9.550980],[1235260800000, 9.550980],[1235347200000, 9.550980],[1235433600000, 9.562842],[1235520000000, 9.561654],[1235606400000, 9.567594],[1235692800000, 9.562842],[1235779200000, 9.562842]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });