$(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: [[1246406400000,2.42567],[1246492800000,2.45277],[1246579200000,2.4645],[1246665600000,2.45828],[1246752000000,2.45828],[1246838400000,2.45828],[1246924800000,2.41945],[1247011200000,2.44547],[1247097600000,2.39046],[1247184000000,2.44873],[1247270400000,2.42311],[1247356800000,2.42311],[1247443200000,2.42311],[1247529600000,2.42051],[1247616000000,2.44969],[1247702400000,2.50617],[1247788800000,2.51656],[1247875200000,2.48667],[1247961600000,2.48667],[1248048000000,2.48667],[1248134400000,2.53452],[1248220800000,2.56211],[1248307200000,2.5559],[1248393600000,2.56557],[1248480000000,2.60424],[1248566400000,2.60424],[1248652800000,2.60424],[1248739200000,2.62805],[1248825600000,2.61996],[1248912000000,2.59017],[1248998400000,2.58959]], 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: [[1246406400000, 2.425670],[1246406400000, 2.425670],[1246492800000, 2.452769],[1246579200000, 2.464504],[1246665600000, 2.458278],[1246752000000, 2.458278],[1246838400000, 2.458278],[1246924800000, 2.419446],[1247011200000, 2.445473],[1247097600000, 2.390459],[1247184000000, 2.448732],[1247270400000, 2.423109],[1247356800000, 2.423109],[1247443200000, 2.423109],[1247529600000, 2.420513],[1247616000000, 2.449686],[1247702400000, 2.506167],[1247788800000, 2.516556],[1247875200000, 2.486671],[1247961600000, 2.486671],[1248048000000, 2.486671],[1248134400000, 2.534516],[1248220800000, 2.562113],[1248307200000, 2.555901],[1248393600000, 2.565572],[1248480000000, 2.604241],[1248566400000, 2.604241],[1248652800000, 2.604241],[1248739200000, 2.628050],[1248825600000, 2.619955],[1248912000000, 2.590174],[1248998400000, 2.589587]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });