$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1228089600000,10.2761],[1228176000000,10.5944],[1228262400000,10.7239],[1228348800000,10.9327],[1228435200000,10.8909],[1228521600000,10.923],[1228608000000,10.923],[1228694400000,10.923],[1228780800000,11.0328],[1228867200000,11.0719],[1228953600000,11.1694],[1229040000000,11.2874],[1229126400000,11.3364],[1229212800000,11.3364],[1229299200000,11.3364],[1229385600000,11.6515],[1229472000000,11.8727],[1229558400000,12.2486],[1229644800000,12.4435],[1229731200000,12.1728],[1229817600000,12.1728],[1229904000000,12.1728],[1229990400000,12.1608],[1230076800000,12.0221],[1230163200000,12.0248],[1230249600000,12.0248],[1230336000000,11.8859],[1230422400000,11.8859],[1230508800000,11.8859],[1230595200000,11.986],[1230681600000,11.9181]], 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, 10.276144],[1228089600000, 10.276144],[1228176000000, 10.594396],[1228262400000, 10.723926],[1228348800000, 10.932666],[1228435200000, 10.890918],[1228521600000, 10.923004],[1228608000000, 10.923004],[1228694400000, 10.923004],[1228780800000, 11.032810],[1228867200000, 11.071871],[1228953600000, 11.169375],[1229040000000, 11.287354],[1229126400000, 11.336448],[1229212800000, 11.336448],[1229299200000, 11.336448],[1229385600000, 11.651499],[1229472000000, 11.872728],[1229558400000, 12.248617],[1229644800000, 12.443538],[1229731200000, 12.172787],[1229817600000, 12.172787],[1229904000000, 12.172787],[1229990400000, 12.160763],[1230076800000, 12.022050],[1230163200000, 12.024815],[1230249600000, 12.024815],[1230336000000, 11.885889],[1230422400000, 11.885889],[1230508800000, 11.885889],[1230595200000, 11.986021],[1230681600000, 11.918139]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });