$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1231200000000,11.6995],[1231286400000,11.5959],[1231372800000,11.5959],[1231459200000,11.7441],[1231545600000,11.8215],[1231632000000,11.8215],[1231718400000,11.8215],[1231804800000,11.7167],[1231891200000,11.6661],[1231977600000,11.6397],[1232064000000,11.635],[1232150400000,11.6615],[1232236800000,null],[1232323200000,11.6615],[1232409600000,11.6615],[1232496000000,11.6615],[1232582400000,11.4796],[1232668800000,11.5218],[1232755200000,11.4564],[1232841600000,11.4564],[1232928000000,11.4564],[1233014400000,11.5048],[1233100800000,11.5957],[1233187200000,11.6365],[1233273600000,11.5864],[1233360000000,11.4878]], 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, 11.699478],[1231200000000, 11.699478],[1231286400000, 11.595879],[1231372800000, 11.595879],[1231459200000, 11.744142],[1231545600000, 11.821492],[1231632000000, 11.821492],[1231718400000, 11.821492],[1231804800000, 11.716693],[1231891200000, 11.666066],[1231977600000, 11.639701],[1232064000000, 11.634970],[1232150400000, 11.661507],[1232323200000, 11.661507],[1232409600000, 11.661507],[1232496000000, 11.661507],[1232582400000, 11.479584],[1232668800000, 11.521772],[1232755200000, 11.456441],[1232841600000, 11.456441],[1232928000000, 11.456441],[1233014400000, 11.504815],[1233100800000, 11.595704],[1233187200000, 11.636482],[1233273600000, 11.586422],[1233360000000, 11.487805]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });