$(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: [[1196467200000,5.05],[1196553600000,5.05],[1196640000000,5.05],[1196726400000,5.05],[1196812800000,5.05],[1196899200000,5.05],[1196985600000,5.05],[1197072000000,5.05],[1197158400000,5.05],[1197244800000,5.05],[1197331200000,5.05],[1197417600000,5.05],[1197504000000,5.05],[1197590400000,5.05],[1197676800000,5.05],[1197763200000,5.05],[1197849600000,5.05],[1197936000000,5.05],[1198022400000,5.05],[1198108800000,5.05],[1198195200000,5.05],[1198281600000,5.05],[1198368000000,5.05],[1198454400000,5.05],[1198540800000,5.05],[1198627200000,5.05],[1198713600000,5.05],[1198800000000,5.05],[1198886400000,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: [[1196467200000, 5.050000],[1196467200000, 5.050000],[1196553600000, 5.050000],[1196640000000, 5.050000],[1196726400000, 5.050000],[1196812800000, 5.050000],[1196899200000, 5.050000],[1196985600000, 5.050000],[1197072000000, 5.050000],[1197158400000, 5.050000],[1197244800000, 5.050000],[1197331200000, 5.050000],[1197417600000, 5.050000],[1197504000000, 5.050000],[1197590400000, 5.050000],[1197676800000, 5.050000],[1197763200000, 5.050000],[1197849600000, 5.050000],[1197936000000, 5.050000],[1198022400000, 5.050000],[1198108800000, 5.050000],[1198195200000, 5.050000],[1198281600000, 5.050000],[1198368000000, 5.050000],[1198454400000, 5.050000],[1198540800000, 5.050000],[1198627200000, 5.050000],[1198713600000, 5.050000],[1198800000000, 5.050000],[1198886400000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });