$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1483228800000,0.091659],[1483315200000,0.091659],[1483401600000,0.091659],[1483488000000,0.091659],[1483574400000,0.090348],[1483660800000,0.090348],[1483747200000,0.093127],[1483833600000,0.093127],[1483920000000,0.093127],[1484006400000,0.093127],[1484092800000,0.093062],[1484179200000,0.092025],[1484265600000,0.094749],[1484352000000,null],[1484438400000,0.095929],[1484524800000,0.095929],[1484611200000,0.095544],[1484697600000,0.095909],[1484784000000,0.095211],[1484870400000,0.094926],[1484956800000,0.094348],[1485043200000,0.094348],[1485129600000,0.094348],[1485216000000,0.094528],[1485302400000,0.094334],[1485388800000,0.094375],[1485475200000,0.093633],[1485561600000,0.0932],[1485648000000,0.0932],[1485734400000,0.0932],[1485820800000,0.092753]], 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: [[1483228800000, 0.091659],[1483228800000, 0.091659],[1483315200000, 0.091659],[1483401600000, 0.091659],[1483488000000, 0.091659],[1483574400000, 0.090348],[1483660800000, 0.090348],[1483747200000, 0.093127],[1483833600000, 0.093127],[1483920000000, 0.093127],[1484006400000, 0.093127],[1484092800000, 0.093062],[1484179200000, 0.092025],[1484265600000, 0.094749],[1484438400000, 0.095929],[1484524800000, 0.095929],[1484611200000, 0.095544],[1484697600000, 0.095909],[1484784000000, 0.095211],[1484870400000, 0.094926],[1484956800000, 0.094348],[1485043200000, 0.094348],[1485129600000, 0.094348],[1485216000000, 0.094528],[1485302400000, 0.094334],[1485388800000, 0.094375],[1485475200000, 0.093633],[1485561600000, 0.093200],[1485648000000, 0.093200],[1485734400000, 0.093200],[1485820800000, 0.092753]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });