$(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: [[1275350400000,2.82479],[1275436800000,2.7899],[1275523200000,2.80454],[1275609600000,2.8159],[1275696000000,2.76676],[1275782400000,2.76676],[1275868800000,2.76676],[1275955200000,2.74349],[1276041600000,2.73904],[1276128000000,2.75418],[1276214400000,2.76179],[1276300800000,2.78021],[1276387200000,2.78021],[1276473600000,2.78021],[1276560000000,2.80785],[1276646400000,2.80967],[1276732800000,2.81356],[1276819200000,2.83309],[1276905600000,2.83498],[1276992000000,2.83498],[1277078400000,2.83498],[1277164800000,2.8389],[1277251200000,2.80832],[1277337600000,2.81108],[1277424000000,2.80888],[1277510400000,2.8155],[1277596800000,2.8155],[1277683200000,2.8155],[1277769600000,2.8155],[1277856000000,2.79337]], 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: [[1275350400000, 2.824786],[1275350400000, 2.824786],[1275436800000, 2.789898],[1275523200000, 2.804535],[1275609600000, 2.815905],[1275696000000, 2.766765],[1275782400000, 2.766765],[1275868800000, 2.766765],[1275955200000, 2.743490],[1276041600000, 2.739037],[1276128000000, 2.754182],[1276214400000, 2.761789],[1276300800000, 2.780205],[1276387200000, 2.780205],[1276473600000, 2.780205],[1276560000000, 2.807855],[1276646400000, 2.809669],[1276732800000, 2.813562],[1276819200000, 2.833092],[1276905600000, 2.834975],[1276992000000, 2.834975],[1277078400000, 2.834975],[1277164800000, 2.838898],[1277251200000, 2.808320],[1277337600000, 2.811085],[1277424000000, 2.808882],[1277510400000, 2.815500],[1277596800000, 2.815500],[1277683200000, 2.815500],[1277769600000, 2.815500],[1277856000000, 2.793373]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });