$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1296518400000,12.6304],[1296604800000,12.797],[1296691200000,12.8676],[1296777600000,12.8659],[1296864000000,12.7842],[1296950400000,12.7842],[1297036800000,12.7842],[1297123200000,12.8158],[1297209600000,12.7657],[1297296000000,12.7527],[1297382400000,12.7473],[1297468800000,12.7028],[1297555200000,12.7028],[1297641600000,12.7028],[1297728000000,12.7096],[1297814400000,12.8139],[1297900800000,12.7441],[1297987200000,12.8065],[1298073600000,12.8912],[1298160000000,12.8912],[1298246400000,12.8912],[1298332800000,12.8813],[1298419200000,12.8258],[1298505600000,12.8767],[1298592000000,12.8325],[1298678400000,12.7607],[1298764800000,12.7607],[1298851200000,12.7607]], 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: [[1296518400000, 12.630389],[1296518400000, 12.630389],[1296604800000, 12.797016],[1296691200000, 12.867624],[1296777600000, 12.865864],[1296864000000, 12.784211],[1296950400000, 12.784211],[1297036800000, 12.784211],[1297123200000, 12.815828],[1297209600000, 12.765741],[1297296000000, 12.752720],[1297382400000, 12.747291],[1297468800000, 12.702837],[1297555200000, 12.702837],[1297641600000, 12.702837],[1297728000000, 12.709600],[1297814400000, 12.813933],[1297900800000, 12.744075],[1297987200000, 12.806452],[1298073600000, 12.891191],[1298160000000, 12.891191],[1298246400000, 12.891191],[1298332800000, 12.881340],[1298419200000, 12.825820],[1298505600000, 12.876688],[1298592000000, 12.832527],[1298678400000, 12.760703],[1298764800000, 12.760703],[1298851200000, 12.760703]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });