$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[999302400000,7.77986],[999388800000,7.77986],[999475200000,7.77986],[999561600000,7.7686],[999648000000,7.73067],[999734400000,7.72207],[999820800000,7.73932],[999907200000,7.75864],[999993600000,7.75864],[1000080000000,7.75864],[1000166400000,7.82964],[1000252800000,7.77885],[1000339200000,7.82977],[1000425600000,7.84559],[1000512000000,7.88359],[1000598400000,7.88359],[1000684800000,7.88359],[1000771200000,7.85439],[1000857600000,7.84337],[1000944000000,7.81945],[1001030400000,7.82224],[1001116800000,7.82224],[1001203200000,7.82224],[1001289600000,7.79467],[1001376000000,7.80534],[1001462400000,7.86128],[1001548800000,7.85963],[1001635200000,7.82609],[1001721600000,7.82609],[1001808000000,7.82609]], 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: [[999302400000, 7.779860],[999302400000, 7.779860],[999388800000, 7.779860],[999475200000, 7.779860],[999561600000, 7.768600],[999648000000, 7.730670],[999734400000, 7.722070],[999820800000, 7.739320],[999907200000, 7.758640],[999993600000, 7.758640],[1000080000000, 7.758640],[1000166400000, 7.829640],[1000252800000, 7.778850],[1000339200000, 7.829770],[1000425600000, 7.845590],[1000512000000, 7.883590],[1000598400000, 7.883590],[1000684800000, 7.883590],[1000771200000, 7.854390],[1000857600000, 7.843370],[1000944000000, 7.819450],[1001030400000, 7.822240],[1001116800000, 7.822240],[1001203200000, 7.822240],[1001289600000, 7.794670],[1001376000000, 7.805340],[1001462400000, 7.861280],[1001548800000, 7.859630],[1001635200000, 7.826090],[1001721600000, 7.826090],[1001808000000, 7.826090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });