$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1377993600000,0.24041],[1378080000000,0.24041],[1378166400000,0.24038],[1378252800000,0.23953],[1378339200000,0.23884],[1378425600000,0.23938],[1378512000000,0.23907],[1378598400000,0.23907],[1378684800000,0.23907],[1378771200000,0.23986],[1378857600000,0.24177],[1378944000000,0.24248],[1379030400000,0.24464],[1379116800000,0.24413],[1379203200000,0.24413],[1379289600000,0.24413],[1379376000000,0.24753],[1379462400000,0.24728],[1379548800000,0.24788],[1379635200000,0.25303],[1379721600000,0.25189],[1379808000000,0.25189],[1379894400000,0.25189],[1379980800000,0.25048],[1380067200000,0.25122],[1380153600000,0.2503],[1380240000000,0.24843],[1380326400000,0.24712],[1380412800000,0.24712],[1380499200000,0.24712]], 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, 0.240410],[1377993600000, 0.240410],[1378080000000, 0.240410],[1378166400000, 0.240380],[1378252800000, 0.239530],[1378339200000, 0.238840],[1378425600000, 0.239380],[1378512000000, 0.239070],[1378598400000, 0.239070],[1378684800000, 0.239070],[1378771200000, 0.239860],[1378857600000, 0.241770],[1378944000000, 0.242480],[1379030400000, 0.244640],[1379116800000, 0.244130],[1379203200000, 0.244130],[1379289600000, 0.244130],[1379376000000, 0.247530],[1379462400000, 0.247280],[1379548800000, 0.247880],[1379635200000, 0.253030],[1379721600000, 0.251890],[1379808000000, 0.251890],[1379894400000, 0.251890],[1379980800000, 0.250480],[1380067200000, 0.251220],[1380153600000, 0.250300],[1380240000000, 0.248430],[1380326400000, 0.247120],[1380412800000, 0.247120],[1380499200000, 0.247120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });