$(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: [[1170288000000,1.89463],[1170374400000,1.90428],[1170460800000,1.90428],[1170547200000,1.90428],[1170633600000,1.90428],[1170720000000,1.89039],[1170806400000,1.89477],[1170892800000,1.89945],[1170979200000,1.90004],[1171065600000,1.90238],[1171152000000,1.90238],[1171238400000,1.90238],[1171324800000,1.89492],[1171411200000,1.90457],[1171497600000,1.91335],[1171584000000,1.92139],[1171670400000,1.91876],[1171756800000,1.91876],[1171843200000,1.91876],[1171929600000,1.92066],[1172016000000,1.92256],[1172102400000,1.92256],[1172188800000,1.91686],[1172275200000,1.92095],[1172361600000,null],[1172448000000,1.92095],[1172534400000,1.92476],[1172620800000,1.935]], 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: [[1170288000000, 1.894628],[1170288000000, 1.894628],[1170374400000, 1.904281],[1170460800000, 1.904281],[1170547200000, 1.904281],[1170633600000, 1.904281],[1170720000000, 1.890386],[1170806400000, 1.894774],[1170892800000, 1.899454],[1170979200000, 1.900039],[1171065600000, 1.902379],[1171152000000, 1.902379],[1171238400000, 1.902379],[1171324800000, 1.894920],[1171411200000, 1.904573],[1171497600000, 1.913349],[1171584000000, 1.921393],[1171670400000, 1.918760],[1171756800000, 1.918760],[1171843200000, 1.918760],[1171929600000, 1.920661],[1172016000000, 1.922563],[1172102400000, 1.922563],[1172188800000, 1.916859],[1172275200000, 1.920954],[1172448000000, 1.920954],[1172534400000, 1.924757],[1172620800000, 1.934995]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });