$(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: [[1228089600000,1.00626],[1228176000000,1.03735],[1228262400000,1.05109],[1228348800000,1.07248],[1228435200000,1.06971],[1228521600000,1.06956],[1228608000000,1.06956],[1228694400000,1.06956],[1228780800000,1.07542],[1228867200000,1.08098],[1228953600000,1.08903],[1229040000000,1.09275],[1229126400000,1.09212],[1229212800000,1.09212],[1229299200000,1.09212],[1229385600000,1.11734],[1229472000000,1.13025],[1229558400000,1.15055],[1229644800000,1.15364],[1229731200000,1.15078],[1229817600000,1.15078],[1229904000000,1.15078],[1229990400000,1.15003],[1230076800000,1.13748],[1230163200000,1.13894],[1230249600000,1.13894],[1230336000000,1.12578],[1230422400000,1.12578],[1230508800000,1.12578],[1230595200000,1.12365],[1230681600000,1.12651]], 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: [[1228089600000, 1.006259],[1228089600000, 1.006259],[1228176000000, 1.037352],[1228262400000, 1.051085],[1228348800000, 1.072484],[1228435200000, 1.069707],[1228521600000, 1.069557],[1228608000000, 1.069557],[1228694400000, 1.069557],[1228780800000, 1.075416],[1228867200000, 1.080978],[1228953600000, 1.089026],[1229040000000, 1.092755],[1229126400000, 1.092123],[1229212800000, 1.092123],[1229299200000, 1.092123],[1229385600000, 1.117337],[1229472000000, 1.130251],[1229558400000, 1.150549],[1229644800000, 1.153642],[1229731200000, 1.150780],[1229817600000, 1.150780],[1229904000000, 1.150780],[1229990400000, 1.150028],[1230076800000, 1.137479],[1230163200000, 1.138939],[1230249600000, 1.138939],[1230336000000, 1.125780],[1230422400000, 1.125780],[1230508800000, 1.125780],[1230595200000, 1.123645],[1230681600000, 1.126506]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });