$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1249084800000,2.61721],[1249171200000,2.61721],[1249257600000,2.61721],[1249344000000,2.67572],[1249430400000,2.67967],[1249516800000,2.69996],[1249603200000,2.66876],[1249689600000,2.65427],[1249776000000,2.65427],[1249862400000,2.65427],[1249948800000,2.66067],[1250035200000,2.62292],[1250121600000,2.6228],[1250208000000,2.69579],[1250294400000,2.69219],[1250380800000,2.69219],[1250467200000,2.69219],[1250553600000,2.61646],[1250640000000,2.6511],[1250726400000,2.64101],[1250812800000,2.70466],[1250899200000,2.77053],[1250985600000,2.77053],[1251072000000,2.77053],[1251158400000,2.77053],[1251244800000,2.79533],[1251331200000,2.78511],[1251417600000,2.77172],[1251504000000,2.80778],[1251590400000,2.80778],[1251676800000,2.80778]], 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, 2.617213],[1249084800000, 2.617213],[1249171200000, 2.617213],[1249257600000, 2.617213],[1249344000000, 2.675721],[1249430400000, 2.679667],[1249516800000, 2.699964],[1249603200000, 2.668764],[1249689600000, 2.654271],[1249776000000, 2.654271],[1249862400000, 2.654271],[1249948800000, 2.660675],[1250035200000, 2.622916],[1250121600000, 2.622804],[1250208000000, 2.695788],[1250294400000, 2.692187],[1250380800000, 2.692187],[1250467200000, 2.692187],[1250553600000, 2.616460],[1250640000000, 2.651103],[1250726400000, 2.641015],[1250812800000, 2.704661],[1250899200000, 2.770532],[1250985600000, 2.770532],[1251072000000, 2.770532],[1251158400000, 2.770532],[1251244800000, 2.795332],[1251331200000, 2.785113],[1251417600000, 2.771722],[1251504000000, 2.807781],[1251590400000, 2.807781],[1251676800000, 2.807781]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });