$(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: [[1231200000000,6.34788],[1231286400000,6.47674],[1231372800000,6.47674],[1231459200000,6.41525],[1231545600000,6.50975],[1231632000000,6.50975],[1231718400000,6.50975],[1231804800000,6.43741],[1231891200000,6.25719],[1231977600000,6.28296],[1232064000000,6.1537],[1232150400000,6.21754],[1232236800000,null],[1232323200000,6.21754],[1232409600000,6.15458],[1232496000000,6.08415],[1232582400000,6.0818],[1232668800000,6.09912],[1232755200000,6.12429],[1232841600000,6.12429],[1232928000000,6.12429],[1233014400000,6.30503],[1233100800000,6.26558],[1233187200000,6.3178],[1233273600000,6.32429],[1233360000000,6.20844]], 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: [[1231200000000, 6.347885],[1231200000000, 6.347885],[1231286400000, 6.476744],[1231372800000, 6.476744],[1231459200000, 6.415253],[1231545600000, 6.509749],[1231632000000, 6.509749],[1231718400000, 6.509749],[1231804800000, 6.437413],[1231891200000, 6.257194],[1231977600000, 6.282960],[1232064000000, 6.153698],[1232150400000, 6.217537],[1232323200000, 6.217537],[1232409600000, 6.154584],[1232496000000, 6.084148],[1232582400000, 6.081799],[1232668800000, 6.099122],[1232755200000, 6.124293],[1232841600000, 6.124293],[1232928000000, 6.124293],[1233014400000, 6.305030],[1233100800000, 6.265584],[1233187200000, 6.317802],[1233273600000, 6.324294],[1233360000000, 6.208443]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });