$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1193875200000,4.29489],[1193961600000,4.28498],[1194048000000,4.28599],[1194134400000,4.28599],[1194220800000,4.28599],[1194307200000,4.24511],[1194393600000,4.30637],[1194480000000,4.28631],[1194566400000,4.26656],[1194652800000,4.2284],[1194739200000,4.2284],[1194825600000,4.2284],[1194912000000,4.16897],[1194998400000,4.19097],[1195084800000,4.27252],[1195171200000,4.2683],[1195257600000,4.26613],[1195344000000,4.26613],[1195430400000,4.26613],[1195516800000,4.25083],[1195603200000,4.23027],[1195689600000,4.18849],[1195776000000,4.21349],[1195862400000,4.19789],[1195948800000,4.19789],[1196035200000,4.19789],[1196121600000,4.22899],[1196208000000,4.11695],[1196294400000,4.21319],[1196380800000,4.23578]], 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: [[1193875200000, 4.294893],[1193875200000, 4.294893],[1193961600000, 4.284984],[1194048000000, 4.285988],[1194134400000, 4.285988],[1194220800000, 4.285988],[1194307200000, 4.245106],[1194393600000, 4.306369],[1194480000000, 4.286313],[1194566400000, 4.266565],[1194652800000, 4.228396],[1194739200000, 4.228396],[1194825600000, 4.228396],[1194912000000, 4.168967],[1194998400000, 4.190975],[1195084800000, 4.272518],[1195171200000, 4.268300],[1195257600000, 4.266133],[1195344000000, 4.266133],[1195430400000, 4.266133],[1195516800000, 4.250830],[1195603200000, 4.230269],[1195689600000, 4.188494],[1195776000000, 4.213495],[1195862400000, 4.197892],[1195948800000, 4.197892],[1196035200000, 4.197892],[1196121600000, 4.228987],[1196208000000, 4.116947],[1196294400000, 4.213190],[1196380800000, 4.235781]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });