$(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: [[1270080000000,2.76216],[1270166400000,2.77534],[1270252800000,2.77534],[1270339200000,2.77534],[1270425600000,2.77534],[1270512000000,2.77534],[1270598400000,2.76835],[1270684800000,2.75391],[1270771200000,2.7375],[1270857600000,2.73635],[1270944000000,2.73635],[1271030400000,2.73635],[1271116800000,2.78499],[1271203200000,2.77282],[1271289600000,2.79947],[1271376000000,2.78224],[1271462400000,2.76891],[1271548800000,2.76891],[1271635200000,2.76891],[1271721600000,2.72759],[1271808000000,2.75043],[1271894400000,2.73795],[1271980800000,2.72515],[1272067200000,2.71747],[1272153600000,2.71747],[1272240000000,2.71747],[1272326400000,2.72207],[1272412800000,2.68946],[1272499200000,2.67019],[1272585600000,2.68347]], 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: [[1270080000000, 2.762162],[1270080000000, 2.762162],[1270166400000, 2.775337],[1270252800000, 2.775337],[1270339200000, 2.775337],[1270425600000, 2.775337],[1270512000000, 2.775337],[1270598400000, 2.768346],[1270684800000, 2.753910],[1270771200000, 2.737495],[1270857600000, 2.736350],[1270944000000, 2.736350],[1271030400000, 2.736350],[1271116800000, 2.784986],[1271203200000, 2.772817],[1271289600000, 2.799465],[1271376000000, 2.782237],[1271462400000, 2.768905],[1271548800000, 2.768905],[1271635200000, 2.768905],[1271721600000, 2.727593],[1271808000000, 2.750435],[1271894400000, 2.737954],[1271980800000, 2.725151],[1272067200000, 2.717470],[1272153600000, 2.717470],[1272240000000, 2.717470],[1272326400000, 2.722068],[1272412800000, 2.689455],[1272499200000, 2.670191],[1272585600000, 2.683466]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });