$(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: [[1341100800000,0.24339],[1341187200000,0.24339],[1341273600000,0.24571],[1341360000000,0.24608],[1341446400000,0.24816],[1341532800000,0.24613],[1341619200000,0.24499],[1341705600000,0.245],[1341792000000,0.245],[1341878400000,0.24228],[1341964800000,0.24239],[1342051200000,0.24348],[1342137600000,0.2443],[1342224000000,0.24474],[1342310400000,0.24474],[1342396800000,0.24474],[1342483200000,0.24503],[1342569600000,0.24597],[1342656000000,0.24667],[1342742400000,0.24919],[1342828800000,0.25017],[1342915200000,0.25017],[1343001600000,0.25017],[1343088000000,0.24688],[1343174400000,0.24494],[1343260800000,0.24246],[1343347200000,0.24502],[1343433600000,0.24813],[1343520000000,0.24813],[1343606400000,0.24813],[1343692800000,0.24832]], 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, 0.243390],[1341100800000, 0.243390],[1341187200000, 0.243390],[1341273600000, 0.245710],[1341360000000, 0.246080],[1341446400000, 0.248160],[1341532800000, 0.246130],[1341619200000, 0.244990],[1341705600000, 0.245000],[1341792000000, 0.245000],[1341878400000, 0.242280],[1341964800000, 0.242390],[1342051200000, 0.243480],[1342137600000, 0.244300],[1342224000000, 0.244740],[1342310400000, 0.244740],[1342396800000, 0.244740],[1342483200000, 0.245030],[1342569600000, 0.245970],[1342656000000, 0.246670],[1342742400000, 0.249190],[1342828800000, 0.250170],[1342915200000, 0.250170],[1343001600000, 0.250170],[1343088000000, 0.246880],[1343174400000, 0.244940],[1343260800000, 0.242460],[1343347200000, 0.245020],[1343433600000, 0.248130],[1343520000000, 0.248130],[1343606400000, 0.248130],[1343692800000, 0.248320]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });