$(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: [[1267401600000,1.17052],[1267488000000,1.17047],[1267574400000,1.16971],[1267660800000,1.16968],[1267747200000,1.16961],[1267833600000,1.16952],[1267920000000,1.16952],[1268006400000,1.16952],[1268092800000,1.16952],[1268179200000,1.1696],[1268265600000,1.16943],[1268352000000,1.16901],[1268438400000,1.16885],[1268524800000,1.16885],[1268611200000,1.16885],[1268697600000,1.16858],[1268784000000,1.16859],[1268870400000,1.16848],[1268956800000,1.16845],[1269043200000,1.16607],[1269129600000,1.16607],[1269216000000,1.16607],[1269302400000,1.16521],[1269388800000,1.16463],[1269475200000,1.16236],[1269561600000,1.16169],[1269648000000,1.16156],[1269734400000,1.16156],[1269820800000,1.16156],[1269907200000,1.16094],[1269993600000,1.16104]], 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: [[1267401600000, 1.170522],[1267401600000, 1.170522],[1267488000000, 1.170469],[1267574400000, 1.169712],[1267660800000, 1.169676],[1267747200000, 1.169609],[1267833600000, 1.169524],[1267920000000, 1.169524],[1268006400000, 1.169524],[1268092800000, 1.169524],[1268179200000, 1.169596],[1268265600000, 1.169434],[1268352000000, 1.169014],[1268438400000, 1.168852],[1268524800000, 1.168852],[1268611200000, 1.168852],[1268697600000, 1.168580],[1268784000000, 1.168591],[1268870400000, 1.168479],[1268956800000, 1.168450],[1269043200000, 1.166066],[1269129600000, 1.166066],[1269216000000, 1.166066],[1269302400000, 1.165208],[1269388800000, 1.164625],[1269475200000, 1.162355],[1269561600000, 1.161691],[1269648000000, 1.161563],[1269734400000, 1.161563],[1269820800000, 1.161563],[1269907200000, 1.160940],[1269993600000, 1.161042]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });