$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1388534400000,12.3508],[1388620800000,12.3508],[1388707200000,12.3508],[1388793600000,12.274],[1388880000000,12.274],[1388966400000,12.274],[1389052800000,12.274],[1389139200000,12.274],[1389225600000,12.2477],[1389312000000,12.2551],[1389398400000,12.2502],[1389484800000,12.2502],[1389571200000,12.2502],[1389657600000,12.2908],[1389744000000,12.2907],[1389830400000,12.2641],[1389916800000,12.2505],[1390003200000,12.2574],[1390089600000,12.2574],[1390176000000,12.2574],[1390262400000,12.2574],[1390348800000,12.2266],[1390435200000,12.2525],[1390521600000,12.2834],[1390608000000,12.3336],[1390694400000,12.3336],[1390780800000,12.3336],[1390867200000,12.3087],[1390953600000,12.295],[1391040000000,12.305],[1391126400000,12.2792]], 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: [[1388534400000, 12.350849],[1388534400000, 12.350849],[1388620800000, 12.350849],[1388707200000, 12.350849],[1388793600000, 12.273961],[1388880000000, 12.273961],[1388966400000, 12.273961],[1389052800000, 12.273961],[1389139200000, 12.273961],[1389225600000, 12.247706],[1389312000000, 12.255124],[1389398400000, 12.250165],[1389484800000, 12.250165],[1389571200000, 12.250165],[1389657600000, 12.290834],[1389744000000, 12.290702],[1389830400000, 12.264149],[1389916800000, 12.250503],[1390003200000, 12.257398],[1390089600000, 12.257398],[1390176000000, 12.257398],[1390262400000, 12.257398],[1390348800000, 12.226611],[1390435200000, 12.252475],[1390521600000, 12.283392],[1390608000000, 12.333620],[1390694400000, 12.333620],[1390780800000, 12.333620],[1390867200000, 12.308721],[1390953600000, 12.295013],[1391040000000, 12.305007],[1391126400000, 12.279241]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });