$(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: [[1146441600000,7.42886],[1146528000000,7.42886],[1146614400000,7.42886],[1146700800000,7.46489],[1146787200000,7.45445],[1146873600000,7.47682],[1146960000000,7.47682],[1147046400000,7.47682],[1147132800000,7.47682],[1147219200000,7.47682],[1147305600000,7.52986],[1147392000000,7.5101],[1147478400000,7.58009],[1147564800000,7.58009],[1147651200000,7.58009],[1147737600000,7.5421],[1147824000000,7.54495],[1147910400000,7.57662],[1147996800000,7.53413],[1148083200000,7.52106],[1148169600000,7.52106],[1148256000000,7.52106],[1148342400000,7.51813],[1148428800000,7.54346],[1148515200000,7.54709],[1148601600000,7.51609],[1148688000000,7.52804],[1148774400000,7.52804],[1148860800000,7.52804],[1148947200000,7.52804],[1149033600000,7.54277]], 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: [[1146441600000, 7.428863],[1146441600000, 7.428863],[1146528000000, 7.428863],[1146614400000, 7.428863],[1146700800000, 7.464893],[1146787200000, 7.454447],[1146873600000, 7.476818],[1146960000000, 7.476818],[1147046400000, 7.476818],[1147132800000, 7.476818],[1147219200000, 7.476818],[1147305600000, 7.529862],[1147392000000, 7.510098],[1147478400000, 7.580090],[1147564800000, 7.580090],[1147651200000, 7.580090],[1147737600000, 7.542098],[1147824000000, 7.544948],[1147910400000, 7.576621],[1147996800000, 7.534131],[1148083200000, 7.521059],[1148169600000, 7.521059],[1148256000000, 7.521059],[1148342400000, 7.518125],[1148428800000, 7.543461],[1148515200000, 7.547091],[1148601600000, 7.516089],[1148688000000, 7.528044],[1148774400000, 7.528044],[1148860800000, 7.528044],[1148947200000, 7.528044],[1149033600000, 7.542774]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });