$(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: [[1157068800000,3.4686],[1157155200000,3.43428],[1157241600000,3.43428],[1157328000000,3.43428],[1157414400000,3.46702],[1157500800000,3.47686],[1157587200000,3.44797],[1157673600000,3.41522],[1157760000000,3.41457],[1157846400000,3.41457],[1157932800000,3.41457],[1158019200000,3.41457],[1158105600000,3.41767],[1158192000000,3.43633],[1158278400000,3.41652],[1158364800000,3.42916],[1158451200000,3.42916],[1158537600000,3.42916],[1158624000000,3.45664],[1158710400000,3.43748],[1158796800000,3.42576],[1158883200000,3.42888],[1158969600000,3.29931],[1159056000000,3.29931],[1159142400000,3.29931],[1159228800000,3.34518],[1159315200000,3.29952],[1159401600000,3.3775],[1159488000000,3.35637],[1159574400000,3.34518]], 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: [[1157068800000, 3.468602],[1157068800000, 3.468602],[1157155200000, 3.434279],[1157241600000, 3.434279],[1157328000000, 3.434279],[1157414400000, 3.467019],[1157500800000, 3.476862],[1157587200000, 3.447972],[1157673600000, 3.415222],[1157760000000, 3.414565],[1157846400000, 3.414565],[1157932800000, 3.414565],[1158019200000, 3.414565],[1158105600000, 3.417671],[1158192000000, 3.436331],[1158278400000, 3.416524],[1158364800000, 3.429163],[1158451200000, 3.429163],[1158537600000, 3.429163],[1158624000000, 3.456642],[1158710400000, 3.437477],[1158796800000, 3.425763],[1158883200000, 3.428883],[1158969600000, 3.299309],[1159056000000, 3.299309],[1159142400000, 3.299309],[1159228800000, 3.345183],[1159315200000, 3.299524],[1159401600000, 3.377495],[1159488000000, 3.356370],[1159574400000, 3.345176]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });