$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1475280000000,0.40913],[1475366400000,0.40913],[1475452800000,0.40913],[1475539200000,0.41441],[1475625600000,0.41428],[1475712000000,0.41465],[1475798400000,0.41495],[1475884800000,0.41476],[1475971200000,0.41476],[1476057600000,0.41476],[1476144000000,0.41397],[1476230400000,0.41566],[1476316800000,0.41233],[1476403200000,0.40714],[1476489600000,0.40714],[1476576000000,0.40714],[1476662400000,0.40714],[1476748800000,0.40828],[1476835200000,0.40806],[1476921600000,0.41054],[1477008000000,0.41179],[1477094400000,0.41093],[1477180800000,0.41093],[1477267200000,0.41093],[1477353600000,0.412],[1477440000000,0.41251],[1477526400000,0.41088],[1477612800000,0.40503],[1477699200000,0.40532],[1477785600000,0.40532],[1477872000000,0.40532]], 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, 0.409130],[1475280000000, 0.409130],[1475366400000, 0.409130],[1475452800000, 0.409130],[1475539200000, 0.414410],[1475625600000, 0.414280],[1475712000000, 0.414650],[1475798400000, 0.414950],[1475884800000, 0.414760],[1475971200000, 0.414760],[1476057600000, 0.414760],[1476144000000, 0.413970],[1476230400000, 0.415660],[1476316800000, 0.412330],[1476403200000, 0.407140],[1476489600000, 0.407140],[1476576000000, 0.407140],[1476662400000, 0.407140],[1476748800000, 0.408280],[1476835200000, 0.408060],[1476921600000, 0.410540],[1477008000000, 0.411790],[1477094400000, 0.410930],[1477180800000, 0.410930],[1477267200000, 0.410930],[1477353600000, 0.412000],[1477440000000, 0.412510],[1477526400000, 0.410880],[1477612800000, 0.405030],[1477699200000, 0.405320],[1477785600000, 0.405320],[1477872000000, 0.405320]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });