$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1546300800000,0.07278],[1546387200000,0.07278],[1546473600000,0.07278],[1546560000000,0.072137],[1546646400000,0.073282],[1546732800000,0.073282],[1546819200000,0.073282],[1546905600000,0.073282],[1546992000000,0.074998],[1547078400000,0.075028],[1547164800000,0.075462],[1547251200000,0.074865],[1547337600000,0.074865],[1547424000000,0.074865],[1547510400000,0.07408],[1547596800000,0.074545],[1547683200000,0.074106],[1547769600000,0.074439],[1547856000000,0.073894],[1547942400000,0.073894],[1548028800000,0.073894],[1548115200000,0.073786],[1548201600000,0.073771],[1548288000000,0.073186],[1548374400000,0.073562],[1548460800000,0.073696],[1548547200000,0.073696],[1548633600000,0.073696],[1548720000000,0.073402],[1548806400000,0.072958],[1548892800000,0.072943]], 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: [[1546300800000, 0.072780],[1546300800000, 0.072780],[1546387200000, 0.072780],[1546473600000, 0.072780],[1546560000000, 0.072137],[1546646400000, 0.073282],[1546732800000, 0.073282],[1546819200000, 0.073282],[1546905600000, 0.073282],[1546992000000, 0.074998],[1547078400000, 0.075028],[1547164800000, 0.075462],[1547251200000, 0.074865],[1547337600000, 0.074865],[1547424000000, 0.074865],[1547510400000, 0.074080],[1547596800000, 0.074545],[1547683200000, 0.074106],[1547769600000, 0.074439],[1547856000000, 0.073894],[1547942400000, 0.073894],[1548028800000, 0.073894],[1548115200000, 0.073786],[1548201600000, 0.073771],[1548288000000, 0.073186],[1548374400000, 0.073562],[1548460800000, 0.073696],[1548547200000, 0.073696],[1548633600000, 0.073696],[1548720000000, 0.073402],[1548806400000, 0.072958],[1548892800000, 0.072943]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });