$(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: [[1117584000000,3.02995],[1117670400000,3.01657],[1117756800000,3.02167],[1117843200000,3.03132],[1117929600000,3.03132],[1118016000000,3.03132],[1118102400000,3.04018],[1118188800000,3.04564],[1118275200000,3.04456],[1118361600000,3.03976],[1118448000000,3.03444],[1118534400000,3.03444],[1118620800000,3.03444],[1118707200000,3.01148],[1118793600000,3.01899],[1118880000000,3.01606],[1118966400000,null],[1119052800000,3.02465],[1119139200000,3.02465],[1119225600000,3.02465],[1119312000000,null],[1119398400000,3.01748],[1119484800000,3.02297],[1119571200000,3.02758],[1119657600000,3.02125],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,2.99955]], 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: [[1117584000000, 3.029951],[1117584000000, 3.029951],[1117670400000, 3.016570],[1117756800000, 3.021665],[1117843200000, 3.031323],[1117929600000, 3.031323],[1118016000000, 3.031323],[1118102400000, 3.040184],[1118188800000, 3.045644],[1118275200000, 3.044562],[1118361600000, 3.039756],[1118448000000, 3.034439],[1118534400000, 3.034439],[1118620800000, 3.034439],[1118707200000, 3.011479],[1118793600000, 3.018989],[1118880000000, 3.016057],[1119052800000, 3.024654],[1119139200000, 3.024654],[1119225600000, 3.024654],[1119398400000, 3.017478],[1119484800000, 3.022966],[1119571200000, 3.027580],[1119657600000, 3.021247],[1120089600000, 2.999555]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });