$(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: [[1380585600000,7.993],[1380672000000,7.993],[1380758400000,7.993],[1380844800000,7.993],[1380931200000,7.993],[1381017600000,7.993],[1381104000000,7.993],[1381190400000,7.993],[1381276800000,7.993],[1381363200000,7.993],[1381449600000,7.993],[1381536000000,7.993],[1381622400000,7.993],[1381708800000,7.993],[1381795200000,7.993],[1381881600000,7.993],[1381968000000,7.993],[1382054400000,7.993],[1382140800000,7.993],[1382227200000,7.993],[1382313600000,7.993],[1382400000000,7.993],[1382486400000,7.993],[1382572800000,7.993],[1382659200000,7.993],[1382745600000,7.993],[1382832000000,7.993],[1382918400000,7.993],[1383004800000,7.993],[1383091200000,7.993],[1383177600000,7.993]], 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: [[1380585600000, 7.993000],[1380585600000, 7.993000],[1380672000000, 7.993000],[1380758400000, 7.993000],[1380844800000, 7.993000],[1380931200000, 7.993000],[1381017600000, 7.993000],[1381104000000, 7.993000],[1381190400000, 7.993000],[1381276800000, 7.993000],[1381363200000, 7.993000],[1381449600000, 7.993000],[1381536000000, 7.993000],[1381622400000, 7.993000],[1381708800000, 7.993000],[1381795200000, 7.993000],[1381881600000, 7.993000],[1381968000000, 7.993000],[1382054400000, 7.993000],[1382140800000, 7.993000],[1382227200000, 7.993000],[1382313600000, 7.993000],[1382400000000, 7.993000],[1382486400000, 7.993000],[1382572800000, 7.993000],[1382659200000, 7.993000],[1382745600000, 7.993000],[1382832000000, 7.993000],[1382918400000, 7.993000],[1383004800000, 7.993000],[1383091200000, 7.993000],[1383177600000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });