$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1527811200000,26.5144],[1527897600000,26.4265],[1527984000000,26.4265],[1528070400000,26.4265],[1528156800000,26.5652],[1528243200000,26.5196],[1528329600000,26.4683],[1528416000000,26.6742],[1528502400000,26.5475],[1528588800000,26.5475],[1528675200000,26.5475],[1528761600000,26.448],[1528848000000,26.4761],[1528934400000,26.4571],[1529020800000,26.5478],[1529107200000,26.3633],[1529193600000,26.3633],[1529280000000,26.3633],[1529366400000,26.4634],[1529452800000,26.5223],[1529539200000,null],[1529625600000,26.4015],[1529712000000,26.4982],[1529798400000,26.4982],[1529884800000,26.4982],[1529971200000,26.5158],[1530057600000,26.4819],[1530144000000,26.5101],[1530230400000,26.5101],[1530316800000,26.5101]], 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, 26.514394],[1527811200000, 26.514394],[1527897600000, 26.426469],[1527984000000, 26.426469],[1528070400000, 26.426469],[1528156800000, 26.565179],[1528243200000, 26.519648],[1528329600000, 26.468332],[1528416000000, 26.674244],[1528502400000, 26.547480],[1528588800000, 26.547480],[1528675200000, 26.547480],[1528761600000, 26.447993],[1528848000000, 26.476051],[1528934400000, 26.457060],[1529020800000, 26.547848],[1529107200000, 26.363286],[1529193600000, 26.363286],[1529280000000, 26.363286],[1529366400000, 26.463435],[1529452800000, 26.522322],[1529625600000, 26.401470],[1529712000000, 26.498242],[1529798400000, 26.498242],[1529884800000, 26.498242],[1529971200000, 26.515838],[1530057600000, 26.481850],[1530144000000, 26.510070],[1530230400000, 26.510070],[1530316800000, 26.510070]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });