$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1343779200000,1.32299],[1343865600000,1.33105],[1343952000000,1.33272],[1344038400000,1.32801],[1344124800000,1.32801],[1344211200000,1.32801],[1344297600000,1.33809],[1344384000000,1.35102],[1344470400000,1.34997],[1344556800000,1.34771],[1344643200000,1.34814],[1344729600000,1.34814],[1344816000000,1.34814],[1344902400000,1.34983],[1344988800000,1.35227],[1345075200000,1.34497],[1345161600000,1.33769],[1345248000000,1.34538],[1345334400000,1.34538],[1345420800000,1.34538],[1345507200000,1.34437],[1345593600000,1.35641],[1345680000000,1.35333],[1345766400000,1.36668],[1345852800000,1.36668],[1345939200000,1.36668],[1346025600000,1.36668],[1346112000000,1.37289],[1346198400000,1.3758],[1346284800000,1.37124],[1346371200000,1.37773]], 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: [[1343779200000, 1.322994],[1343779200000, 1.322994],[1343865600000, 1.331048],[1343952000000, 1.332724],[1344038400000, 1.328009],[1344124800000, 1.328009],[1344211200000, 1.328009],[1344297600000, 1.338094],[1344384000000, 1.351015],[1344470400000, 1.349968],[1344556800000, 1.347706],[1344643200000, 1.348145],[1344729600000, 1.348145],[1344816000000, 1.348145],[1344902400000, 1.349834],[1344988800000, 1.352274],[1345075200000, 1.344967],[1345161600000, 1.337686],[1345248000000, 1.345380],[1345334400000, 1.345380],[1345420800000, 1.345380],[1345507200000, 1.344372],[1345593600000, 1.356414],[1345680000000, 1.353331],[1345766400000, 1.366682],[1345852800000, 1.366682],[1345939200000, 1.366682],[1346025600000, 1.366682],[1346112000000, 1.372890],[1346198400000, 1.375805],[1346284800000, 1.371244],[1346371200000, 1.377729]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });