$(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: [[1548979200000,4.13827],[1549065600000,4.09339],[1549152000000,4.09339],[1549238400000,4.09339],[1549324800000,4.06591],[1549411200000,4.04074],[1549497600000,3.99777],[1549584000000,3.99704],[1549670400000,3.98823],[1549756800000,3.98823],[1549843200000,3.98823],[1549929600000,3.9853],[1550016000000,3.98913],[1550102400000,4.00507],[1550188800000,4.00852],[1550275200000,4.02449],[1550361600000,4.02449],[1550448000000,4.02449],[1550534400000,4.01845],[1550620800000,4.016],[1550707200000,4.02952],[1550793600000,4.01951],[1550880000000,4.02017],[1550966400000,4.02017],[1551052800000,4.02017],[1551139200000,4.03517],[1551225600000,4.02947],[1551312000000,4.04006]], 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: [[1548979200000, 4.138270],[1548979200000, 4.138270],[1549065600000, 4.093391],[1549152000000, 4.093391],[1549238400000, 4.093391],[1549324800000, 4.065914],[1549411200000, 4.040743],[1549497600000, 3.997773],[1549584000000, 3.997044],[1549670400000, 3.988231],[1549756800000, 3.988231],[1549843200000, 3.988231],[1549929600000, 3.985305],[1550016000000, 3.989129],[1550102400000, 4.005074],[1550188800000, 4.008520],[1550275200000, 4.024493],[1550361600000, 4.024493],[1550448000000, 4.024493],[1550534400000, 4.018451],[1550620800000, 4.016000],[1550707200000, 4.029525],[1550793600000, 4.019507],[1550880000000, 4.020169],[1550966400000, 4.020169],[1551052800000, 4.020169],[1551139200000, 4.035166],[1551225600000, 4.029465],[1551312000000, 4.040062]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });