$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1249084800000,1.05313],[1249171200000,1.05313],[1249257600000,1.05313],[1249344000000,1.06756],[1249430400000,1.07228],[1249516800000,1.07819],[1249603200000,1.07705],[1249689600000,1.07374],[1249776000000,1.07374],[1249862400000,1.07374],[1249948800000,1.07215],[1250035200000,1.05793],[1250121600000,1.0683],[1250208000000,1.08627],[1250294400000,1.09025],[1250380800000,1.09025],[1250467200000,1.09025],[1250553600000,1.06764],[1250640000000,1.07844],[1250726400000,1.0796],[1250812800000,1.1012],[1250899200000,1.12174],[1250985600000,1.12174],[1251072000000,1.12174],[1251158400000,1.12174],[1251244800000,1.13054],[1251331200000,1.12379],[1251417600000,1.12175],[1251504000000,1.1308],[1251590400000,1.1308],[1251676800000,1.1308]], 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: [[1249084800000, 1.053135],[1249084800000, 1.053135],[1249171200000, 1.053135],[1249257600000, 1.053135],[1249344000000, 1.067555],[1249430400000, 1.072278],[1249516800000, 1.078192],[1249603200000, 1.077047],[1249689600000, 1.073737],[1249776000000, 1.073737],[1249862400000, 1.073737],[1249948800000, 1.072148],[1250035200000, 1.057926],[1250121600000, 1.068299],[1250208000000, 1.086274],[1250294400000, 1.090252],[1250380800000, 1.090252],[1250467200000, 1.090252],[1250553600000, 1.067642],[1250640000000, 1.078439],[1250726400000, 1.079602],[1250812800000, 1.101204],[1250899200000, 1.121739],[1250985600000, 1.121739],[1251072000000, 1.121739],[1251158400000, 1.121739],[1251244800000, 1.130545],[1251331200000, 1.123792],[1251417600000, 1.121754],[1251504000000, 1.130804],[1251590400000, 1.130804],[1251676800000, 1.130804]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });