$(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: [[1259625600000,1.17001],[1259712000000,1.17041],[1259798400000,1.17054],[1259884800000,1.17036],[1259971200000,1.16948],[1260057600000,1.16948],[1260144000000,1.16948],[1260230400000,1.16911],[1260316800000,1.16947],[1260403200000,1.16974],[1260489600000,1.16991],[1260576000000,1.16919],[1260662400000,1.16919],[1260748800000,1.16919],[1260835200000,1.16877],[1260921600000,1.16772],[1261008000000,1.16728],[1261094400000,1.16715],[1261180800000,1.16725],[1261267200000,1.16725],[1261353600000,1.16725],[1261440000000,1.16725],[1261526400000,1.16709],[1261612800000,1.16689],[1261699200000,1.16666],[1261785600000,1.16659],[1261872000000,1.16659],[1261958400000,1.16659],[1262044800000,1.16618],[1262131200000,1.16679],[1262217600000,1.16991]], 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: [[1259625600000, 1.170008],[1259625600000, 1.170008],[1259712000000, 1.170409],[1259798400000, 1.170545],[1259884800000, 1.170356],[1259971200000, 1.169477],[1260057600000, 1.169477],[1260144000000, 1.169477],[1260230400000, 1.169113],[1260316800000, 1.169467],[1260403200000, 1.169737],[1260489600000, 1.169907],[1260576000000, 1.169194],[1260662400000, 1.169194],[1260748800000, 1.169194],[1260835200000, 1.168767],[1260921600000, 1.167721],[1261008000000, 1.167278],[1261094400000, 1.167145],[1261180800000, 1.167253],[1261267200000, 1.167253],[1261353600000, 1.167253],[1261440000000, 1.167249],[1261526400000, 1.167094],[1261612800000, 1.166894],[1261699200000, 1.166661],[1261785600000, 1.166588],[1261872000000, 1.166588],[1261958400000, 1.166588],[1262044800000, 1.166180],[1262131200000, 1.166790],[1262217600000, 1.169914]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });