$(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: [[1377993600000,1.20896],[1378080000000,1.20896],[1378166400000,1.21029],[1378252800000,1.20973],[1378339200000,1.20778],[1378425600000,1.20253],[1378512000000,1.20168],[1378598400000,1.20168],[1378684800000,1.20168],[1378771200000,1.20536],[1378857600000,1.21799],[1378944000000,1.22296],[1379030400000,1.22207],[1379116800000,1.22079],[1379203200000,1.22079],[1379289600000,1.22079],[1379376000000,1.22796],[1379462400000,1.23627],[1379548800000,1.23718],[1379635200000,1.26327],[1379721600000,1.25647],[1379808000000,1.25647],[1379894400000,1.25647],[1379980800000,1.25536],[1380067200000,1.24764],[1380153600000,1.24236],[1380240000000,1.24659],[1380326400000,1.24565],[1380412800000,1.24565],[1380499200000,1.24565]], 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: [[1377993600000, 1.208957],[1377993600000, 1.208957],[1378080000000, 1.208957],[1378166400000, 1.210286],[1378252800000, 1.209728],[1378339200000, 1.207776],[1378425600000, 1.202534],[1378512000000, 1.201680],[1378598400000, 1.201680],[1378684800000, 1.201680],[1378771200000, 1.205363],[1378857600000, 1.217988],[1378944000000, 1.222957],[1379030400000, 1.222067],[1379116800000, 1.220785],[1379203200000, 1.220785],[1379289600000, 1.220785],[1379376000000, 1.227960],[1379462400000, 1.236271],[1379548800000, 1.237176],[1379635200000, 1.263275],[1379721600000, 1.256469],[1379808000000, 1.256469],[1379894400000, 1.256469],[1379980800000, 1.255356],[1380067200000, 1.247636],[1380153600000, 1.242360],[1380240000000, 1.246592],[1380326400000, 1.245654],[1380412800000, 1.245654],[1380499200000, 1.245654]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });