$(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: [[1228089600000,8.75325],[1228176000000,9.00463],[1228262400000,9.1911],[1228348800000,9.31817],[1228435200000,9.29009],[1228521600000,9.32119],[1228608000000,9.32119],[1228694400000,9.32119],[1228780800000,9.51055],[1228867200000,9.53876],[1228953600000,9.66053],[1229040000000,9.89381],[1229126400000,9.96912],[1229212800000,9.96912],[1229299200000,9.96912],[1229385600000,10.3403],[1229472000000,10.5937],[1229558400000,11.0571],[1229644800000,11.5157],[1229731200000,10.983],[1229817600000,10.983],[1229904000000,10.983],[1229990400000,11.0067],[1230076800000,10.8889],[1230163200000,10.9099],[1230249600000,10.9099],[1230336000000,10.7838],[1230422400000,10.7838],[1230508800000,10.7838],[1230595200000,10.9879],[1230681600000,10.8555]], 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: [[1228089600000, 8.753249],[1228089600000, 8.753249],[1228176000000, 9.004634],[1228262400000, 9.191104],[1228348800000, 9.318172],[1228435200000, 9.290087],[1228521600000, 9.321187],[1228608000000, 9.321187],[1228694400000, 9.321187],[1228780800000, 9.510546],[1228867200000, 9.538762],[1228953600000, 9.660533],[1229040000000, 9.893806],[1229126400000, 9.969115],[1229212800000, 9.969115],[1229299200000, 9.969115],[1229385600000, 10.340284],[1229472000000, 10.593733],[1229558400000, 11.057122],[1229644800000, 11.515654],[1229731200000, 10.983047],[1229817600000, 10.983047],[1229904000000, 10.983047],[1229990400000, 11.006684],[1230076800000, 10.888862],[1230163200000, 10.909895],[1230249600000, 10.909895],[1230336000000, 10.783850],[1230422400000, 10.783850],[1230508800000, 10.783850],[1230595200000, 10.987900],[1230681600000, 10.855460]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });