$(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: [[1164931200000,1.93061],[1165017600000,1.93704],[1165104000000,1.93704],[1165190400000,1.93704],[1165276800000,1.94655],[1165363200000,1.94977],[1165449600000,1.94143],[1165536000000,1.94479],[1165622400000,1.94172],[1165708800000,1.94172],[1165795200000,1.94172],[1165881600000,1.92724],[1165968000000,1.93704],[1166054400000,1.94011],[1166140800000,1.92944],[1166227200000,1.91686],[1166313600000,1.91686],[1166400000000,1.91686],[1166486400000,1.91525],[1166572800000,1.92446],[1166659200000,1.93105],[1166745600000,1.92739],[1166832000000,1.92944],[1166918400000,1.92944],[1167004800000,1.92944],[1167091200000,1.92944],[1167177600000,1.92944],[1167264000000,1.92461],[1167350400000,1.92666],[1167436800000,1.92622]], 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: [[1164931200000, 1.930607],[1164931200000, 1.930607],[1165017600000, 1.937042],[1165104000000, 1.937042],[1165190400000, 1.937042],[1165276800000, 1.946549],[1165363200000, 1.949767],[1165449600000, 1.941430],[1165536000000, 1.944794],[1165622400000, 1.941723],[1165708800000, 1.941723],[1165795200000, 1.941723],[1165881600000, 1.927243],[1165968000000, 1.937042],[1166054400000, 1.940114],[1166140800000, 1.929437],[1166227200000, 1.916859],[1166313600000, 1.916859],[1166400000000, 1.916859],[1166486400000, 1.915250],[1166572800000, 1.924464],[1166659200000, 1.931046],[1166745600000, 1.927389],[1166832000000, 1.929437],[1166918400000, 1.929437],[1167004800000, 1.929437],[1167091200000, 1.929437],[1167177600000, 1.929437],[1167264000000, 1.924610],[1167350400000, 1.926658],[1167436800000, 1.926219]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });