$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1143849600000,7.27627],[1143936000000,7.27627],[1144022400000,7.27627],[1144108800000,7.26189],[1144195200000,7.29525],[1144281600000,7.31897],[1144368000000,7.3322],[1144454400000,7.30057],[1144540800000,7.30057],[1144627200000,7.30057],[1144713600000,7.27996],[1144800000000,7.27626],[1144886400000,7.29261],[1144972800000,7.27916],[1145059200000,7.27916],[1145145600000,7.27916],[1145232000000,7.27916],[1145318400000,7.27951],[1145404800000,7.32576],[1145491200000,7.35536],[1145577600000,7.34541],[1145664000000,7.34535],[1145750400000,7.34535],[1145836800000,7.34535],[1145923200000,7.34535],[1146009600000,7.3812],[1146096000000,7.38002],[1146182400000,7.38946],[1146268800000,7.42886],[1146355200000,7.42886]], 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: [[1143849600000, 7.276269],[1143849600000, 7.276269],[1143936000000, 7.276269],[1144022400000, 7.276269],[1144108800000, 7.261893],[1144195200000, 7.295253],[1144281600000, 7.318968],[1144368000000, 7.332198],[1144454400000, 7.300568],[1144540800000, 7.300568],[1144627200000, 7.300568],[1144713600000, 7.279961],[1144800000000, 7.276259],[1144886400000, 7.292608],[1144972800000, 7.279164],[1145059200000, 7.279164],[1145145600000, 7.279164],[1145232000000, 7.279164],[1145318400000, 7.279510],[1145404800000, 7.325763],[1145491200000, 7.355362],[1145577600000, 7.345412],[1145664000000, 7.345348],[1145750400000, 7.345348],[1145836800000, 7.345348],[1145923200000, 7.345348],[1146009600000, 7.381196],[1146096000000, 7.380020],[1146182400000, 7.389458],[1146268800000, 7.428863],[1146355200000, 7.428863]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });