$(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: [[1017619200000,0.17102],[1017705600000,0.17075],[1017792000000,0.17081],[1017878400000,0.17079],[1017964800000,0.17085],[1018051200000,0.17085],[1018137600000,0.17085],[1018224000000,0.17085],[1018310400000,0.17098],[1018396800000,0.17098],[1018483200000,0.17096],[1018569600000,0.17092],[1018656000000,0.17092],[1018742400000,0.17092],[1018828800000,0.17103],[1018915200000,0.17103],[1019001600000,0.17104],[1019088000000,0.17103],[1019174400000,0.17093],[1019260800000,0.17093],[1019347200000,0.17093],[1019433600000,0.17103],[1019520000000,0.17103],[1019606400000,0.17104],[1019692800000,0.17087],[1019779200000,0.17076],[1019865600000,0.17076],[1019952000000,0.17076],[1020038400000,0.17076],[1020124800000,0.17076]], 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: [[1017619200000, 0.171020],[1017619200000, 0.171020],[1017705600000, 0.170750],[1017792000000, 0.170810],[1017878400000, 0.170790],[1017964800000, 0.170850],[1018051200000, 0.170850],[1018137600000, 0.170850],[1018224000000, 0.170850],[1018310400000, 0.170980],[1018396800000, 0.170980],[1018483200000, 0.170960],[1018569600000, 0.170920],[1018656000000, 0.170920],[1018742400000, 0.170920],[1018828800000, 0.171030],[1018915200000, 0.171030],[1019001600000, 0.171040],[1019088000000, 0.171030],[1019174400000, 0.170930],[1019260800000, 0.170930],[1019347200000, 0.170930],[1019433600000, 0.171030],[1019520000000, 0.171030],[1019606400000, 0.171040],[1019692800000, 0.170870],[1019779200000, 0.170760],[1019865600000, 0.170760],[1019952000000, 0.170760],[1020038400000, 0.170760],[1020124800000, 0.170760]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });