$(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: [[1475280000000,3.88759],[1475366400000,3.88759],[1475452800000,3.88759],[1475539200000,3.88522],[1475625600000,3.87678],[1475712000000,3.88013],[1475798400000,3.88134],[1475884800000,3.87325],[1475971200000,3.87325],[1476057600000,3.87325],[1476144000000,3.85078],[1476230400000,3.84754],[1476316800000,3.84171],[1476403200000,3.83349],[1476489600000,3.83349],[1476576000000,3.83349],[1476662400000,3.83349],[1476748800000,3.82667],[1476835200000,3.80926],[1476921600000,3.81388],[1477008000000,3.81489],[1477094400000,3.79444],[1477180800000,3.79444],[1477267200000,3.79444],[1477353600000,3.78516],[1477440000000,3.77651],[1477526400000,3.77906],[1477612800000,3.76605],[1477699200000,3.76037],[1477785600000,3.76037],[1477872000000,3.76037]], 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: [[1475280000000, 3.887591],[1475280000000, 3.887591],[1475366400000, 3.887591],[1475452800000, 3.887591],[1475539200000, 3.885223],[1475625600000, 3.876779],[1475712000000, 3.880130],[1475798400000, 3.881344],[1475884800000, 3.873247],[1475971200000, 3.873247],[1476057600000, 3.873247],[1476144000000, 3.850784],[1476230400000, 3.847543],[1476316800000, 3.841705],[1476403200000, 3.833489],[1476489600000, 3.833489],[1476576000000, 3.833489],[1476662400000, 3.833489],[1476748800000, 3.826668],[1476835200000, 3.809261],[1476921600000, 3.813881],[1477008000000, 3.814886],[1477094400000, 3.794435],[1477180800000, 3.794435],[1477267200000, 3.794435],[1477353600000, 3.785164],[1477440000000, 3.776512],[1477526400000, 3.779058],[1477612800000, 3.766053],[1477699200000, 3.760371],[1477785600000, 3.760371],[1477872000000, 3.760371]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });