$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1417392000000,21.9186],[1417478400000,22.0462],[1417564800000,22.1085],[1417651200000,22.201],[1417737600000,22.2775],[1417824000000,22.4375],[1417910400000,22.4375],[1417996800000,22.4375],[1418083200000,22.6172],[1418169600000,22.6204],[1418256000000,22.7921],[1418342400000,22.8675],[1418428800000,22.9932],[1418515200000,22.9932],[1418601600000,22.9932],[1418688000000,23.0678],[1418774400000,23.0518],[1418860800000,23.1921],[1418947200000,null],[1419033600000,22.9711],[1419120000000,22.9711],[1419206400000,22.9711],[1419292800000,23.0452],[1419379200000,22.7552],[1419465600000,22.8768],[1419552000000,22.8529],[1419638400000,22.85],[1419724800000,22.85],[1419811200000,22.85],[1419897600000,22.844],[1419984000000,22.844]], 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: [[1417392000000, 21.918607],[1417392000000, 21.918607],[1417478400000, 22.046207],[1417564800000, 22.108486],[1417651200000, 22.201041],[1417737600000, 22.277518],[1417824000000, 22.437491],[1417910400000, 22.437491],[1417996800000, 22.437491],[1418083200000, 22.617163],[1418169600000, 22.620402],[1418256000000, 22.792092],[1418342400000, 22.867460],[1418428800000, 22.993165],[1418515200000, 22.993165],[1418601600000, 22.993165],[1418688000000, 23.067833],[1418774400000, 23.051828],[1418860800000, 23.192133],[1419033600000, 22.971079],[1419120000000, 22.971079],[1419206400000, 22.971079],[1419292800000, 23.045219],[1419379200000, 22.755221],[1419465600000, 22.876773],[1419552000000, 22.852922],[1419638400000, 22.850017],[1419724800000, 22.850017],[1419811200000, 22.850017],[1419897600000, 22.843975],[1419984000000, 22.843975]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });