$(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: [[1491004800000,1.38891],[1491091200000,1.38891],[1491177600000,1.38891],[1491264000000,1.38846],[1491350400000,1.3936],[1491436800000,1.39644],[1491523200000,1.39571],[1491609600000,1.39059],[1491696000000,1.39059],[1491782400000,1.39059],[1491868800000,1.38966],[1491955200000,1.38807],[1492041600000,1.38804],[1492128000000,1.38996],[1492214400000,1.38883],[1492300800000,1.38883],[1492387200000,1.38883],[1492473600000,1.38883],[1492560000000,1.39204],[1492646400000,1.38921],[1492732800000,1.38757],[1492819200000,1.38633],[1492905600000,1.38633],[1492992000000,1.38633],[1493078400000,1.38156],[1493164800000,1.37718],[1493251200000,1.37778],[1493337600000,1.37882],[1493424000000,1.38248],[1493510400000,1.38248]], 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: [[1491004800000, 1.388907],[1491004800000, 1.388907],[1491091200000, 1.388907],[1491177600000, 1.388907],[1491264000000, 1.388464],[1491350400000, 1.393603],[1491436800000, 1.396441],[1491523200000, 1.395708],[1491609600000, 1.390591],[1491696000000, 1.390591],[1491782400000, 1.390591],[1491868800000, 1.389658],[1491955200000, 1.388066],[1492041600000, 1.388041],[1492128000000, 1.389955],[1492214400000, 1.388830],[1492300800000, 1.388830],[1492387200000, 1.388830],[1492473600000, 1.388830],[1492560000000, 1.392041],[1492646400000, 1.389213],[1492732800000, 1.387574],[1492819200000, 1.386332],[1492905600000, 1.386332],[1492992000000, 1.386332],[1493078400000, 1.381556],[1493164800000, 1.377183],[1493251200000, 1.377783],[1493337600000, 1.378816],[1493424000000, 1.382482],[1493510400000, 1.382482]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });