$(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: [[1298937600000,2.77558],[1299024000000,2.76232],[1299110400000,2.75071],[1299196800000,2.76019],[1299283200000,2.77569],[1299369600000,2.77569],[1299456000000,2.77569],[1299542400000,2.77569],[1299628800000,2.77569],[1299715200000,2.77682],[1299801600000,2.74682],[1299888000000,2.7044],[1299974400000,2.7044],[1300060800000,2.7044],[1300147200000,2.74535],[1300233600000,2.71656],[1300320000000,2.72801],[1300406400000,2.72729],[1300492800000,2.76685],[1300579200000,2.76685],[1300665600000,2.76685],[1300752000000,2.78983],[1300838400000,2.79996],[1300924800000,2.78127],[1301011200000,2.79689],[1301097600000,2.80223],[1301184000000,2.80223],[1301270400000,2.80223],[1301356800000,2.79188],[1301443200000,2.80229],[1301529600000,2.81235]], 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: [[1298937600000, 2.775580],[1298937600000, 2.775580],[1299024000000, 2.762320],[1299110400000, 2.750710],[1299196800000, 2.760193],[1299283200000, 2.775694],[1299369600000, 2.775694],[1299456000000, 2.775694],[1299542400000, 2.775694],[1299628800000, 2.775694],[1299715200000, 2.776816],[1299801600000, 2.746819],[1299888000000, 2.704398],[1299974400000, 2.704398],[1300060800000, 2.704398],[1300147200000, 2.745350],[1300233600000, 2.716555],[1300320000000, 2.728009],[1300406400000, 2.727295],[1300492800000, 2.766852],[1300579200000, 2.766852],[1300665600000, 2.766852],[1300752000000, 2.789832],[1300838400000, 2.799959],[1300924800000, 2.781269],[1301011200000, 2.796885],[1301097600000, 2.802230],[1301184000000, 2.802230],[1301270400000, 2.802230],[1301356800000, 2.791879],[1301443200000, 2.802287],[1301529600000, 2.812347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });