$(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: [[1459468800000,4.06037],[1459555200000,4.0387],[1459641600000,4.0387],[1459728000000,4.0387],[1459814400000,4.01404],[1459900800000,4.02772],[1459987200000,4.0008],[1460073600000,3.9873],[1460160000000,3.95857],[1460246400000,null],[1460332800000,null],[1460419200000,3.95134],[1460505600000,3.95485],[1460592000000,3.93473],[1460678400000,3.95487],[1460764800000,3.93393],[1460851200000,3.93393],[1460937600000,3.93393],[1461024000000,3.93401],[1461110400000,3.93345],[1461196800000,3.92992],[1461283200000,3.91864],[1461369600000,3.90171],[1461456000000,3.90171],[1461542400000,3.90171],[1461628800000,3.90208],[1461715200000,3.89367],[1461801600000,3.88234],[1461888000000,3.88881],[1461974400000,3.88632]], 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: [[1459468800000, 4.060374],[1459468800000, 4.060374],[1459555200000, 4.038701],[1459641600000, 4.038701],[1459728000000, 4.038701],[1459814400000, 4.014043],[1459900800000, 4.027720],[1459987200000, 4.000803],[1460073600000, 3.987297],[1460160000000, 3.958570],[1460419200000, 3.951337],[1460505600000, 3.954852],[1460592000000, 3.934734],[1460678400000, 3.954875],[1460764800000, 3.933933],[1460851200000, 3.933933],[1460937600000, 3.933933],[1461024000000, 3.934009],[1461110400000, 3.933454],[1461196800000, 3.929924],[1461283200000, 3.918638],[1461369600000, 3.901714],[1461456000000, 3.901714],[1461542400000, 3.901714],[1461628800000, 3.902080],[1461715200000, 3.893675],[1461801600000, 3.882337],[1461888000000, 3.888809],[1461974400000, 3.886317]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });