$(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: [[1259625600000,3.47546],[1259712000000,3.48787],[1259798400000,3.49214],[1259884800000,3.49886],[1259971200000,3.48421],[1260057600000,3.48421],[1260144000000,3.48421],[1260230400000,3.41924],[1260316800000,3.41644],[1260403200000,3.41591],[1260489600000,3.40712],[1260576000000,3.41179],[1260662400000,3.41179],[1260748800000,3.41179],[1260835200000,3.38542],[1260921600000,3.3578],[1261008000000,3.36093],[1261094400000,3.31075],[1261180800000,3.30937],[1261267200000,3.30937],[1261353600000,3.30937],[1261440000000,3.31652],[1261526400000,3.29557],[1261612800000,3.29446],[1261699200000,3.32178],[1261785600000,3.32157],[1261872000000,3.32157],[1261958400000,3.32157],[1262044800000,3.32298],[1262131200000,3.3309],[1262217600000,3.31583]], 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: [[1259625600000, 3.475461],[1259625600000, 3.475461],[1259712000000, 3.487871],[1259798400000, 3.492141],[1259884800000, 3.498865],[1259971200000, 3.484213],[1260057600000, 3.484213],[1260144000000, 3.484213],[1260230400000, 3.419237],[1260316800000, 3.416445],[1260403200000, 3.415913],[1260489600000, 3.407123],[1260576000000, 3.411787],[1260662400000, 3.411787],[1260748800000, 3.411787],[1260835200000, 3.385422],[1260921600000, 3.357805],[1261008000000, 3.360928],[1261094400000, 3.310754],[1261180800000, 3.309369],[1261267200000, 3.309369],[1261353600000, 3.309369],[1261440000000, 3.316525],[1261526400000, 3.295567],[1261612800000, 3.294462],[1261699200000, 3.321781],[1261785600000, 3.321573],[1261872000000, 3.321573],[1261958400000, 3.321573],[1262044800000, 3.322979],[1262131200000, 3.330901],[1262217600000, 3.315829]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });