$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1448928000000,35.9459],[1449014400000,35.9182],[1449100800000,35.5503],[1449187200000,34.5943],[1449273600000,35.803],[1449360000000,35.803],[1449446400000,35.803],[1449532800000,35.3182],[1449619200000,34.2705],[1449705600000,34.546],[1449792000000,35.3448],[1449878400000,36.1667],[1449964800000,36.1667],[1450051200000,36.1667],[1450137600000,36.0225],[1450224000000,35.5391],[1450310400000,35.3064],[1450396800000,35.044],[1450483200000,35.1126],[1450569600000,35.1126],[1450656000000,35.1126],[1450742400000,35.0267],[1450828800000,34.4341],[1450915200000,34.2481],[1451001600000,34.2403],[1451088000000,34.4982],[1451174400000,34.4982],[1451260800000,34.4982],[1451347200000,35.4903],[1451433600000,35.2079],[1451520000000,35.5332]], 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: [[1448928000000, 35.945914],[1448928000000, 35.945914],[1449014400000, 35.918216],[1449100800000, 35.550275],[1449187200000, 34.594308],[1449273600000, 35.802986],[1449360000000, 35.802986],[1449446400000, 35.802986],[1449532800000, 35.318182],[1449619200000, 34.270514],[1449705600000, 34.546035],[1449792000000, 35.344784],[1449878400000, 36.166671],[1449964800000, 36.166671],[1450051200000, 36.166671],[1450137600000, 36.022455],[1450224000000, 35.539140],[1450310400000, 35.306363],[1450396800000, 35.044025],[1450483200000, 35.112562],[1450569600000, 35.112562],[1450656000000, 35.112562],[1450742400000, 35.026692],[1450828800000, 34.434149],[1450915200000, 34.248077],[1451001600000, 34.240287],[1451088000000, 34.498237],[1451174400000, 34.498237],[1451260800000, 34.498237],[1451347200000, 35.490259],[1451433600000, 35.207888],[1451520000000, 35.533176]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });