$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1527811200000,0.095834],[1527897600000,0.095274],[1527984000000,0.095274],[1528070400000,0.095274],[1528156800000,0.09626],[1528243200000,0.095825],[1528329600000,0.096598],[1528416000000,0.097608],[1528502400000,0.096092],[1528588800000,0.096092],[1528675200000,0.096092],[1528761600000,0.095637],[1528848000000,0.096133],[1528934400000,0.095934],[1529020800000,0.095785],[1529107200000,0.094463],[1529193600000,0.094463],[1529280000000,0.094463],[1529366400000,0.094656],[1529452800000,0.09405],[1529539200000,null],[1529625600000,0.093059],[1529712000000,0.094316],[1529798400000,0.094316],[1529884800000,0.094316],[1529971200000,0.094103],[1530057600000,0.093767],[1530144000000,0.09358],[1530230400000,0.09358],[1530316800000,0.09358]], 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.095834],[1527811200000, 0.095834],[1527897600000, 0.095274],[1527984000000, 0.095274],[1528070400000, 0.095274],[1528156800000, 0.096260],[1528243200000, 0.095825],[1528329600000, 0.096598],[1528416000000, 0.097608],[1528502400000, 0.096092],[1528588800000, 0.096092],[1528675200000, 0.096092],[1528761600000, 0.095637],[1528848000000, 0.096133],[1528934400000, 0.095934],[1529020800000, 0.095785],[1529107200000, 0.094463],[1529193600000, 0.094463],[1529280000000, 0.094463],[1529366400000, 0.094656],[1529452800000, 0.094050],[1529625600000, 0.093059],[1529712000000, 0.094316],[1529798400000, 0.094316],[1529884800000, 0.094316],[1529971200000, 0.094103],[1530057600000, 0.093767],[1530144000000, 0.093580],[1530230400000, 0.093580],[1530316800000, 0.093580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });