$(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: [[1177977600000,3.3311],[1178064000000,3.3311],[1178150400000,3.3311],[1178236800000,3.31416],[1178323200000,3.32394],[1178409600000,3.32394],[1178496000000,3.32394],[1178582400000,3.33555],[1178668800000,3.33258],[1178755200000,3.33258],[1178841600000,3.32885],[1178928000000,3.32508],[1179014400000,3.32508],[1179100800000,3.32508],[1179187200000,3.33134],[1179273600000,3.32637],[1179360000000,3.3239],[1179446400000,3.31258],[1179532800000,3.3138],[1179619200000,3.3138],[1179705600000,3.3138],[1179792000000,3.30939],[1179878400000,3.29307],[1179964800000,3.30253],[1180051200000,3.30667],[1180137600000,3.30366],[1180224000000,3.30366],[1180310400000,3.30366],[1180396800000,3.30366],[1180483200000,3.30621],[1180569600000,3.29946]], 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: [[1177977600000, 3.331100],[1177977600000, 3.331100],[1178064000000, 3.331100],[1178150400000, 3.331100],[1178236800000, 3.314161],[1178323200000, 3.323936],[1178409600000, 3.323936],[1178496000000, 3.323936],[1178582400000, 3.335553],[1178668800000, 3.332582],[1178755200000, 3.332582],[1178841600000, 3.328851],[1178928000000, 3.325081],[1179014400000, 3.325081],[1179100800000, 3.325081],[1179187200000, 3.331343],[1179273600000, 3.326371],[1179360000000, 3.323896],[1179446400000, 3.312584],[1179532800000, 3.313801],[1179619200000, 3.313801],[1179705600000, 3.313801],[1179792000000, 3.309393],[1179878400000, 3.293074],[1179964800000, 3.302526],[1180051200000, 3.306671],[1180137600000, 3.303663],[1180224000000, 3.303663],[1180310400000, 3.303663],[1180396800000, 3.303663],[1180483200000, 3.306215],[1180569600000, 3.299464]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });