$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1154390400000,3.20158],[1154476800000,3.19529],[1154563200000,3.1916],[1154649600000,3.19889],[1154736000000,3.20403],[1154822400000,3.20403],[1154908800000,3.20403],[1154995200000,3.20758],[1155081600000,3.21118],[1155168000000,3.21148],[1155254400000,3.21791],[1155340800000,3.20327],[1155427200000,3.20327],[1155513600000,3.20327],[1155600000000,3.19357],[1155686400000,3.19406],[1155772800000,3.19793],[1155859200000,3.21307],[1155945600000,3.20924],[1156032000000,3.20924],[1156118400000,3.20924],[1156204800000,3.21606],[1156291200000,3.20665],[1156377600000,3.20872],[1156464000000,3.20872],[1156550400000,3.20872],[1156636800000,3.20872],[1156723200000,3.20872],[1156809600000,3.20444],[1156896000000,3.21058],[1156982400000,3.20784]], 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.201577],[1154390400000, 3.201577],[1154476800000, 3.195286],[1154563200000, 3.191600],[1154649600000, 3.198892],[1154736000000, 3.204027],[1154822400000, 3.204027],[1154908800000, 3.204027],[1154995200000, 3.207577],[1155081600000, 3.211181],[1155168000000, 3.211483],[1155254400000, 3.217914],[1155340800000, 3.203265],[1155427200000, 3.203265],[1155513600000, 3.203265],[1155600000000, 3.193571],[1155686400000, 3.194058],[1155772800000, 3.197933],[1155859200000, 3.213069],[1155945600000, 3.209238],[1156032000000, 3.209238],[1156118400000, 3.209238],[1156204800000, 3.216058],[1156291200000, 3.206651],[1156377600000, 3.208719],[1156464000000, 3.208719],[1156550400000, 3.208719],[1156636800000, 3.208719],[1156723200000, 3.208719],[1156809600000, 3.204442],[1156896000000, 3.210583],[1156982400000, 3.207835]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });