$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1527811200000,0.4212],[1527897600000,0.4198],[1527984000000,0.4198],[1528070400000,0.4198],[1528156800000,0.42198],[1528243200000,0.422],[1528329600000,0.42193],[1528416000000,0.4234],[1528502400000,0.41706],[1528588800000,0.41706],[1528675200000,0.41706],[1528761600000,0.41851],[1528848000000,0.41845],[1528934400000,0.41391],[1529020800000,0.42119],[1529107200000,0.41981],[1529193600000,0.41981],[1529280000000,0.41981],[1529366400000,0.41474],[1529452800000,0.41279],[1529539200000,null],[1529625600000,0.41239],[1529712000000,0.41491],[1529798400000,0.41491],[1529884800000,0.41491],[1529971200000,0.41579],[1530057600000,0.41709],[1530144000000,0.417],[1530230400000,0.417],[1530316800000,0.417]], 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: [[1527811200000, 0.421200],[1527811200000, 0.421200],[1527897600000, 0.419800],[1527984000000, 0.419800],[1528070400000, 0.419800],[1528156800000, 0.421980],[1528243200000, 0.422000],[1528329600000, 0.421930],[1528416000000, 0.423400],[1528502400000, 0.417060],[1528588800000, 0.417060],[1528675200000, 0.417060],[1528761600000, 0.418510],[1528848000000, 0.418450],[1528934400000, 0.413910],[1529020800000, 0.421190],[1529107200000, 0.419810],[1529193600000, 0.419810],[1529280000000, 0.419810],[1529366400000, 0.414740],[1529452800000, 0.412790],[1529625600000, 0.412390],[1529712000000, 0.414910],[1529798400000, 0.414910],[1529884800000, 0.414910],[1529971200000, 0.415790],[1530057600000, 0.417090],[1530144000000, 0.417000],[1530230400000, 0.417000],[1530316800000, 0.417000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });