$(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: [[1341100800000,12.4679],[1341187200000,12.4679],[1341273600000,12.517],[1341360000000,12.5202],[1341446400000,12.4982],[1341532800000,12.4392],[1341619200000,12.4197],[1341705600000,12.4205],[1341792000000,12.4205],[1341878400000,12.3813],[1341964800000,12.3967],[1342051200000,12.4334],[1342137600000,12.3432],[1342224000000,12.3676],[1342310400000,12.3676],[1342396800000,12.3676],[1342483200000,12.4083],[1342569600000,12.4864],[1342656000000,12.4727],[1342742400000,12.5428],[1342828800000,12.5284],[1342915200000,12.5284],[1343001600000,12.5284],[1343088000000,12.4077],[1343174400000,12.412],[1343260800000,12.3834],[1343347200000,12.5184],[1343433600000,12.5742],[1343520000000,12.5742],[1343606400000,12.5742],[1343692800000,12.5514]], 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: [[1341100800000, 12.467860],[1341100800000, 12.467860],[1341187200000, 12.467860],[1341273600000, 12.517044],[1341360000000, 12.520173],[1341446400000, 12.498232],[1341532800000, 12.439229],[1341619200000, 12.419733],[1341705600000, 12.420510],[1341792000000, 12.420510],[1341878400000, 12.381294],[1341964800000, 12.396668],[1342051200000, 12.433443],[1342137600000, 12.343235],[1342224000000, 12.367582],[1342310400000, 12.367582],[1342396800000, 12.367582],[1342483200000, 12.408307],[1342569600000, 12.486425],[1342656000000, 12.472750],[1342742400000, 12.542783],[1342828800000, 12.528374],[1342915200000, 12.528374],[1343001600000, 12.528374],[1343088000000, 12.407703],[1343174400000, 12.411994],[1343260800000, 12.383435],[1343347200000, 12.518418],[1343433600000, 12.574210],[1343520000000, 12.574210],[1343606400000, 12.574210],[1343692800000, 12.551424]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });