$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1341100800000,9.97304],[1341187200000,9.97304],[1341273600000,10.065],[1341360000000,10.0506],[1341446400000,10.0386],[1341532800000,9.93148],[1341619200000,9.89232],[1341705600000,9.89294],[1341792000000,9.89294],[1341878400000,9.82579],[1341964800000,9.8194],[1342051200000,9.79942],[1342137600000,9.73387],[1342224000000,9.73947],[1342310400000,9.73947],[1342396800000,9.73947],[1342483200000,9.73308],[1342569600000,9.8162],[1342656000000,9.77864],[1342742400000,9.821],[1342828800000,9.75146],[1342915200000,9.75146],[1343001600000,9.75146],[1343088000000,9.67553],[1343174400000,9.66274],[1343260800000,9.69871],[1343347200000,9.79942],[1343433600000,9.84498],[1343520000000,9.84498],[1343606400000,9.84498],[1343692800000,9.78823]], 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, 9.973042],[1341100800000, 9.973042],[1341187200000, 9.973042],[1341273600000, 10.064955],[1341360000000, 10.050569],[1341446400000, 10.038580],[1341532800000, 9.931481],[1341619200000, 9.892317],[1341705600000, 9.892936],[1341792000000, 9.892936],[1341878400000, 9.825795],[1341964800000, 9.819401],[1342051200000, 9.799418],[1342137600000, 9.733875],[1342224000000, 9.739471],[1342310400000, 9.739471],[1342396800000, 9.739471],[1342483200000, 9.733076],[1342569600000, 9.816203],[1342656000000, 9.778636],[1342742400000, 9.820999],[1342828800000, 9.751460],[1342915200000, 9.751460],[1343001600000, 9.751460],[1343088000000, 9.675527],[1343174400000, 9.662738],[1343260800000, 9.698706],[1343347200000, 9.799418],[1343433600000, 9.844978],[1343520000000, 9.844978],[1343606400000, 9.844978],[1343692800000, 9.788228]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });