$(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: [[1446336000000,3.6343],[1446422400000,3.6343],[1446508800000,3.63166],[1446595200000,3.63306],[1446681600000,3.64254],[1446768000000,3.61252],[1446854400000,3.56426],[1446940800000,3.56426],[1447027200000,3.56426],[1447113600000,3.57606],[1447200000000,3.57888],[1447286400000,3.57387],[1447372800000,3.5974],[1447459200000,3.61793],[1447545600000,3.61793],[1447632000000,3.61793],[1447718400000,3.64187],[1447804800000,3.72749],[1447891200000,3.74794],[1447977600000,3.73321],[1448064000000,3.75661],[1448150400000,3.75661],[1448236800000,3.75661],[1448323200000,3.76616],[1448409600000,3.74858],[1448496000000,3.72198],[1448582400000,3.69316],[1448668800000,3.7354],[1448755200000,3.7354],[1448841600000,3.7354]], 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: [[1446336000000, 3.634304],[1446336000000, 3.634304],[1446422400000, 3.634304],[1446508800000, 3.631660],[1446595200000, 3.633058],[1446681600000, 3.642542],[1446768000000, 3.612518],[1446854400000, 3.564255],[1446940800000, 3.564255],[1447027200000, 3.564255],[1447113600000, 3.576065],[1447200000000, 3.578877],[1447286400000, 3.573870],[1447372800000, 3.597398],[1447459200000, 3.617933],[1447545600000, 3.617933],[1447632000000, 3.617933],[1447718400000, 3.641869],[1447804800000, 3.727495],[1447891200000, 3.747940],[1447977600000, 3.733207],[1448064000000, 3.756608],[1448150400000, 3.756608],[1448236800000, 3.756608],[1448323200000, 3.766162],[1448409600000, 3.748580],[1448496000000, 3.721978],[1448582400000, 3.693158],[1448668800000, 3.735398],[1448755200000, 3.735398],[1448841600000, 3.735398]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });