$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1433116800000,16.9451],[1433203200000,16.9451],[1433289600000,16.8594],[1433376000000,16.8794],[1433462400000,16.8793],[1433548800000,16.82],[1433635200000,16.82],[1433721600000,16.82],[1433808000000,16.9714],[1433894400000,17.1455],[1433980800000,17.2878],[1434067200000,17.0663],[1434153600000,17.1168],[1434240000000,17.1168],[1434326400000,17.1168],[1434412800000,17.379],[1434499200000,17.9431],[1434585600000,17.5843],[1434672000000,17.5408],[1434758400000,17.6314],[1434844800000,17.6314],[1434931200000,17.6314],[1435017600000,17.7942],[1435104000000,17.4448],[1435190400000,17.2166],[1435276800000,17.1151],[1435363200000,16.9962],[1435449600000,16.9962],[1435536000000,16.9962],[1435622400000,16.9962]], 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: [[1433116800000, 16.945144],[1433116800000, 16.945144],[1433203200000, 16.945144],[1433289600000, 16.859406],[1433376000000, 16.879357],[1433462400000, 16.879281],[1433548800000, 16.820045],[1433635200000, 16.820045],[1433721600000, 16.820045],[1433808000000, 16.971358],[1433894400000, 17.145471],[1433980800000, 17.287762],[1434067200000, 17.066322],[1434153600000, 17.116782],[1434240000000, 17.116782],[1434326400000, 17.116782],[1434412800000, 17.379036],[1434499200000, 17.943140],[1434585600000, 17.584288],[1434672000000, 17.540757],[1434758400000, 17.631352],[1434844800000, 17.631352],[1434931200000, 17.631352],[1435017600000, 17.794214],[1435104000000, 17.444786],[1435190400000, 17.216642],[1435276800000, 17.115085],[1435363200000, 16.996176],[1435449600000, 16.996176],[1435536000000, 16.996176],[1435622400000, 16.996176]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });