$(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: [[1509494400000,4.05069],[1509580800000,4.06571],[1509667200000,4.07235],[1509753600000,4.07129],[1509840000000,4.07129],[1509926400000,4.07129],[1510012800000,4.04734],[1510099200000,4.02995],[1510185600000,4.01773],[1510272000000,4.00135],[1510358400000,3.99196],[1510444800000,3.99196],[1510531200000,3.99196],[1510617600000,3.98842],[1510704000000,3.9923],[1510790400000,3.99915],[1510876800000,3.99223],[1510963200000,3.9949],[1511049600000,3.9949],[1511136000000,3.9949],[1511222400000,3.99113],[1511308800000,3.99403],[1511395200000,4.02652],[1511481600000,4.08642],[1511568000000,4.07477],[1511654400000,4.07477],[1511740800000,4.07477],[1511827200000,4.06483],[1511913600000,4.07304],[1512000000000,4.09051]], 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: [[1509494400000, 4.050691],[1509494400000, 4.050691],[1509580800000, 4.065706],[1509667200000, 4.072352],[1509753600000, 4.071290],[1509840000000, 4.071290],[1509926400000, 4.071290],[1510012800000, 4.047335],[1510099200000, 4.029946],[1510185600000, 4.017727],[1510272000000, 4.001350],[1510358400000, 3.991965],[1510444800000, 3.991965],[1510531200000, 3.991965],[1510617600000, 3.988420],[1510704000000, 3.992301],[1510790400000, 3.999152],[1510876800000, 3.992235],[1510963200000, 3.994897],[1511049600000, 3.994897],[1511136000000, 3.994897],[1511222400000, 3.991126],[1511308800000, 3.994027],[1511395200000, 4.026522],[1511481600000, 4.086418],[1511568000000, 4.074769],[1511654400000, 4.074769],[1511740800000, 4.074769],[1511827200000, 4.064827],[1511913600000, 4.073036],[1512000000000, 4.090515]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });