$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1288569600000,7.99699],[1288656000000,8.01555],[1288742400000,8.06366],[1288828800000,8.06531],[1288915200000,8.18539],[1289001600000,8.22904],[1289088000000,8.22904],[1289174400000,8.22904],[1289260800000,8.20072],[1289347200000,8.22017],[1289433600000,8.1272],[1289520000000,8.16997],[1289606400000,8.13986],[1289692800000,8.13986],[1289779200000,8.13986],[1289865600000,8.04967],[1289952000000,8.05644],[1290038400000,7.97022],[1290124800000,8.03902],[1290211200000,7.97678],[1290297600000,7.97678],[1290384000000,7.97678],[1290470400000,8.02116],[1290556800000,8.03173],[1290643200000,7.97637],[1290729600000,7.93572],[1290816000000,7.92183],[1290902400000,7.92183],[1290988800000,7.92183],[1291075200000,7.91392]], 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: [[1288569600000, 7.996989],[1288569600000, 7.996989],[1288656000000, 8.015549],[1288742400000, 8.063659],[1288828800000, 8.065306],[1288915200000, 8.185391],[1289001600000, 8.229044],[1289088000000, 8.229044],[1289174400000, 8.229044],[1289260800000, 8.200723],[1289347200000, 8.220172],[1289433600000, 8.127197],[1289520000000, 8.169974],[1289606400000, 8.139861],[1289692800000, 8.139861],[1289779200000, 8.139861],[1289865600000, 8.049670],[1289952000000, 8.056440],[1290038400000, 7.970217],[1290124800000, 8.039020],[1290211200000, 7.976785],[1290297600000, 7.976785],[1290384000000, 7.976785],[1290470400000, 8.021162],[1290556800000, 8.031729],[1290643200000, 7.976372],[1290729600000, 7.935721],[1290816000000, 7.921827],[1290902400000, 7.921827],[1290988800000, 7.921827],[1291075200000, 7.913920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });