$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1154390400000,4.10318],[1154476800000,4.09931],[1154563200000,4.10896],[1154649600000,4.09908],[1154736000000,4.09402],[1154822400000,4.09402],[1154908800000,4.09402],[1154995200000,4.12802],[1155081600000,4.11977],[1155168000000,4.12841],[1155254400000,4.1177],[1155340800000,4.08367],[1155427200000,4.08367],[1155513600000,4.08367],[1155600000000,4.06313],[1155686400000,4.0628],[1155772800000,4.09227],[1155859200000,4.12187],[1155945600000,4.08712],[1156032000000,4.08712],[1156118400000,4.08712],[1156204800000,4.1331],[1156291200000,4.10094],[1156377600000,4.09523],[1156464000000,4.09523],[1156550400000,4.09523],[1156636800000,4.09523],[1156723200000,4.09523],[1156809600000,4.09062],[1156896000000,4.10044],[1156982400000,4.10521]], 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, 4.103185],[1154390400000, 4.103185],[1154476800000, 4.099310],[1154563200000, 4.108964],[1154649600000, 4.099076],[1154736000000, 4.094024],[1154822400000, 4.094024],[1154908800000, 4.094024],[1154995200000, 4.128022],[1155081600000, 4.119771],[1155168000000, 4.128409],[1155254400000, 4.117697],[1155340800000, 4.083666],[1155427200000, 4.083666],[1155513600000, 4.083666],[1155600000000, 4.063130],[1155686400000, 4.062796],[1155772800000, 4.092269],[1155859200000, 4.121868],[1155945600000, 4.087122],[1156032000000, 4.087122],[1156118400000, 4.087122],[1156204800000, 4.133098],[1156291200000, 4.100944],[1156377600000, 4.095234],[1156464000000, 4.095234],[1156550400000, 4.095234],[1156636800000, 4.095234],[1156723200000, 4.095234],[1156809600000, 4.090621],[1156896000000, 4.100444],[1156982400000, 4.105207]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });