$(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: [[1275350400000,11.6842],[1275436800000,11.5943],[1275523200000,11.6179],[1275609600000,11.6127],[1275696000000,11.5798],[1275782400000,11.5798],[1275868800000,11.5798],[1275955200000,11.5187],[1276041600000,11.5011],[1276128000000,11.5208],[1276214400000,11.5539],[1276300800000,11.5753],[1276387200000,11.5753],[1276473600000,11.5753],[1276560000000,11.6118],[1276646400000,11.6249],[1276732800000,11.6349],[1276819200000,11.6689],[1276905600000,11.6776],[1276992000000,11.6776],[1277078400000,11.6776],[1277164800000,11.6737],[1277251200000,11.633],[1277337600000,11.6598],[1277424000000,11.6833],[1277510400000,11.6673],[1277596800000,11.6673],[1277683200000,11.6673],[1277769600000,11.6673],[1277856000000,11.6639]], 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: [[1275350400000, 11.684199],[1275350400000, 11.684199],[1275436800000, 11.594303],[1275523200000, 11.617878],[1275609600000, 11.612723],[1275696000000, 11.579832],[1275782400000, 11.579832],[1275868800000, 11.579832],[1275955200000, 11.518740],[1276041600000, 11.501077],[1276128000000, 11.520806],[1276214400000, 11.553858],[1276300800000, 11.575261],[1276387200000, 11.575261],[1276473600000, 11.575261],[1276560000000, 11.611759],[1276646400000, 11.624904],[1276732800000, 11.634855],[1276819200000, 11.668898],[1276905600000, 11.677616],[1276992000000, 11.677616],[1277078400000, 11.677616],[1277164800000, 11.673691],[1277251200000, 11.633044],[1277337600000, 11.659837],[1277424000000, 11.683272],[1277510400000, 11.667272],[1277596800000, 11.667272],[1277683200000, 11.667272],[1277769600000, 11.667272],[1277856000000, 11.663928]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });