$(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: [[1188604800000,7.73977],[1188691200000,7.73977],[1188777600000,7.73977],[1188864000000,7.73977],[1188950400000,7.7267],[1189036800000,7.7257],[1189123200000,7.74933],[1189209600000,7.75349],[1189296000000,7.75349],[1189382400000,7.75349],[1189468800000,7.78988],[1189555200000,7.7984],[1189641600000,7.80816],[1189728000000,7.79948],[1189814400000,7.79154],[1189900800000,7.79154],[1189987200000,7.79154],[1190073600000,7.78446],[1190160000000,7.77736],[1190246400000,7.79495],[1190332800000,7.8167],[1190419200000,7.82448],[1190505600000,7.82448],[1190592000000,7.82448],[1190678400000,7.84729],[1190764800000,7.83874],[1190851200000,null],[1190937600000,null],[1191024000000,7.86109],[1191110400000,7.86109]], 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: [[1188604800000, 7.739772],[1188604800000, 7.739772],[1188691200000, 7.739772],[1188777600000, 7.739772],[1188864000000, 7.739772],[1188950400000, 7.726698],[1189036800000, 7.725705],[1189123200000, 7.749333],[1189209600000, 7.753485],[1189296000000, 7.753485],[1189382400000, 7.753485],[1189468800000, 7.789880],[1189555200000, 7.798397],[1189641600000, 7.808163],[1189728000000, 7.799481],[1189814400000, 7.791539],[1189900800000, 7.791539],[1189987200000, 7.791539],[1190073600000, 7.784464],[1190160000000, 7.777355],[1190246400000, 7.794954],[1190332800000, 7.816696],[1190419200000, 7.824484],[1190505600000, 7.824484],[1190592000000, 7.824484],[1190678400000, 7.847293],[1190764800000, 7.838742],[1191024000000, 7.861085],[1191110400000, 7.861085]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });