$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1193875200000,0.0290193],[1193961600000,0.0289078],[1194048000000,0.0289775],[1194134400000,0.0289775],[1194220800000,0.0289775],[1194307200000,0.0289279],[1194393600000,0.0291263],[1194480000000,0.0293117],[1194566400000,0.0292347],[1194652800000,0.0292259],[1194739200000,0.0292259],[1194825600000,0.0292259],[1194912000000,0.0289289],[1194998400000,0.0290106],[1195084800000,0.0292471],[1195171200000,0.0290571],[1195257600000,0.0291095],[1195344000000,0.0291095],[1195430400000,0.0291095],[1195516800000,0.0291086],[1195603200000,0.0292801],[1195689600000,0.0291944],[1195776000000,0.0291796],[1195862400000,0.0290643],[1195948800000,0.0290643],[1196035200000,0.0290643],[1196121600000,0.0291815],[1196208000000,0.0290373],[1196294400000,0.029174],[1196380800000,0.0292444]], 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, 0.029019],[1193875200000, 0.029019],[1193961600000, 0.028908],[1194048000000, 0.028977],[1194134400000, 0.028977],[1194220800000, 0.028977],[1194307200000, 0.028928],[1194393600000, 0.029126],[1194480000000, 0.029312],[1194566400000, 0.029235],[1194652800000, 0.029226],[1194739200000, 0.029226],[1194825600000, 0.029226],[1194912000000, 0.028929],[1194998400000, 0.029011],[1195084800000, 0.029247],[1195171200000, 0.029057],[1195257600000, 0.029109],[1195344000000, 0.029109],[1195430400000, 0.029109],[1195516800000, 0.029109],[1195603200000, 0.029280],[1195689600000, 0.029194],[1195776000000, 0.029180],[1195862400000, 0.029064],[1195948800000, 0.029064],[1196035200000, 0.029064],[1196121600000, 0.029181],[1196208000000, 0.029037],[1196294400000, 0.029174],[1196380800000, 0.029244]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });