$(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: [[1346457600000,1.25902],[1346544000000,1.25902],[1346630400000,1.25902],[1346716800000,1.26065],[1346803200000,1.25927],[1346889600000,1.2589],[1346976000000,1.25991],[1347062400000,1.25998],[1347148800000,1.25998],[1347235200000,1.25998],[1347321600000,1.26119],[1347408000000,1.26156],[1347494400000,1.26333],[1347580800000,1.26252],[1347667200000,1.2657],[1347753600000,1.2657],[1347840000000,1.2657],[1347926400000,1.26408],[1348012800000,1.2648],[1348099200000,1.26676],[1348185600000,1.26783],[1348272000000,1.26764],[1348358400000,1.26764],[1348444800000,1.26764],[1348531200000,1.26686],[1348617600000,1.26726],[1348704000000,1.26814],[1348790400000,1.26805],[1348876800000,1.27182],[1348963200000,1.27182]], 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: [[1346457600000, 1.259021],[1346457600000, 1.259021],[1346544000000, 1.259021],[1346630400000, 1.259021],[1346716800000, 1.260648],[1346803200000, 1.259271],[1346889600000, 1.258903],[1346976000000, 1.259907],[1347062400000, 1.259975],[1347148800000, 1.259975],[1347235200000, 1.259975],[1347321600000, 1.261190],[1347408000000, 1.261559],[1347494400000, 1.263331],[1347580800000, 1.262521],[1347667200000, 1.265700],[1347753600000, 1.265700],[1347840000000, 1.265700],[1347926400000, 1.264081],[1348012800000, 1.264796],[1348099200000, 1.266760],[1348185600000, 1.267832],[1348272000000, 1.267636],[1348358400000, 1.267636],[1348444800000, 1.267636],[1348531200000, 1.266859],[1348617600000, 1.267262],[1348704000000, 1.268143],[1348790400000, 1.268045],[1348876800000, 1.271822],[1348963200000, 1.271822]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });