$(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: [[1480550400000,3.71307],[1480636800000,3.72331],[1480723200000,3.75957],[1480809600000,3.75957],[1480896000000,3.75957],[1480982400000,3.79594],[1481068800000,3.79265],[1481155200000,3.7813],[1481241600000,3.74608],[1481328000000,3.74683],[1481414400000,3.74683],[1481500800000,3.74683],[1481587200000,3.78708],[1481673600000,3.78265],[1481760000000,3.80979],[1481846400000,3.79182],[1481932800000,3.78437],[1482019200000,3.78437],[1482105600000,3.78437],[1482192000000,3.7962],[1482278400000,3.80478],[1482364800000,3.80578],[1482451200000,3.7835],[1482537600000,3.78172],[1482624000000,3.78172],[1482710400000,3.78172],[1482796800000,3.79595],[1482883200000,3.79595],[1482969600000,3.86433],[1483056000000,3.90925],[1483142400000,3.90925]], 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: [[1480550400000, 3.713072],[1480550400000, 3.713072],[1480636800000, 3.723314],[1480723200000, 3.759575],[1480809600000, 3.759575],[1480896000000, 3.759575],[1480982400000, 3.795936],[1481068800000, 3.792655],[1481155200000, 3.781295],[1481241600000, 3.746080],[1481328000000, 3.746831],[1481414400000, 3.746831],[1481500800000, 3.746831],[1481587200000, 3.787085],[1481673600000, 3.782647],[1481760000000, 3.809795],[1481846400000, 3.791816],[1481932800000, 3.784374],[1482019200000, 3.784374],[1482105600000, 3.784374],[1482192000000, 3.796203],[1482278400000, 3.804783],[1482364800000, 3.805779],[1482451200000, 3.783505],[1482537600000, 3.781719],[1482624000000, 3.781719],[1482710400000, 3.781719],[1482796800000, 3.795946],[1482883200000, 3.795946],[1482969600000, 3.864331],[1483056000000, 3.909251],[1483142400000, 3.909251]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });