$(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: [[1406851200000,3.90489],[1406937600000,3.83912],[1407024000000,3.83912],[1407110400000,3.83912],[1407196800000,3.89592],[1407283200000,3.95671],[1407369600000,3.96036],[1407456000000,3.95432],[1407542400000,4.00892],[1407628800000,4.00892],[1407715200000,4.00892],[1407801600000,4.08746],[1407888000000,4.18859],[1407974400000,4.16013],[1408060800000,4.16986],[1408147200000,4.20252],[1408233600000,4.20252],[1408320000000,4.20252],[1408406400000,4.18671],[1408492800000,4.13877],[1408579200000,4.21505],[1408665600000,4.16444],[1408752000000,4.23128],[1408838400000,4.23128],[1408924800000,4.23128],[1409011200000,4.23128],[1409097600000,4.31505],[1409184000000,4.38103],[1409270400000,4.21917],[1409356800000,4.25429]], 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: [[1406851200000, 3.904885],[1406851200000, 3.904885],[1406937600000, 3.839119],[1407024000000, 3.839119],[1407110400000, 3.839119],[1407196800000, 3.895915],[1407283200000, 3.956714],[1407369600000, 3.960356],[1407456000000, 3.954318],[1407542400000, 4.008923],[1407628800000, 4.008923],[1407715200000, 4.008923],[1407801600000, 4.087460],[1407888000000, 4.188590],[1407974400000, 4.160126],[1408060800000, 4.169864],[1408147200000, 4.202515],[1408233600000, 4.202515],[1408320000000, 4.202515],[1408406400000, 4.186712],[1408492800000, 4.138775],[1408579200000, 4.215047],[1408665600000, 4.164443],[1408752000000, 4.231276],[1408838400000, 4.231276],[1408924800000, 4.231276],[1409011200000, 4.231276],[1409097600000, 4.315046],[1409184000000, 4.381030],[1409270400000, 4.219166],[1409356800000, 4.254287]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });