$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1154390400000,5.68438],[1154476800000,5.68438],[1154563200000,5.68694],[1154649600000,5.68758],[1154736000000,5.68694],[1154822400000,5.68694],[1154908800000,5.68694],[1154995200000,5.68822],[1155081600000,5.69014],[1155168000000,5.69271],[1155254400000,5.69399],[1155340800000,5.69656],[1155427200000,5.69656],[1155513600000,5.69656],[1155600000000,5.69849],[1155686400000,5.7017],[1155772800000,5.7017],[1155859200000,5.70364],[1155945600000,5.70493],[1156032000000,5.70493],[1156118400000,5.70493],[1156204800000,5.70815],[1156291200000,5.71009],[1156377600000,5.71332],[1156464000000,5.71332],[1156550400000,5.71332],[1156636800000,5.71332],[1156723200000,5.71332],[1156809600000,5.71914],[1156896000000,5.72238],[1156982400000,5.72627]], 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: [[1154390400000, 5.684376],[1154390400000, 5.684376],[1154476800000, 5.684376],[1154563200000, 5.686937],[1154649600000, 5.687577],[1154736000000, 5.686937],[1154822400000, 5.686937],[1154908800000, 5.686937],[1154995200000, 5.688218],[1155081600000, 5.690141],[1155168000000, 5.692707],[1155254400000, 5.693990],[1155340800000, 5.696560],[1155427200000, 5.696560],[1155513600000, 5.696560],[1155600000000, 5.698488],[1155686400000, 5.701705],[1155772800000, 5.701705],[1155859200000, 5.703637],[1155945600000, 5.704925],[1156032000000, 5.704925],[1156118400000, 5.704925],[1156204800000, 5.708150],[1156291200000, 5.710086],[1156377600000, 5.713316],[1156464000000, 5.713316],[1156550400000, 5.713316],[1156636800000, 5.713316],[1156723200000, 5.713316],[1156809600000, 5.719139],[1156896000000, 5.722380],[1156982400000, 5.726273]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });