$(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: [[1104883200000,3.0352],[1104969600000,3.21477],[1105056000000,3.21308],[1105142400000,null],[1105228800000,3.21308],[1105315200000,null],[1105401600000,3.22203],[1105488000000,3.22872],[1105574400000,3.23493],[1105660800000,3.2561],[1105747200000,3.23826],[1105833600000,3.23826],[1105920000000,3.23826],[1106006400000,3.24646],[1106092800000,3.24217],[1106179200000,3.2387],[1106265600000,3.2387],[1106352000000,3.23462],[1106438400000,3.23462],[1106524800000,3.23462],[1106611200000,null],[1106697600000,3.23785],[1106784000000,3.24473],[1106870400000,3.2432],[1106956800000,3.24355],[1107043200000,3.24355],[1107129600000,3.24054]], 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: [[1104883200000, 3.035197],[1104883200000, 3.035197],[1104969600000, 3.214772],[1105056000000, 3.213076],[1105228800000, 3.213076],[1105401600000, 3.222027],[1105488000000, 3.228720],[1105574400000, 3.234928],[1105660800000, 3.256102],[1105747200000, 3.238258],[1105833600000, 3.238258],[1105920000000, 3.238258],[1106006400000, 3.246463],[1106092800000, 3.242171],[1106179200000, 3.238702],[1106265600000, 3.238702],[1106352000000, 3.234621],[1106438400000, 3.234621],[1106524800000, 3.234621],[1106697600000, 3.237845],[1106784000000, 3.244735],[1106870400000, 3.243201],[1106956800000, 3.243553],[1107043200000, 3.243553],[1107129600000, 3.240542]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });