$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1296518400000,15.4673],[1296604800000,15.5539],[1296691200000,15.6264],[1296777600000,15.5647],[1296864000000,15.4395],[1296950400000,15.4395],[1297036800000,15.4395],[1297123200000,15.3498],[1297209600000,15.4272],[1297296000000,15.4084],[1297382400000,15.3445],[1297468800000,15.2596],[1297555200000,15.2596],[1297641600000,15.2596],[1297728000000,15.1262],[1297814400000,15.2028],[1297900800000,15.2123],[1297987200000,15.2881],[1298073600000,15.3615],[1298160000000,15.3615],[1298246400000,15.3615],[1298332800000,15.4133],[1298419200000,15.399],[1298505600000,15.4612],[1298592000000,15.5241],[1298678400000,15.4856],[1298764800000,15.4856],[1298851200000,15.4856]], 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, 15.467286],[1296518400000, 15.467286],[1296604800000, 15.553942],[1296691200000, 15.626413],[1296777600000, 15.564669],[1296864000000, 15.439464],[1296950400000, 15.439464],[1297036800000, 15.439464],[1297123200000, 15.349763],[1297209600000, 15.427239],[1297296000000, 15.408404],[1297382400000, 15.344532],[1297468800000, 15.259644],[1297555200000, 15.259644],[1297641600000, 15.259644],[1297728000000, 15.126189],[1297814400000, 15.202817],[1297900800000, 15.212302],[1297987200000, 15.288111],[1298073600000, 15.361469],[1298160000000, 15.361469],[1298246400000, 15.361469],[1298332800000, 15.413334],[1298419200000, 15.398994],[1298505600000, 15.461164],[1298592000000, 15.524130],[1298678400000, 15.485569],[1298764800000, 15.485569],[1298851200000, 15.485569]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });