$(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: [[1154390400000,3.39155],[1154476800000,3.36464],[1154563200000,3.35217],[1154649600000,3.37133],[1154736000000,3.3891],[1154822400000,3.3891],[1154908800000,3.3891],[1154995200000,3.44458],[1155081600000,3.44401],[1155168000000,3.4743],[1155254400000,3.48139],[1155340800000,3.48704],[1155427200000,3.48704],[1155513600000,3.48704],[1155600000000,3.44467],[1155686400000,3.44011],[1155772800000,3.48179],[1155859200000,3.5069],[1155945600000,3.50217],[1156032000000,3.50217],[1156118400000,3.50217],[1156204800000,3.49405],[1156291200000,3.46939],[1156377600000,3.46196],[1156464000000,3.46196],[1156550400000,3.46196],[1156636800000,3.46196],[1156723200000,3.46196],[1156809600000,3.39246],[1156896000000,3.4246],[1156982400000,3.43309]], 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, 3.391549],[1154390400000, 3.391549],[1154476800000, 3.364645],[1154563200000, 3.352173],[1154649600000, 3.371327],[1154736000000, 3.389098],[1154822400000, 3.389098],[1154908800000, 3.389098],[1154995200000, 3.444583],[1155081600000, 3.444011],[1155168000000, 3.474303],[1155254400000, 3.481386],[1155340800000, 3.487041],[1155427200000, 3.487041],[1155513600000, 3.487041],[1155600000000, 3.444671],[1155686400000, 3.440110],[1155772800000, 3.481792],[1155859200000, 3.506899],[1155945600000, 3.502172],[1156032000000, 3.502172],[1156118400000, 3.502172],[1156204800000, 3.494053],[1156291200000, 3.469387],[1156377600000, 3.461962],[1156464000000, 3.461962],[1156550400000, 3.461962],[1156636800000, 3.461962],[1156723200000, 3.461962],[1156809600000, 3.392464],[1156896000000, 3.424599],[1156982400000, 3.433089]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });