$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1154390400000,7.49352],[1154476800000,7.49608],[1154563200000,7.50745],[1154649600000,7.4947],[1154736000000,7.50598],[1154822400000,7.50598],[1154908800000,7.50598],[1154995200000,7.53606],[1155081600000,7.52896],[1155168000000,7.54192],[1155254400000,7.52929],[1155340800000,7.50097],[1155427200000,7.50097],[1155513600000,7.50097],[1155600000000,7.4851],[1155686400000,7.48351],[1155772800000,7.49868],[1155859200000,7.52693],[1155945600000,7.50794],[1156032000000,7.50794],[1156118400000,7.50794],[1156204800000,7.52838],[1156291200000,7.51247],[1156377600000,7.50677],[1156464000000,7.50677],[1156550400000,7.50677],[1156636800000,7.50677],[1156723200000,7.50677],[1156809600000,7.48985],[1156896000000,7.50533],[1156982400000,7.50637]], 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, 7.493516],[1154390400000, 7.493516],[1154476800000, 7.496085],[1154563200000, 7.507452],[1154649600000, 7.494705],[1154736000000, 7.505979],[1154822400000, 7.505979],[1154908800000, 7.505979],[1154995200000, 7.536065],[1155081600000, 7.528964],[1155168000000, 7.541917],[1155254400000, 7.529290],[1155340800000, 7.500973],[1155427200000, 7.500973],[1155513600000, 7.500973],[1155600000000, 7.485097],[1155686400000, 7.483510],[1155772800000, 7.498678],[1155859200000, 7.526933],[1155945600000, 7.507943],[1156032000000, 7.507943],[1156118400000, 7.507943],[1156204800000, 7.528381],[1156291200000, 7.512466],[1156377600000, 7.506771],[1156464000000, 7.506771],[1156550400000, 7.506771],[1156636800000, 7.506771],[1156723200000, 7.506771],[1156809600000, 7.489848],[1156896000000, 7.505332],[1156982400000, 7.506369]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });