$(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: [[1425168000000,0.103736],[1425254400000,0.103736],[1425340800000,0.099622],[1425427200000,0.091792],[1425513600000,0.087022],[1425600000000,0.083812],[1425686400000,0.083],[1425772800000,0.083],[1425859200000,0.083],[1425945600000,0.083],[1426032000000,0.07734],[1426118400000,0.075161],[1426204800000,0.074957],[1426291200000,0.075564],[1426377600000,0.075564],[1426464000000,0.075564],[1426550400000,0.075092],[1426636800000,0.077338],[1426723200000,0.081468],[1426809600000,0.08151],[1426896000000,0.081659],[1426982400000,0.081659],[1427068800000,0.081659],[1427155200000,0.082098],[1427241600000,0.083385],[1427328000000,0.08534],[1427414400000,0.086398],[1427500800000,0.086103],[1427587200000,0.086103],[1427673600000,0.086103],[1427760000000,0.084679]], 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: [[1425168000000, 0.103736],[1425168000000, 0.103736],[1425254400000, 0.103736],[1425340800000, 0.099622],[1425427200000, 0.091792],[1425513600000, 0.087022],[1425600000000, 0.083812],[1425686400000, 0.083000],[1425772800000, 0.083000],[1425859200000, 0.083000],[1425945600000, 0.083000],[1426032000000, 0.077340],[1426118400000, 0.075161],[1426204800000, 0.074957],[1426291200000, 0.075564],[1426377600000, 0.075564],[1426464000000, 0.075564],[1426550400000, 0.075092],[1426636800000, 0.077338],[1426723200000, 0.081468],[1426809600000, 0.081510],[1426896000000, 0.081659],[1426982400000, 0.081659],[1427068800000, 0.081659],[1427155200000, 0.082098],[1427241600000, 0.083385],[1427328000000, 0.085340],[1427414400000, 0.086398],[1427500800000, 0.086103],[1427587200000, 0.086103],[1427673600000, 0.086103],[1427760000000, 0.084679]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });