$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1188604800000,0.0272578],[1188691200000,0.0272578],[1188777600000,0.0272578],[1188864000000,0.0269999],[1188950400000,0.0268232],[1189036800000,0.0268307],[1189123200000,0.0270075],[1189209600000,0.0271799],[1189296000000,0.0271799],[1189382400000,0.0271799],[1189468800000,0.0271217],[1189555200000,0.0274221],[1189641600000,0.0275312],[1189728000000,0.0276364],[1189814400000,0.0274536],[1189900800000,0.0274536],[1189987200000,0.0274536],[1190073600000,0.0274593],[1190160000000,0.0275171],[1190246400000,0.0279832],[1190332800000,0.0282446],[1190419200000,0.0283858],[1190505600000,0.0283858],[1190592000000,0.0283858],[1190678400000,0.0285014],[1190764800000,0.0284214],[1190851200000,null],[1190937600000,null],[1191024000000,0.0285627],[1191110400000,0.0285627]], 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, 0.027258],[1188604800000, 0.027258],[1188691200000, 0.027258],[1188777600000, 0.027258],[1188864000000, 0.027000],[1188950400000, 0.026823],[1189036800000, 0.026831],[1189123200000, 0.027008],[1189209600000, 0.027180],[1189296000000, 0.027180],[1189382400000, 0.027180],[1189468800000, 0.027122],[1189555200000, 0.027422],[1189641600000, 0.027531],[1189728000000, 0.027636],[1189814400000, 0.027454],[1189900800000, 0.027454],[1189987200000, 0.027454],[1190073600000, 0.027459],[1190160000000, 0.027517],[1190246400000, 0.027983],[1190332800000, 0.028245],[1190419200000, 0.028386],[1190505600000, 0.028386],[1190592000000, 0.028386],[1190678400000, 0.028501],[1190764800000, 0.028421],[1191024000000, 0.028563],[1191110400000, 0.028563]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });