$(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: [[1231200000000,9.60699],[1231286400000,9.601],[1231372800000,9.601],[1231459200000,9.601],[1231545600000,9.60459],[1231632000000,9.60459],[1231718400000,9.60459],[1231804800000,9.59382],[1231891200000,9.59023],[1231977600000,9.58069],[1232064000000,9.57711],[1232150400000,9.57831],[1232236800000,null],[1232323200000,9.57831],[1232409600000,9.58188],[1232496000000,9.58188],[1232582400000,9.57116],[1232668800000,9.57235],[1232755200000,9.56047],[1232841600000,9.56047],[1232928000000,9.56047],[1233014400000,9.56284],[1233100800000,9.56759],[1233187200000,9.56759],[1233273600000,9.55572],[1233360000000,9.54506]], 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: [[1231200000000, 9.606987],[1231200000000, 9.606987],[1231286400000, 9.600998],[1231372800000, 9.600998],[1231459200000, 9.600998],[1231545600000, 9.604590],[1231632000000, 9.604590],[1231718400000, 9.604590],[1231804800000, 9.593820],[1231891200000, 9.590235],[1231977600000, 9.580689],[1232064000000, 9.577114],[1232150400000, 9.578306],[1232323200000, 9.578306],[1232409600000, 9.581882],[1232496000000, 9.581882],[1232582400000, 9.571162],[1232668800000, 9.572352],[1232755200000, 9.560467],[1232841600000, 9.560467],[1232928000000, 9.560467],[1233014400000, 9.562842],[1233100800000, 9.567594],[1233187200000, 9.567594],[1233273600000, 9.555721],[1233360000000, 9.545060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });