$(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: [[1243814400000,3.11068],[1243900800000,3.13431],[1243987200000,3.13869],[1244073600000,3.13124],[1244160000000,3.10741],[1244246400000,3.1254],[1244332800000,3.1254],[1244419200000,3.1254],[1244505600000,3.1254],[1244592000000,3.07662],[1244678400000,3.10809],[1244764800000,3.0789],[1244851200000,3.08706],[1244937600000,3.08706],[1245024000000,3.08706],[1245110400000,3.05311],[1245196800000,3.06193],[1245283200000,3.05396],[1245369600000,3.07096],[1245456000000,3.07337],[1245542400000,3.07337],[1245628800000,3.07337],[1245715200000,3.05443],[1245801600000,3.08121],[1245888000000,3.09749],[1245974400000,3.07986],[1246060800000,3.11506],[1246147200000,3.11506],[1246233600000,3.11506],[1246320000000,3.11506]], 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: [[1243814400000, 3.110682],[1243814400000, 3.110682],[1243900800000, 3.134306],[1243987200000, 3.138686],[1244073600000, 3.131235],[1244160000000, 3.107407],[1244246400000, 3.125403],[1244332800000, 3.125403],[1244419200000, 3.125403],[1244505600000, 3.125403],[1244592000000, 3.076616],[1244678400000, 3.108093],[1244764800000, 3.078901],[1244851200000, 3.087061],[1244937600000, 3.087061],[1245024000000, 3.087061],[1245110400000, 3.053113],[1245196800000, 3.061931],[1245283200000, 3.053955],[1245369600000, 3.070963],[1245456000000, 3.073368],[1245542400000, 3.073368],[1245628800000, 3.073368],[1245715200000, 3.054435],[1245801600000, 3.081208],[1245888000000, 3.097488],[1245974400000, 3.079857],[1246060800000, 3.115058],[1246147200000, 3.115058],[1246233600000, 3.115058],[1246320000000, 3.115058]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });