$(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: [[1294272000000,10.5162],[1294358400000,10.4191],[1294444800000,10.4191],[1294531200000,10.4191],[1294617600000,10.4191],[1294704000000,10.2686],[1294790400000,10.3043],[1294876800000,10.3242],[1294963200000,10.4976],[1295049600000,10.6129],[1295136000000,10.6129],[1295222400000,10.6129],[1295308800000,10.5749],[1295395200000,10.6226],[1295481600000,10.7298],[1295568000000,10.7015],[1295654400000,10.7391],[1295740800000,10.7391],[1295827200000,10.7391],[1295913600000,10.7761],[1296000000000,10.7936],[1296086400000,10.8578],[1296172800000,10.8768],[1296259200000,10.8857],[1296345600000,10.8857],[1296432000000,10.8857]], 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: [[1294272000000, 10.516227],[1294272000000, 10.516227],[1294358400000, 10.419127],[1294444800000, 10.419127],[1294531200000, 10.419127],[1294617600000, 10.419127],[1294704000000, 10.268594],[1294790400000, 10.304277],[1294876800000, 10.324173],[1294963200000, 10.497561],[1295049600000, 10.612855],[1295136000000, 10.612855],[1295222400000, 10.612855],[1295308800000, 10.574924],[1295395200000, 10.622591],[1295481600000, 10.729842],[1295568000000, 10.701483],[1295654400000, 10.739054],[1295740800000, 10.739054],[1295827200000, 10.739054],[1295913600000, 10.776053],[1296000000000, 10.793592],[1296086400000, 10.857789],[1296172800000, 10.876788],[1296259200000, 10.885740],[1296345600000, 10.885740],[1296432000000, 10.885740]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });