$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1188604800000,4.20705],[1188691200000,4.20705],[1188777600000,4.20705],[1188864000000,4.17753],[1188950400000,4.16488],[1189036800000,4.16835],[1189123200000,4.20213],[1189209600000,4.20787],[1189296000000,4.20787],[1189382400000,4.20787],[1189468800000,4.25382],[1189555200000,4.25652],[1189641600000,4.26984],[1189728000000,4.27535],[1189814400000,4.25153],[1189900800000,4.25153],[1189987200000,4.25153],[1190073600000,4.25804],[1190160000000,4.24955],[1190246400000,4.27901],[1190332800000,4.3042],[1190419200000,4.29542],[1190505600000,4.29542],[1190592000000,4.29542],[1190678400000,4.30899],[1190764800000,4.32043],[1190851200000,null],[1190937600000,null],[1191024000000,4.31323],[1191110400000,4.31323]], 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, 4.207054],[1188604800000, 4.207054],[1188691200000, 4.207054],[1188777600000, 4.207054],[1188864000000, 4.177535],[1188950400000, 4.164885],[1189036800000, 4.168351],[1189123200000, 4.202134],[1189209600000, 4.207872],[1189296000000, 4.207872],[1189382400000, 4.207872],[1189468800000, 4.253816],[1189555200000, 4.256521],[1189641600000, 4.269836],[1189728000000, 4.275349],[1189814400000, 4.251534],[1189900800000, 4.251534],[1189987200000, 4.251534],[1190073600000, 4.258042],[1190160000000, 4.249551],[1190246400000, 4.279012],[1190332800000, 4.304204],[1190419200000, 4.295420],[1190505600000, 4.295420],[1190592000000, 4.295420],[1190678400000, 4.308987],[1190764800000, 4.320433],[1191024000000, 4.313231],[1191110400000, 4.313231]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });