$(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: [[1356998400000,2.58207],[1357084800000,2.58207],[1357171200000,2.58207],[1357257600000,2.5615],[1357344000000,2.52654],[1357430400000,2.52654],[1357516800000,2.52654],[1357603200000,2.52654],[1357689600000,2.53598],[1357776000000,2.53971],[1357862400000,2.5634],[1357948800000,2.58778],[1358035200000,2.58778],[1358121600000,2.58778],[1358208000000,2.58822],[1358294400000,2.5855],[1358380800000,2.56882],[1358467200000,2.59327],[1358553600000,2.56902],[1358640000000,2.56902],[1358726400000,2.56902],[1358812800000,2.5538],[1358899200000,2.55032],[1358985600000,2.55888],[1359072000000,2.54596],[1359158400000,2.57746],[1359244800000,2.57746],[1359331200000,2.57746],[1359417600000,2.55919],[1359504000000,2.55096],[1359590400000,2.57772]], 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: [[1356998400000, 2.582071],[1356998400000, 2.582071],[1357084800000, 2.582071],[1357171200000, 2.582071],[1357257600000, 2.561498],[1357344000000, 2.526537],[1357430400000, 2.526537],[1357516800000, 2.526537],[1357603200000, 2.526537],[1357689600000, 2.535978],[1357776000000, 2.539708],[1357862400000, 2.563398],[1357948800000, 2.587782],[1358035200000, 2.587782],[1358121600000, 2.587782],[1358208000000, 2.588219],[1358294400000, 2.585503],[1358380800000, 2.568819],[1358467200000, 2.593268],[1358553600000, 2.569020],[1358640000000, 2.569020],[1358726400000, 2.569020],[1358812800000, 2.553796],[1358899200000, 2.550322],[1358985600000, 2.558881],[1359072000000, 2.545958],[1359158400000, 2.577455],[1359244800000, 2.577455],[1359331200000, 2.577455],[1359417600000, 2.559192],[1359504000000, 2.550961],[1359590400000, 2.577718]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });