$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1296518400000,12.4041],[1296604800000,12.4612],[1296691200000,12.4842],[1296777600000,12.473],[1296864000000,12.4231],[1296950400000,12.4231],[1297036800000,12.4231],[1297123200000,12.3824],[1297209600000,12.4292],[1297296000000,12.4039],[1297382400000,12.4057],[1297468800000,12.3453],[1297555200000,12.3453],[1297641600000,12.3453],[1297728000000,12.3258],[1297814400000,12.3614],[1297900800000,12.3465],[1297987200000,12.363],[1298073600000,12.3743],[1298160000000,12.3743],[1298246400000,12.3743],[1298332800000,12.3718],[1298419200000,12.4089],[1298505600000,12.434],[1298592000000,12.4465],[1298678400000,12.4478],[1298764800000,12.4478],[1298851200000,12.4478]], 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.404117],[1296518400000, 12.404117],[1296604800000, 12.461242],[1296691200000, 12.484162],[1296777600000, 12.472993],[1296864000000, 12.423095],[1296950400000, 12.423095],[1297036800000, 12.423095],[1297123200000, 12.382449],[1297209600000, 12.429172],[1297296000000, 12.403941],[1297382400000, 12.405678],[1297468800000, 12.345324],[1297555200000, 12.345324],[1297641600000, 12.345324],[1297728000000, 12.325766],[1297814400000, 12.361404],[1297900800000, 12.346518],[1297987200000, 12.362951],[1298073600000, 12.374297],[1298160000000, 12.374297],[1298246400000, 12.374297],[1298332800000, 12.371804],[1298419200000, 12.408881],[1298505600000, 12.433952],[1298592000000, 12.446529],[1298678400000, 12.447773],[1298764800000, 12.447773],[1298851200000, 12.447773]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });