$(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: [[1225497600000,3.70982],[1225584000000,3.70982],[1225670400000,3.70982],[1225756800000,3.76623],[1225843200000,3.8542],[1225929600000,3.8608],[1226016000000,3.7917],[1226102400000,3.73576],[1226188800000,3.73576],[1226275200000,3.73576],[1226361600000,3.79695],[1226448000000,3.64386],[1226534400000,3.51553],[1226620800000,3.53501],[1226707200000,3.53569],[1226793600000,3.53569],[1226880000000,3.53569],[1226966400000,3.54797],[1227052800000,3.54694],[1227139200000,3.57252],[1227225600000,3.52332],[1227312000000,3.67213],[1227398400000,3.67213],[1227484800000,3.67213],[1227571200000,3.92671],[1227657600000,4.15219],[1227744000000,4.21995],[1227830400000,4.27809],[1227916800000,4.3555],[1228003200000,4.3555]], 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: [[1225497600000, 3.709822],[1225497600000, 3.709822],[1225584000000, 3.709822],[1225670400000, 3.709822],[1225756800000, 3.766227],[1225843200000, 3.854203],[1225929600000, 3.860801],[1226016000000, 3.791703],[1226102400000, 3.735764],[1226188800000, 3.735764],[1226275200000, 3.735764],[1226361600000, 3.796950],[1226448000000, 3.643857],[1226534400000, 3.515528],[1226620800000, 3.535014],[1226707200000, 3.535687],[1226793600000, 3.535687],[1226880000000, 3.535687],[1226966400000, 3.547972],[1227052800000, 3.546938],[1227139200000, 3.572520],[1227225600000, 3.523319],[1227312000000, 3.672132],[1227398400000, 3.672132],[1227484800000, 3.672132],[1227571200000, 3.926713],[1227657600000, 4.152189],[1227744000000, 4.219946],[1227830400000, 4.278086],[1227916800000, 4.355500],[1228003200000, 4.355500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });