$(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: [[1225497600000,3.90151],[1225584000000,3.90151],[1225670400000,3.90151],[1225756800000,3.9311],[1225843200000,3.95502],[1225929600000,3.93624],[1226016000000,3.90714],[1226102400000,3.87492],[1226188800000,3.87492],[1226275200000,3.87492],[1226361600000,3.88788],[1226448000000,3.85487],[1226534400000,3.83395],[1226620800000,3.82336],[1226707200000,3.81001],[1226793600000,3.81001],[1226880000000,3.81001],[1226966400000,3.8043],[1227052800000,3.85605],[1227139200000,3.92368],[1227225600000,3.92349],[1227312000000,4.03464],[1227398400000,4.03464],[1227484800000,4.03464],[1227571200000,4.14834],[1227657600000,4.35395],[1227744000000,4.45925],[1227830400000,4.45973],[1227916800000,4.55187],[1228003200000,4.55187]], 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: [[1225497600000, 3.901507],[1225497600000, 3.901507],[1225584000000, 3.901507],[1225670400000, 3.901507],[1225756800000, 3.931103],[1225843200000, 3.955023],[1225929600000, 3.936245],[1226016000000, 3.907136],[1226102400000, 3.874916],[1226188800000, 3.874916],[1226275200000, 3.874916],[1226361600000, 3.887881],[1226448000000, 3.854868],[1226534400000, 3.833954],[1226620800000, 3.823362],[1226707200000, 3.810009],[1226793600000, 3.810009],[1226880000000, 3.810009],[1226966400000, 3.804303],[1227052800000, 3.856046],[1227139200000, 3.923682],[1227225600000, 3.923495],[1227312000000, 4.034640],[1227398400000, 4.034640],[1227484800000, 4.034640],[1227571200000, 4.148342],[1227657600000, 4.353948],[1227744000000, 4.459255],[1227830400000, 4.459731],[1227916800000, 4.551871],[1228003200000, 4.551871]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });