$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1154390400000,5.05],[1154476800000,5.05],[1154563200000,5.05],[1154649600000,5.05],[1154736000000,5.05],[1154822400000,5.05],[1154908800000,5.05],[1154995200000,5.05],[1155081600000,5.05],[1155168000000,5.05],[1155254400000,5.05],[1155340800000,5.05],[1155427200000,5.05],[1155513600000,5.05],[1155600000000,5.05],[1155686400000,5.05],[1155772800000,5.05],[1155859200000,5.05],[1155945600000,5.05],[1156032000000,5.05],[1156118400000,5.05],[1156204800000,5.05],[1156291200000,5.05],[1156377600000,5.05],[1156464000000,5.05],[1156550400000,5.05],[1156636800000,5.05],[1156723200000,5.05],[1156809600000,5.05],[1156896000000,5.05],[1156982400000,5.05]], 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.050000],[1154390400000, 5.050000],[1154476800000, 5.050000],[1154563200000, 5.050000],[1154649600000, 5.050000],[1154736000000, 5.050000],[1154822400000, 5.050000],[1154908800000, 5.050000],[1154995200000, 5.050000],[1155081600000, 5.050000],[1155168000000, 5.050000],[1155254400000, 5.050000],[1155340800000, 5.050000],[1155427200000, 5.050000],[1155513600000, 5.050000],[1155600000000, 5.050000],[1155686400000, 5.050000],[1155772800000, 5.050000],[1155859200000, 5.050000],[1155945600000, 5.050000],[1156032000000, 5.050000],[1156118400000, 5.050000],[1156204800000, 5.050000],[1156291200000, 5.050000],[1156377600000, 5.050000],[1156464000000, 5.050000],[1156550400000, 5.050000],[1156636800000, 5.050000],[1156723200000, 5.050000],[1156809600000, 5.050000],[1156896000000, 5.050000],[1156982400000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });