$(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: [[1193875200000,5.05],[1193961600000,5.05],[1194048000000,5.05],[1194134400000,5.05],[1194220800000,5.05],[1194307200000,5.05],[1194393600000,5.05],[1194480000000,5.05],[1194566400000,5.05],[1194652800000,5.05],[1194739200000,5.05],[1194825600000,5.05],[1194912000000,5.05],[1194998400000,5.05],[1195084800000,5.05],[1195171200000,5.05],[1195257600000,5.05],[1195344000000,5.05],[1195430400000,5.05],[1195516800000,5.05],[1195603200000,5.05],[1195689600000,5.05],[1195776000000,5.05],[1195862400000,5.05],[1195948800000,5.05],[1196035200000,5.05],[1196121600000,5.05],[1196208000000,5.05],[1196294400000,5.05],[1196380800000,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: [[1193875200000, 5.050000],[1193875200000, 5.050000],[1193961600000, 5.050000],[1194048000000, 5.050000],[1194134400000, 5.050000],[1194220800000, 5.050000],[1194307200000, 5.050000],[1194393600000, 5.050000],[1194480000000, 5.050000],[1194566400000, 5.050000],[1194652800000, 5.050000],[1194739200000, 5.050000],[1194825600000, 5.050000],[1194912000000, 5.050000],[1194998400000, 5.050000],[1195084800000, 5.050000],[1195171200000, 5.050000],[1195257600000, 5.050000],[1195344000000, 5.050000],[1195430400000, 5.050000],[1195516800000, 5.050000],[1195603200000, 5.050000],[1195689600000, 5.050000],[1195776000000, 5.050000],[1195862400000, 5.050000],[1195948800000, 5.050000],[1196035200000, 5.050000],[1196121600000, 5.050000],[1196208000000, 5.050000],[1196294400000, 5.050000],[1196380800000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });