$(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: [[1330560000000,1.26897],[1330646400000,1.26783],[1330732800000,1.26839],[1330819200000,1.26839],[1330905600000,1.26839],[1330992000000,1.26632],[1331078400000,1.26549],[1331164800000,1.26481],[1331251200000,1.26481],[1331337600000,1.26481],[1331424000000,1.26481],[1331510400000,1.26481],[1331596800000,1.26207],[1331683200000,1.26127],[1331769600000,1.26074],[1331856000000,1.26082],[1331942400000,1.26295],[1332028800000,1.26295],[1332115200000,1.26295],[1332201600000,1.26369],[1332288000000,1.2637],[1332374400000,1.26389],[1332460800000,1.26625],[1332547200000,1.26719],[1332633600000,1.26719],[1332720000000,1.26719],[1332806400000,1.26671],[1332892800000,1.26793],[1332979200000,1.26842],[1333065600000,1.26715],[1333152000000,1.26873]], 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: [[1330560000000, 1.268972],[1330560000000, 1.268972],[1330646400000, 1.267830],[1330732800000, 1.268395],[1330819200000, 1.268395],[1330905600000, 1.268395],[1330992000000, 1.266325],[1331078400000, 1.265491],[1331164800000, 1.264812],[1331251200000, 1.264812],[1331337600000, 1.264812],[1331424000000, 1.264812],[1331510400000, 1.264812],[1331596800000, 1.262071],[1331683200000, 1.261267],[1331769600000, 1.260738],[1331856000000, 1.260820],[1331942400000, 1.262948],[1332028800000, 1.262948],[1332115200000, 1.262948],[1332201600000, 1.263693],[1332288000000, 1.263697],[1332374400000, 1.263888],[1332460800000, 1.266245],[1332547200000, 1.267186],[1332633600000, 1.267186],[1332720000000, 1.267186],[1332806400000, 1.266707],[1332892800000, 1.267932],[1332979200000, 1.268418],[1333065600000, 1.267148],[1333152000000, 1.268732]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });