$(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: [[1475280000000,1.31207],[1475366400000,1.31207],[1475452800000,1.31207],[1475539200000,1.31122],[1475625600000,1.3086],[1475712000000,1.30912],[1475798400000,1.30864],[1475884800000,1.30609],[1475971200000,1.30609],[1476057600000,1.30609],[1476144000000,1.30444],[1476230400000,1.30556],[1476316800000,1.30172],[1476403200000,1.30028],[1476489600000,1.30028],[1476576000000,1.30028],[1476662400000,1.30028],[1476748800000,1.29819],[1476835200000,1.28889],[1476921600000,1.28502],[1477008000000,1.28418],[1477094400000,1.2831],[1477180800000,1.2831],[1477267200000,1.2831],[1477353600000,1.28129],[1477440000000,1.27886],[1477526400000,1.27717],[1477612800000,1.27451],[1477699200000,1.27198],[1477785600000,1.27198],[1477872000000,1.27198]], 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: [[1475280000000, 1.312065],[1475280000000, 1.312065],[1475366400000, 1.312065],[1475452800000, 1.312065],[1475539200000, 1.311222],[1475625600000, 1.308597],[1475712000000, 1.309121],[1475798400000, 1.308639],[1475884800000, 1.306091],[1475971200000, 1.306091],[1476057600000, 1.306091],[1476144000000, 1.304435],[1476230400000, 1.305563],[1476316800000, 1.301721],[1476403200000, 1.300280],[1476489600000, 1.300280],[1476576000000, 1.300280],[1476662400000, 1.300280],[1476748800000, 1.298195],[1476835200000, 1.288888],[1476921600000, 1.285022],[1477008000000, 1.284177],[1477094400000, 1.283102],[1477180800000, 1.283102],[1477267200000, 1.283102],[1477353600000, 1.281287],[1477440000000, 1.278858],[1477526400000, 1.277172],[1477612800000, 1.274511],[1477699200000, 1.271980],[1477785600000, 1.271980],[1477872000000, 1.271980]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });