$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1168041600000,5.05],[1168128000000,5.05],[1168214400000,5.05],[1168300800000,5.05],[1168387200000,5.05],[1168473600000,5.05],[1168560000000,5.05],[1168646400000,5.05],[1168732800000,5.05],[1168819200000,5.05],[1168905600000,5.05],[1168992000000,5.05],[1169078400000,5.05],[1169164800000,5.05],[1169251200000,5.05],[1169337600000,5.05],[1169424000000,5.05],[1169510400000,5.05],[1169596800000,5.05],[1169683200000,5.05],[1169769600000,5.05],[1169856000000,5.05],[1169942400000,5.05],[1170028800000,5.05],[1170115200000,5.05],[1170201600000,5.05]], 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: [[1168041600000, 5.050000],[1168041600000, 5.050000],[1168128000000, 5.050000],[1168214400000, 5.050000],[1168300800000, 5.050000],[1168387200000, 5.050000],[1168473600000, 5.050000],[1168560000000, 5.050000],[1168646400000, 5.050000],[1168732800000, 5.050000],[1168819200000, 5.050000],[1168905600000, 5.050000],[1168992000000, 5.050000],[1169078400000, 5.050000],[1169164800000, 5.050000],[1169251200000, 5.050000],[1169337600000, 5.050000],[1169424000000, 5.050000],[1169510400000, 5.050000],[1169596800000, 5.050000],[1169683200000, 5.050000],[1169769600000, 5.050000],[1169856000000, 5.050000],[1169942400000, 5.050000],[1170028800000, 5.050000],[1170115200000, 5.050000],[1170201600000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });