$(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: [[1351728000000,2.50913],[1351814400000,2.51294],[1351900800000,2.49976],[1351987200000,2.49976],[1352073600000,2.49976],[1352160000000,2.47724],[1352246400000,2.48266],[1352332800000,2.47693],[1352419200000,2.44444],[1352505600000,2.43235],[1352592000000,2.43235],[1352678400000,2.43235],[1352764800000,2.44068],[1352851200000,2.4286],[1352937600000,2.43492],[1353024000000,2.45093],[1353110400000,2.44793],[1353196800000,2.44793],[1353283200000,2.44793],[1353369600000,2.46048],[1353456000000,2.48031],[1353542400000,2.48128],[1353628800000,2.50788],[1353715200000,2.50489],[1353801600000,2.50489],[1353888000000,2.50489],[1353974400000,2.52538],[1354060800000,2.53263],[1354147200000,2.50847],[1354233600000,2.53518]], 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: [[1351728000000, 2.509134],[1351728000000, 2.509134],[1351814400000, 2.512943],[1351900800000, 2.499758],[1351987200000, 2.499758],[1352073600000, 2.499758],[1352160000000, 2.477237],[1352246400000, 2.482660],[1352332800000, 2.476934],[1352419200000, 2.444443],[1352505600000, 2.432352],[1352592000000, 2.432352],[1352678400000, 2.432352],[1352764800000, 2.440677],[1352851200000, 2.428602],[1352937600000, 2.434923],[1353024000000, 2.450930],[1353110400000, 2.447934],[1353196800000, 2.447934],[1353283200000, 2.447934],[1353369600000, 2.460482],[1353456000000, 2.480312],[1353542400000, 2.481281],[1353628800000, 2.507879],[1353715200000, 2.504895],[1353801600000, 2.504895],[1353888000000, 2.504895],[1353974400000, 2.525377],[1354060800000, 2.532631],[1354147200000, 2.508466],[1354233600000, 2.535175]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });