$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1377993600000,8.59361],[1378080000000,8.59361],[1378166400000,8.57056],[1378252800000,8.5423],[1378339200000,8.52781],[1378425600000,8.51684],[1378512000000,8.46747],[1378598400000,8.46747],[1378684800000,8.46747],[1378771200000,8.53924],[1378857600000,8.53997],[1378944000000,8.55596],[1379030400000,8.58886],[1379116800000,8.58653],[1379203200000,8.58653],[1379289600000,8.58653],[1379376000000,8.62797],[1379462400000,8.62663],[1379548800000,8.62753],[1379635200000,8.77849],[1379721600000,8.76054],[1379808000000,8.76054],[1379894400000,8.76054],[1379980800000,8.76162],[1380067200000,8.75882],[1380153600000,8.77255],[1380240000000,8.78072],[1380326400000,8.8342],[1380412800000,8.8342],[1380499200000,8.8342]], 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, 8.593611],[1377993600000, 8.593611],[1378080000000, 8.593611],[1378166400000, 8.570557],[1378252800000, 8.542296],[1378339200000, 8.527809],[1378425600000, 8.516835],[1378512000000, 8.467467],[1378598400000, 8.467467],[1378684800000, 8.467467],[1378771200000, 8.539242],[1378857600000, 8.539971],[1378944000000, 8.555960],[1379030400000, 8.588856],[1379116800000, 8.586533],[1379203200000, 8.586533],[1379289600000, 8.586533],[1379376000000, 8.627970],[1379462400000, 8.626627],[1379548800000, 8.627529],[1379635200000, 8.778495],[1379721600000, 8.760535],[1379808000000, 8.760535],[1379894400000, 8.760535],[1379980800000, 8.761620],[1380067200000, 8.758820],[1380153600000, 8.772551],[1380240000000, 8.780722],[1380326400000, 8.834197],[1380412800000, 8.834197],[1380499200000, 8.834197]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });