$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1104883200000,1.73498],[1104969600000,2.03725],[1105056000000,2.03054],[1105142400000,null],[1105228800000,2.03054],[1105315200000,null],[1105401600000,2.01023],[1105488000000,2.01788],[1105574400000,2.01558],[1105660800000,2.03573],[1105747200000,2.01577],[1105833600000,2.01577],[1105920000000,2.01577],[1106006400000,2.01523],[1106092800000,1.99977],[1106179200000,1.99616],[1106265600000,1.99616],[1106352000000,1.99489],[1106438400000,1.99489],[1106524800000,1.99489],[1106611200000,null],[1106697600000,2.00336],[1106784000000,1.99417],[1106870400000,2.01413],[1106956800000,2.00215],[1107043200000,2.00215],[1107129600000,1.99981]], 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: [[1104883200000, 1.734978],[1104883200000, 1.734978],[1104969600000, 2.037249],[1105056000000, 2.030544],[1105228800000, 2.030544],[1105401600000, 2.010232],[1105488000000, 2.017878],[1105574400000, 2.015578],[1105660800000, 2.035728],[1105747200000, 2.015770],[1105833600000, 2.015770],[1105920000000, 2.015770],[1106006400000, 2.015234],[1106092800000, 1.999774],[1106179200000, 1.996161],[1106265600000, 1.996161],[1106352000000, 1.994885],[1106438400000, 1.994885],[1106524800000, 1.994885],[1106697600000, 2.003362],[1106784000000, 1.994172],[1106870400000, 2.014126],[1106956800000, 2.002152],[1107043200000, 2.002152],[1107129600000, 1.999811]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });