$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1096588800000,3.82652],[1096675200000,null],[1096761600000,null],[1096848000000,3.84136],[1096934400000,3.82729],[1097020800000,3.83815],[1097107200000,3.82851],[1097193600000,3.85907],[1097280000000,3.85907],[1097366400000,3.85907],[1097452800000,3.85723],[1097539200000,3.89583],[1097625600000,3.87597],[1097712000000,3.83262],[1097798400000,3.86669],[1097884800000,null],[1097971200000,3.8715],[1098057600000,3.8715],[1098144000000,3.87035],[1098230400000,3.86493],[1098316800000,3.89791],[1098403200000,3.9062],[1098489600000,3.91054],[1098576000000,3.91054],[1098662400000,3.91054],[1098748800000,3.96338],[1098835200000,3.96182],[1098921600000,3.97428],[1099008000000,3.93828],[1099094400000,3.95534],[1099180800000,3.95534]], 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: [[1096588800000, 3.826520],[1096588800000, 3.826520],[1096848000000, 3.841360],[1096934400000, 3.827290],[1097020800000, 3.838150],[1097107200000, 3.828510],[1097193600000, 3.859070],[1097280000000, 3.859070],[1097366400000, 3.859070],[1097452800000, 3.857230],[1097539200000, 3.895830],[1097625600000, 3.875970],[1097712000000, 3.832620],[1097798400000, 3.866690],[1097971200000, 3.871500],[1098057600000, 3.871500],[1098144000000, 3.870350],[1098230400000, 3.864930],[1098316800000, 3.897910],[1098403200000, 3.906200],[1098489600000, 3.910540],[1098576000000, 3.910540],[1098662400000, 3.910540],[1098748800000, 3.963380],[1098835200000, 3.961820],[1098921600000, 3.974280],[1099008000000, 3.938280],[1099094400000, 3.955340],[1099180800000, 3.955340]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });