$(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: [[1472688000000,0.39969],[1472774400000,0.40787],[1472860800000,0.40434],[1472947200000,0.40434],[1473033600000,0.40434],[1473120000000,0.41361],[1473206400000,0.41413],[1473292800000,0.4151],[1473379200000,0.41639],[1473465600000,0.41574],[1473552000000,0.41574],[1473638400000,0.41574],[1473724800000,0.40936],[1473811200000,0.40774],[1473897600000,0.40524],[1473984000000,0.40184],[1474070400000,0.39851],[1474156800000,0.39851],[1474243200000,0.39851],[1474329600000,0.39692],[1474416000000,0.39853],[1474502400000,0.40307],[1474588800000,0.40635],[1474675200000,0.40697],[1474761600000,0.40697],[1474848000000,0.40697],[1474934400000,0.40376],[1475020800000,0.40554],[1475107200000,0.40495],[1475193600000,0.41027]], 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, 0.399690],[1472688000000, 0.399690],[1472774400000, 0.407870],[1472860800000, 0.404340],[1472947200000, 0.404340],[1473033600000, 0.404340],[1473120000000, 0.413610],[1473206400000, 0.414130],[1473292800000, 0.415100],[1473379200000, 0.416390],[1473465600000, 0.415740],[1473552000000, 0.415740],[1473638400000, 0.415740],[1473724800000, 0.409360],[1473811200000, 0.407740],[1473897600000, 0.405240],[1473984000000, 0.401840],[1474070400000, 0.398510],[1474156800000, 0.398510],[1474243200000, 0.398510],[1474329600000, 0.396920],[1474416000000, 0.398530],[1474502400000, 0.403070],[1474588800000, 0.406350],[1474675200000, 0.406970],[1474761600000, 0.406970],[1474848000000, 0.406970],[1474934400000, 0.403760],[1475020800000, 0.405540],[1475107200000, 0.404950],[1475193600000, 0.410270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });