$(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: [[1335830400000,3.06124],[1335916800000,3.06124],[1336003200000,3.06124],[1336089600000,3.03671],[1336176000000,3.03879],[1336262400000,3.03879],[1336348800000,3.03879],[1336435200000,3.01543],[1336521600000,3.01365],[1336608000000,3.01365],[1336694400000,2.99926],[1336780800000,2.99532],[1336867200000,2.99532],[1336953600000,2.99532],[1337040000000,2.97658],[1337126400000,2.97195],[1337212800000,2.94766],[1337299200000,2.93506],[1337385600000,2.94427],[1337472000000,2.94427],[1337558400000,2.94427],[1337644800000,2.95099],[1337731200000,2.95552],[1337817600000,2.93029],[1337904000000,2.90668],[1337990400000,2.90413],[1338076800000,2.90413],[1338163200000,2.90413],[1338249600000,2.90876],[1338336000000,2.89881],[1338422400000,2.87913]], 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: [[1335830400000, 3.061237],[1335830400000, 3.061237],[1335916800000, 3.061237],[1336003200000, 3.061237],[1336089600000, 3.036708],[1336176000000, 3.038791],[1336262400000, 3.038791],[1336348800000, 3.038791],[1336435200000, 3.015429],[1336521600000, 3.013653],[1336608000000, 3.013653],[1336694400000, 2.999258],[1336780800000, 2.995324],[1336867200000, 2.995324],[1336953600000, 2.995324],[1337040000000, 2.976580],[1337126400000, 2.971952],[1337212800000, 2.947655],[1337299200000, 2.935063],[1337385600000, 2.944273],[1337472000000, 2.944273],[1337558400000, 2.944273],[1337644800000, 2.950985],[1337731200000, 2.955521],[1337817600000, 2.930290],[1337904000000, 2.906679],[1337990400000, 2.904133],[1338076800000, 2.904133],[1338163200000, 2.904133],[1338249600000, 2.908763],[1338336000000, 2.898809],[1338422400000, 2.879133]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });