$(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: [[1393632000000,3.88027],[1393718400000,3.88027],[1393804800000,3.88027],[1393891200000,3.98446],[1393977600000,3.87747],[1394064000000,3.75789],[1394150400000,3.73716],[1394236800000,3.71651],[1394323200000,3.71651],[1394409600000,3.71651],[1394496000000,3.71651],[1394582400000,3.72945],[1394668800000,3.7333],[1394755200000,3.82626],[1394841600000,3.86052],[1394928000000,3.86052],[1395014400000,3.86052],[1395100800000,3.92951],[1395187200000,4.01011],[1395273600000,3.99636],[1395360000000,4.02928],[1395446400000,4.06939],[1395532800000,4.06939],[1395619200000,4.06939],[1395705600000,4.1393],[1395792000000,4.22352],[1395878400000,4.2626],[1395964800000,4.32336],[1396051200000,4.36528],[1396137600000,4.36528],[1396224000000,4.36528]], 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: [[1393632000000, 3.880266],[1393632000000, 3.880266],[1393718400000, 3.880266],[1393804800000, 3.880266],[1393891200000, 3.984458],[1393977600000, 3.877474],[1394064000000, 3.757886],[1394150400000, 3.737161],[1394236800000, 3.716508],[1394323200000, 3.716508],[1394409600000, 3.716508],[1394496000000, 3.716508],[1394582400000, 3.729448],[1394668800000, 3.733298],[1394755200000, 3.826257],[1394841600000, 3.860522],[1394928000000, 3.860522],[1395014400000, 3.860522],[1395100800000, 3.929508],[1395187200000, 4.010112],[1395273600000, 3.996361],[1395360000000, 4.029275],[1395446400000, 4.069386],[1395532800000, 4.069386],[1395619200000, 4.069386],[1395705600000, 4.139301],[1395792000000, 4.223520],[1395878400000, 4.262596],[1395964800000, 4.323362],[1396051200000, 4.365279],[1396137600000, 4.365279],[1396224000000, 4.365279]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });