$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1231200000000,2.70175],[1231286400000,2.70175],[1231372800000,2.70175],[1231459200000,2.70175],[1231545600000,2.70175],[1231632000000,2.70175],[1231718400000,2.70175],[1231804800000,2.70175],[1231891200000,2.70175],[1231977600000,2.70175],[1232064000000,2.70175],[1232150400000,2.70175],[1232236800000,null],[1232323200000,2.70175],[1232409600000,2.70175],[1232496000000,2.70175],[1232582400000,2.70175],[1232668800000,2.70175],[1232755200000,2.70175],[1232841600000,2.70175],[1232928000000,2.70175],[1233014400000,2.70175],[1233100800000,2.70175],[1233187200000,2.70175],[1233273600000,2.70175],[1233360000000,2.70175]], 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, 2.701754],[1231200000000, 2.701754],[1231286400000, 2.701754],[1231372800000, 2.701754],[1231459200000, 2.701754],[1231545600000, 2.701754],[1231632000000, 2.701754],[1231718400000, 2.701754],[1231804800000, 2.701754],[1231891200000, 2.701754],[1231977600000, 2.701754],[1232064000000, 2.701754],[1232150400000, 2.701754],[1232323200000, 2.701754],[1232409600000, 2.701754],[1232496000000, 2.701754],[1232582400000, 2.701754],[1232668800000, 2.701754],[1232755200000, 2.701754],[1232841600000, 2.701754],[1232928000000, 2.701754],[1233014400000, 2.701754],[1233100800000, 2.701754],[1233187200000, 2.701754],[1233273600000, 2.701754],[1233360000000, 2.701754]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });