$(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: [[1396310400000,3.63484],[1396396800000,3.66582],[1396483200000,3.71284],[1396569600000,3.70395],[1396656000000,3.82867],[1396742400000,3.82867],[1396828800000,3.82867],[1396915200000,3.83237],[1397001600000,3.85535],[1397088000000,3.9232],[1397174400000,4.17309],[1397260800000,4.17996],[1397347200000,4.17996],[1397433600000,4.17996],[1397520000000,4.30285],[1397606400000,4.09466],[1397692800000,3.75706],[1397779200000,3.71172],[1397865600000,3.70926],[1397952000000,3.70926],[1398038400000,3.70926],[1398124800000,3.70926],[1398211200000,3.71589],[1398297600000,3.79595],[1398384000000,3.7565],[1398470400000,3.7533],[1398556800000,3.7533],[1398643200000,3.7533],[1398729600000,3.73756],[1398816000000,3.75877]], 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: [[1396310400000, 3.634838],[1396310400000, 3.634838],[1396396800000, 3.665825],[1396483200000, 3.712839],[1396569600000, 3.703949],[1396656000000, 3.828667],[1396742400000, 3.828667],[1396828800000, 3.828667],[1396915200000, 3.832372],[1397001600000, 3.855355],[1397088000000, 3.923204],[1397174400000, 4.173091],[1397260800000, 4.179961],[1397347200000, 4.179961],[1397433600000, 4.179961],[1397520000000, 4.302847],[1397606400000, 4.094662],[1397692800000, 3.757058],[1397779200000, 3.711716],[1397865600000, 3.709260],[1397952000000, 3.709260],[1398038400000, 3.709260],[1398124800000, 3.709260],[1398211200000, 3.715894],[1398297600000, 3.795949],[1398384000000, 3.756501],[1398470400000, 3.753301],[1398556800000, 3.753301],[1398643200000, 3.753301],[1398729600000, 3.737558],[1398816000000, 3.758766]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });