$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1477958400000,1.27147],[1478044800000,null],[1478131200000,1.27553],[1478217600000,1.28147],[1478304000000,1.28371],[1478390400000,1.28371],[1478476800000,1.28371],[1478563200000,1.28677],[1478649600000,1.28866],[1478736000000,1.29052],[1478822400000,1.29007],[1478908800000,1.28907],[1478995200000,1.28907],[1479081600000,1.28907],[1479168000000,1.28908],[1479254400000,1.29677],[1479340800000,1.30744],[1479427200000,1.29116],[1479513600000,1.28157],[1479600000000,1.28157],[1479686400000,1.28157],[1479772800000,1.27626],[1479859200000,1.27082],[1479945600000,1.26554],[1480032000000,1.26364],[1480118400000,1.26868],[1480204800000,1.26868],[1480291200000,1.26868],[1480377600000,1.26559],[1480464000000,1.26226]], 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: [[1477958400000, 1.271468],[1477958400000, 1.271468],[1478131200000, 1.275529],[1478217600000, 1.281471],[1478304000000, 1.283713],[1478390400000, 1.283713],[1478476800000, 1.283713],[1478563200000, 1.286774],[1478649600000, 1.288659],[1478736000000, 1.290522],[1478822400000, 1.290071],[1478908800000, 1.289067],[1478995200000, 1.289067],[1479081600000, 1.289067],[1479168000000, 1.289083],[1479254400000, 1.296769],[1479340800000, 1.307439],[1479427200000, 1.291161],[1479513600000, 1.281570],[1479600000000, 1.281570],[1479686400000, 1.281570],[1479772800000, 1.276256],[1479859200000, 1.270817],[1479945600000, 1.265536],[1480032000000, 1.263638],[1480118400000, 1.268676],[1480204800000, 1.268676],[1480291200000, 1.268676],[1480377600000, 1.265593],[1480464000000, 1.262265]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });