$(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: [[1168041600000,6.60742],[1168128000000,6.60742],[1168214400000,6.60742],[1168300800000,6.60742],[1168387200000,6.57409],[1168473600000,6.55894],[1168560000000,6.55692],[1168646400000,6.51096],[1168732800000,6.51096],[1168819200000,6.51096],[1168905600000,6.53521],[1168992000000,6.54127],[1169078400000,6.51905],[1169164800000,6.52561],[1169251200000,6.54379],[1169337600000,6.54379],[1169424000000,6.54379],[1169510400000,6.53268],[1169596800000,6.5852],[1169683200000,6.56752],[1169769600000,6.55389],[1169856000000,6.51501],[1169942400000,6.51501],[1170028800000,6.51501],[1170115200000,6.5251],[1170201600000,6.55086]], 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: [[1168041600000, 6.607420],[1168041600000, 6.607420],[1168128000000, 6.607420],[1168214400000, 6.607420],[1168300800000, 6.607420],[1168387200000, 6.574090],[1168473600000, 6.558940],[1168560000000, 6.556920],[1168646400000, 6.510965],[1168732800000, 6.510965],[1168819200000, 6.510965],[1168905600000, 6.535205],[1168992000000, 6.541265],[1169078400000, 6.519045],[1169164800000, 6.525610],[1169251200000, 6.543790],[1169337600000, 6.543790],[1169424000000, 6.543790],[1169510400000, 6.532680],[1169596800000, 6.585200],[1169683200000, 6.567525],[1169769600000, 6.553890],[1169856000000, 6.515005],[1169942400000, 6.515005],[1170028800000, 6.515005],[1170115200000, 6.525105],[1170201600000, 6.550860]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });