$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1296518400000,1.20417],[1296604800000,1.20564],[1296691200000,1.20606],[1296777600000,1.20633],[1296864000000,1.20664],[1296950400000,1.20664],[1297036800000,1.20664],[1297123200000,1.20652],[1297209600000,1.20654],[1297296000000,1.20536],[1297382400000,1.20609],[1297468800000,1.20484],[1297555200000,1.20484],[1297641600000,1.20484],[1297728000000,1.20413],[1297814400000,1.20554],[1297900800000,1.20603],[1297987200000,1.20694],[1298073600000,1.20879],[1298160000000,1.20879],[1298246400000,1.20879],[1298332800000,1.20906],[1298419200000,1.20635],[1298505600000,1.20662],[1298592000000,1.20643],[1298678400000,1.20582],[1298764800000,1.20582],[1298851200000,1.20582]], 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, 1.204166],[1296518400000, 1.204166],[1296604800000, 1.205635],[1296691200000, 1.206065],[1296777600000, 1.206330],[1296864000000, 1.206638],[1296950400000, 1.206638],[1297036800000, 1.206638],[1297123200000, 1.206523],[1297209600000, 1.206536],[1297296000000, 1.205361],[1297382400000, 1.206088],[1297468800000, 1.204835],[1297555200000, 1.204835],[1297641600000, 1.204835],[1297728000000, 1.204131],[1297814400000, 1.205535],[1297900800000, 1.206034],[1297987200000, 1.206943],[1298073600000, 1.208788],[1298160000000, 1.208788],[1298246400000, 1.208788],[1298332800000, 1.209061],[1298419200000, 1.206351],[1298505600000, 1.206619],[1298592000000, 1.206428],[1298678400000, 1.205819],[1298764800000, 1.205819],[1298851200000, 1.205819]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });