$(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: [[1380585600000,2.55263],[1380672000000,2.56068],[1380758400000,2.56045],[1380844800000,2.58381],[1380931200000,2.58411],[1381017600000,2.58411],[1381104000000,2.58411],[1381190400000,2.5859],[1381276800000,2.58789],[1381363200000,2.57234],[1381449600000,2.57234],[1381536000000,2.58593],[1381622400000,2.58593],[1381708800000,2.58593],[1381795200000,2.59197],[1381881600000,2.57945],[1381968000000,2.59531],[1382054400000,2.61595],[1382140800000,2.61616],[1382227200000,2.61616],[1382313600000,2.61616],[1382400000000,2.61191],[1382486400000,2.61349],[1382572800000,2.63073],[1382659200000,2.63595],[1382745600000,2.63079],[1382832000000,2.63079],[1382918400000,2.63079],[1383004800000,2.63231],[1383091200000,2.63033],[1383177600000,2.63017]], 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: [[1380585600000, 2.552626],[1380585600000, 2.552626],[1380672000000, 2.560677],[1380758400000, 2.560450],[1380844800000, 2.583807],[1380931200000, 2.584109],[1381017600000, 2.584109],[1381104000000, 2.584109],[1381190400000, 2.585898],[1381276800000, 2.587894],[1381363200000, 2.572339],[1381449600000, 2.572339],[1381536000000, 2.585926],[1381622400000, 2.585926],[1381708800000, 2.585926],[1381795200000, 2.591973],[1381881600000, 2.579454],[1381968000000, 2.595309],[1382054400000, 2.615954],[1382140800000, 2.616155],[1382227200000, 2.616155],[1382313600000, 2.616155],[1382400000000, 2.611905],[1382486400000, 2.613493],[1382572800000, 2.630729],[1382659200000, 2.635947],[1382745600000, 2.630789],[1382832000000, 2.630789],[1382918400000, 2.630789],[1383004800000, 2.632314],[1383091200000, 2.630327],[1383177600000, 2.630169]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });