$(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: [[1472688000000,1.31852],[1472774400000,1.34524],[1472860800000,1.34773],[1472947200000,1.34773],[1473033600000,1.34773],[1473120000000,1.35387],[1473206400000,1.35762],[1473292800000,1.35091],[1473379200000,1.34625],[1473465600000,1.34828],[1473552000000,1.34828],[1473638400000,1.34828],[1473724800000,1.34608],[1473811200000,1.33534],[1473897600000,1.33104],[1473984000000,1.3248],[1474070400000,1.30962],[1474156800000,1.30962],[1474243200000,1.30962],[1474329600000,1.30286],[1474416000000,1.30414],[1474502400000,1.3116],[1474588800000,1.30891],[1474675200000,1.31201],[1474761600000,1.31201],[1474848000000,1.31201],[1474934400000,1.30857],[1475020800000,1.30564],[1475107200000,1.31011],[1475193600000,1.31156]], 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: [[1472688000000, 1.318520],[1472688000000, 1.318520],[1472774400000, 1.345238],[1472860800000, 1.347727],[1472947200000, 1.347727],[1473033600000, 1.347727],[1473120000000, 1.353873],[1473206400000, 1.357622],[1473292800000, 1.350913],[1473379200000, 1.346255],[1473465600000, 1.348279],[1473552000000, 1.348279],[1473638400000, 1.348279],[1473724800000, 1.346080],[1473811200000, 1.335340],[1473897600000, 1.331040],[1473984000000, 1.324796],[1474070400000, 1.309624],[1474156800000, 1.309624],[1474243200000, 1.309624],[1474329600000, 1.302860],[1474416000000, 1.304139],[1474502400000, 1.311598],[1474588800000, 1.308910],[1474675200000, 1.312009],[1474761600000, 1.312009],[1474848000000, 1.312009],[1474934400000, 1.308574],[1475020800000, 1.305640],[1475107200000, 1.310108],[1475193600000, 1.311556]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });