$(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: [[1380585600000,10.7945],[1380672000000,10.8337],[1380758400000,10.8025],[1380844800000,10.8657],[1380931200000,10.8649],[1381017600000,10.8649],[1381104000000,10.8649],[1381190400000,10.8481],[1381276800000,10.8513],[1381363200000,10.8025],[1381449600000,10.8025],[1381536000000,10.8433],[1381622400000,10.8433],[1381708800000,10.8433],[1381795200000,10.8417],[1381881600000,10.785],[1381968000000,10.8393],[1382054400000,10.92],[1382140800000,10.9376],[1382227200000,10.9376],[1382313600000,10.9376],[1382400000000,10.924],[1382486400000,10.9296],[1382572800000,10.992],[1382659200000,11.0343],[1382745600000,11.012],[1382832000000,11.012],[1382918400000,11.012],[1383004800000,11.0176],[1383091200000,11.0048],[1383177600000,10.9944]], 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: [[1380585600000, 10.794547],[1380585600000, 10.794547],[1380672000000, 10.833712],[1380758400000, 10.802540],[1380844800000, 10.865684],[1380931200000, 10.864885],[1381017600000, 10.864885],[1381104000000, 10.864885],[1381190400000, 10.848100],[1381276800000, 10.851297],[1381363200000, 10.802540],[1381449600000, 10.802540],[1381536000000, 10.843304],[1381622400000, 10.843304],[1381708800000, 10.843304],[1381795200000, 10.841705],[1381881600000, 10.784955],[1381968000000, 10.839307],[1382054400000, 10.920037],[1382140800000, 10.937621],[1382227200000, 10.937621],[1382313600000, 10.937621],[1382400000000, 10.924033],[1382486400000, 10.929628],[1382572800000, 10.991974],[1382659200000, 11.034337],[1382745600000, 11.011956],[1382832000000, 11.011956],[1382918400000, 11.011956],[1383004800000, 11.017551],[1383091200000, 11.004762],[1383177600000, 10.994372]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });