$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1341100800000,2.88839],[1341187200000,2.88839],[1341273600000,2.91501],[1341360000000,2.91085],[1341446400000,2.90737],[1341532800000,2.87636],[1341619200000,2.86501],[1341705600000,2.86519],[1341792000000,2.86519],[1341878400000,2.84575],[1341964800000,2.84389],[1342051200000,2.83811],[1342137600000,2.81913],[1342224000000,2.82075],[1342310400000,2.82075],[1342396800000,2.82075],[1342483200000,2.81889],[1342569600000,2.84297],[1342656000000,2.83209],[1342742400000,2.84436],[1342828800000,2.82422],[1342915200000,2.82422],[1343001600000,2.82422],[1343088000000,2.80223],[1343174400000,2.79852],[1343260800000,2.80894],[1343347200000,2.83811],[1343433600000,2.8513],[1343520000000,2.8513],[1343606400000,2.8513],[1343692800000,2.83487]], 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: [[1341100800000, 2.888392],[1341100800000, 2.888392],[1341187200000, 2.888392],[1341273600000, 2.915013],[1341360000000, 2.910846],[1341446400000, 2.907374],[1341532800000, 2.876356],[1341619200000, 2.865013],[1341705600000, 2.865192],[1341792000000, 2.865192],[1341878400000, 2.845747],[1341964800000, 2.843895],[1342051200000, 2.838108],[1342137600000, 2.819125],[1342224000000, 2.820746],[1342310400000, 2.820746],[1342396800000, 2.820746],[1342483200000, 2.818894],[1342569600000, 2.842969],[1342656000000, 2.832089],[1342742400000, 2.844358],[1342828800000, 2.824218],[1342915200000, 2.824218],[1343001600000, 2.824218],[1343088000000, 2.802226],[1343174400000, 2.798522],[1343260800000, 2.808939],[1343347200000, 2.838108],[1343433600000, 2.851303],[1343520000000, 2.851303],[1343606400000, 2.851303],[1343692800000, 2.834867]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });