$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1196467200000,0.0294637],[1196553600000,0.0294637],[1196640000000,0.0294637],[1196726400000,0.0292555],[1196812800000,0.0293715],[1196899200000,0.0293946],[1196985600000,0.0291553],[1197072000000,0.0293108],[1197158400000,0.0293108],[1197244800000,0.0293108],[1197331200000,0.0295401],[1197417600000,0.0294466],[1197504000000,0.0293663],[1197590400000,0.0293765],[1197676800000,0.0289595],[1197763200000,0.0289595],[1197849600000,0.0289595],[1197936000000,0.0285901],[1198022400000,0.0286843],[1198108800000,0.0286125],[1198195200000,0.0285308],[1198281600000,0.0285857],[1198368000000,0.0285857],[1198454400000,0.0285857],[1198540800000,0.0286305],[1198627200000,0.0286305],[1198713600000,0.0286305],[1198800000000,0.0288583],[1198886400000,0.0292323]], 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: [[1196467200000, 0.029464],[1196467200000, 0.029464],[1196553600000, 0.029464],[1196640000000, 0.029464],[1196726400000, 0.029256],[1196812800000, 0.029371],[1196899200000, 0.029395],[1196985600000, 0.029155],[1197072000000, 0.029311],[1197158400000, 0.029311],[1197244800000, 0.029311],[1197331200000, 0.029540],[1197417600000, 0.029447],[1197504000000, 0.029366],[1197590400000, 0.029376],[1197676800000, 0.028959],[1197763200000, 0.028959],[1197849600000, 0.028959],[1197936000000, 0.028590],[1198022400000, 0.028684],[1198108800000, 0.028612],[1198195200000, 0.028531],[1198281600000, 0.028586],[1198368000000, 0.028586],[1198454400000, 0.028586],[1198540800000, 0.028630],[1198627200000, 0.028630],[1198713600000, 0.028630],[1198800000000, 0.028858],[1198886400000, 0.029232]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });