$(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: [[1349049600000,1.27182],[1349136000000,1.27185],[1349222400000,1.26377],[1349308800000,1.26234],[1349395200000,1.26102],[1349481600000,1.26389],[1349568000000,1.26389],[1349654400000,1.26389],[1349740800000,1.27087],[1349827200000,1.27089],[1349913600000,1.26859],[1350000000000,1.27338],[1350086400000,1.27566],[1350172800000,1.27566],[1350259200000,1.27566],[1350345600000,1.27496],[1350432000000,1.2759],[1350518400000,1.27796],[1350604800000,1.27859],[1350691200000,1.27817],[1350777600000,1.27817],[1350864000000,1.27817],[1350950400000,1.27792],[1351036800000,1.27846],[1351123200000,1.27935],[1351209600000,1.28052],[1351296000000,1.2791],[1351382400000,1.2791],[1351468800000,1.2791],[1351555200000,1.28019],[1351641600000,1.28091]], 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: [[1349049600000, 1.271822],[1349049600000, 1.271822],[1349136000000, 1.271852],[1349222400000, 1.263766],[1349308800000, 1.262336],[1349395200000, 1.261023],[1349481600000, 1.263894],[1349568000000, 1.263894],[1349654400000, 1.263894],[1349740800000, 1.270869],[1349827200000, 1.270893],[1349913600000, 1.268585],[1350000000000, 1.273383],[1350086400000, 1.275662],[1350172800000, 1.275662],[1350259200000, 1.275662],[1350345600000, 1.274960],[1350432000000, 1.275899],[1350518400000, 1.277960],[1350604800000, 1.278591],[1350691200000, 1.278170],[1350777600000, 1.278170],[1350864000000, 1.278170],[1350950400000, 1.277921],[1351036800000, 1.278459],[1351123200000, 1.279347],[1351209600000, 1.280524],[1351296000000, 1.279102],[1351382400000, 1.279102],[1351468800000, 1.279102],[1351555200000, 1.280190],[1351641600000, 1.280912]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });