$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1188604800000,3.31975],[1188691200000,3.31975],[1188777600000,3.31975],[1188864000000,3.31607],[1188950400000,3.3031],[1189036800000,3.30664],[1189123200000,3.30881],[1189209600000,3.31455],[1189296000000,3.31455],[1189382400000,3.31455],[1189468800000,3.31358],[1189555200000,3.3166],[1189641600000,3.3295],[1189728000000,3.34397],[1189814400000,3.33872],[1189900800000,3.33872],[1189987200000,3.33872],[1190073600000,3.33312],[1190160000000,3.33056],[1190246400000,3.34997],[1190332800000,3.35837],[1190419200000,3.3518],[1190505600000,3.3518],[1190592000000,3.3518],[1190678400000,3.36786],[1190764800000,3.36444],[1190851200000,null],[1190937600000,null],[1191024000000,3.39903],[1191110400000,3.39903]], 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, 3.319755],[1188604800000, 3.319755],[1188691200000, 3.319755],[1188777600000, 3.319755],[1188864000000, 3.316069],[1188950400000, 3.303102],[1189036800000, 3.306640],[1189123200000, 3.308813],[1189209600000, 3.314554],[1189296000000, 3.314554],[1189382400000, 3.314554],[1189468800000, 3.313582],[1189555200000, 3.316604],[1189641600000, 3.329499],[1189728000000, 3.343968],[1189814400000, 3.338724],[1189900800000, 3.338724],[1189987200000, 3.338724],[1190073600000, 3.333120],[1190160000000, 3.330560],[1190246400000, 3.349967],[1190332800000, 3.358368],[1190419200000, 3.351795],[1190505600000, 3.351795],[1190592000000, 3.351795],[1190678400000, 3.367860],[1190764800000, 3.364441],[1191024000000, 3.399029],[1191110400000, 3.399029]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });