$(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: [[1162339200000,5.05],[1162425600000,5.05],[1162512000000,5.05],[1162598400000,5.05],[1162684800000,5.05],[1162771200000,5.05],[1162857600000,5.05],[1162944000000,5.05],[1163030400000,5.05],[1163116800000,5.05],[1163203200000,5.05],[1163289600000,5.05],[1163376000000,5.05],[1163462400000,5.05],[1163548800000,5.05],[1163635200000,5.05],[1163721600000,5.05],[1163808000000,5.05],[1163894400000,5.05],[1163980800000,5.05],[1164067200000,5.05],[1164153600000,5.05],[1164240000000,5.05],[1164326400000,5.05],[1164412800000,5.05],[1164499200000,5.05],[1164585600000,5.05],[1164672000000,5.05],[1164758400000,5.05],[1164844800000,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: [[1162339200000, 5.050000],[1162339200000, 5.050000],[1162425600000, 5.050000],[1162512000000, 5.050000],[1162598400000, 5.050000],[1162684800000, 5.050000],[1162771200000, 5.050000],[1162857600000, 5.050000],[1162944000000, 5.050000],[1163030400000, 5.050000],[1163116800000, 5.050000],[1163203200000, 5.050000],[1163289600000, 5.050000],[1163376000000, 5.050000],[1163462400000, 5.050000],[1163548800000, 5.050000],[1163635200000, 5.050000],[1163721600000, 5.050000],[1163808000000, 5.050000],[1163894400000, 5.050000],[1163980800000, 5.050000],[1164067200000, 5.050000],[1164153600000, 5.050000],[1164240000000, 5.050000],[1164326400000, 5.050000],[1164412800000, 5.050000],[1164499200000, 5.050000],[1164585600000, 5.050000],[1164672000000, 5.050000],[1164758400000, 5.050000],[1164844800000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });