$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1285891200000,12.5537],[1285977600000,12.514],[1286064000000,12.514],[1286150400000,12.514],[1286236800000,12.5237],[1286323200000,12.5763],[1286409600000,12.5601],[1286496000000,12.6338],[1286582400000,12.5405],[1286668800000,12.5405],[1286755200000,12.5405],[1286841600000,12.6037],[1286928000000,12.5249],[1287014400000,12.5291],[1287100800000,12.6845],[1287187200000,12.6986],[1287273600000,12.6986],[1287360000000,12.6986],[1287446400000,12.5688],[1287532800000,12.4514],[1287619200000,12.4334],[1287705600000,12.4566],[1287792000000,12.4245],[1287878400000,12.4245],[1287964800000,12.4245],[1288051200000,12.4371],[1288137600000,12.5525],[1288224000000,12.5183],[1288310400000,12.5955],[1288396800000,12.6206],[1288483200000,12.6206]], 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: [[1285891200000, 12.553716],[1285891200000, 12.553716],[1285977600000, 12.513980],[1286064000000, 12.513980],[1286150400000, 12.513980],[1286236800000, 12.523704],[1286323200000, 12.576257],[1286409600000, 12.560116],[1286496000000, 12.633774],[1286582400000, 12.540504],[1286668800000, 12.540504],[1286755200000, 12.540504],[1286841600000, 12.603746],[1286928000000, 12.524914],[1287014400000, 12.529095],[1287100800000, 12.684485],[1287187200000, 12.698564],[1287273600000, 12.698564],[1287360000000, 12.698564],[1287446400000, 12.568834],[1287532800000, 12.451381],[1287619200000, 12.433411],[1287705600000, 12.456637],[1287792000000, 12.424549],[1287878400000, 12.424549],[1287964800000, 12.424549],[1288051200000, 12.437136],[1288137600000, 12.552452],[1288224000000, 12.518349],[1288310400000, 12.595478],[1288396800000, 12.620622],[1288483200000, 12.620622]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });