$(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: [[1112313600000,1.97746],[1112400000000,1.98437],[1112486400000,1.98437],[1112572800000,1.98437],[1112659200000,1.97026],[1112745600000,1.96002],[1112832000000,1.96704],[1112918400000,1.97443],[1113004800000,1.95569],[1113091200000,1.95569],[1113177600000,1.95569],[1113264000000,1.97333],[1113350400000,1.98175],[1113436800000,1.97949],[1113523200000,1.95812],[1113609600000,1.94292],[1113696000000,1.94292],[1113782400000,1.94292],[1113868800000,1.9574],[1113955200000,1.95635],[1114041600000,1.91092],[1114128000000,1.91527],[1114214400000,1.90796],[1114300800000,1.90796],[1114387200000,1.90796],[1114473600000,1.90638],[1114560000000,1.90028],[1114646400000,1.88785],[1114732800000,1.89004],[1114819200000,1.8965]], 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: [[1112313600000, 1.977457],[1112313600000, 1.977457],[1112400000000, 1.984367],[1112486400000, 1.984367],[1112572800000, 1.984367],[1112659200000, 1.970259],[1112745600000, 1.960019],[1112832000000, 1.967036],[1112918400000, 1.974434],[1113004800000, 1.955691],[1113091200000, 1.955691],[1113177600000, 1.955691],[1113264000000, 1.973334],[1113350400000, 1.981750],[1113436800000, 1.979492],[1113523200000, 1.958125],[1113609600000, 1.942919],[1113696000000, 1.942919],[1113782400000, 1.942919],[1113868800000, 1.957402],[1113955200000, 1.956350],[1114041600000, 1.910924],[1114128000000, 1.915273],[1114214400000, 1.907964],[1114300800000, 1.907964],[1114387200000, 1.907964],[1114473600000, 1.906380],[1114560000000, 1.900282],[1114646400000, 1.887850],[1114732800000, 1.890041],[1114819200000, 1.896500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });