$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1380585600000,6.36433],[1380672000000,6.38404],[1380758400000,6.38561],[1380844800000,6.40099],[1380931200000,6.41299],[1381017600000,6.41299],[1381104000000,6.41299],[1381190400000,6.40611],[1381276800000,6.40421],[1381363200000,6.38523],[1381449600000,6.38523],[1381536000000,6.41578],[1381622400000,6.41578],[1381708800000,6.41578],[1381795200000,6.42053],[1381881600000,6.4311],[1381968000000,6.42558],[1382054400000,6.44326],[1382140800000,6.45897],[1382227200000,6.45897],[1382313600000,6.45897],[1382400000000,6.43802],[1382486400000,6.44132],[1382572800000,6.44653],[1382659200000,6.46265],[1382745600000,6.46431],[1382832000000,6.46431],[1382918400000,6.46431],[1383004800000,6.45736],[1383091200000,6.44496],[1383177600000,6.45892]], 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, 6.364334],[1380585600000, 6.364334],[1380672000000, 6.384038],[1380758400000, 6.385612],[1380844800000, 6.400992],[1380931200000, 6.412988],[1381017600000, 6.412988],[1381104000000, 6.412988],[1381190400000, 6.406106],[1381276800000, 6.404212],[1381363200000, 6.385234],[1381449600000, 6.385234],[1381536000000, 6.415776],[1381622400000, 6.415776],[1381708800000, 6.415776],[1381795200000, 6.420529],[1381881600000, 6.431100],[1381968000000, 6.425578],[1382054400000, 6.443260],[1382140800000, 6.458971],[1382227200000, 6.458971],[1382313600000, 6.458971],[1382400000000, 6.438020],[1382486400000, 6.441318],[1382572800000, 6.446527],[1382659200000, 6.462655],[1382745600000, 6.464312],[1382832000000, 6.464312],[1382918400000, 6.464312],[1383004800000, 6.457362],[1383091200000, 6.444956],[1383177600000, 6.458919]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });