$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1231200000000,14.7923],[1231286400000,14.52],[1231372800000,14.52],[1231459200000,14.8325],[1231545600000,14.9118],[1231632000000,14.9118],[1231718400000,14.9118],[1231804800000,14.6123],[1231891200000,14.4827],[1231977600000,14.3875],[1232064000000,14.3056],[1232150400000,14.5161],[1232236800000,null],[1232323200000,14.5161],[1232409600000,14.4281],[1232496000000,14.1563],[1232582400000,14.1444],[1232668800000,14.2134],[1232755200000,13.9906],[1232841600000,13.9906],[1232928000000,13.9906],[1233014400000,14.2078],[1233100800000,14.4296],[1233187200000,14.5465],[1233273600000,14.4469],[1233360000000,14.1137]], 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, 14.792277],[1231200000000, 14.792277],[1231286400000, 14.520000],[1231372800000, 14.520000],[1231459200000, 14.832494],[1231545600000, 14.911803],[1231632000000, 14.911803],[1231718400000, 14.911803],[1231804800000, 14.612326],[1231891200000, 14.482683],[1231977600000, 14.387532],[1232064000000, 14.305623],[1232150400000, 14.516124],[1232323200000, 14.516124],[1232409600000, 14.428060],[1232496000000, 14.156263],[1232582400000, 14.144422],[1232668800000, 14.213364],[1232755200000, 13.990557],[1232841600000, 13.990557],[1232928000000, 13.990557],[1233014400000, 14.207813],[1233100800000, 14.429559],[1233187200000, 14.546517],[1233273600000, 14.446866],[1233360000000, 14.113730]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });