$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1154390400000,6.44733],[1154476800000,6.44329],[1154563200000,6.46299],[1154649600000,6.45441],[1154736000000,6.45996],[1154822400000,6.45996],[1154908800000,6.45996],[1154995200000,6.48925],[1155081600000,6.48369],[1155168000000,6.50389],[1155254400000,6.49278],[1155340800000,6.45137],[1155427200000,6.45137],[1155513600000,6.45137],[1155600000000,6.42259],[1155686400000,6.42612],[1155772800000,6.46047],[1155859200000,6.50389],[1155945600000,6.46501],[1156032000000,6.46501],[1156118400000,6.46501],[1156204800000,6.52409],[1156291200000,6.47006],[1156377600000,6.47006],[1156464000000,6.47006],[1156550400000,6.47006],[1156636800000,6.47006],[1156723200000,6.47006],[1156809600000,6.464],[1156896000000,6.46804],[1156982400000,6.47309]], 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, 6.447335],[1154390400000, 6.447335],[1154476800000, 6.443295],[1154563200000, 6.462990],[1154649600000, 6.454405],[1154736000000, 6.459960],[1154822400000, 6.459960],[1154908800000, 6.459960],[1154995200000, 6.489250],[1155081600000, 6.483695],[1155168000000, 6.503895],[1155254400000, 6.492785],[1155340800000, 6.451375],[1155427200000, 6.451375],[1155513600000, 6.451375],[1155600000000, 6.422590],[1155686400000, 6.426125],[1155772800000, 6.460465],[1155859200000, 6.503895],[1155945600000, 6.465010],[1156032000000, 6.465010],[1156118400000, 6.465010],[1156204800000, 6.524095],[1156291200000, 6.470060],[1156377600000, 6.470060],[1156464000000, 6.470060],[1156550400000, 6.470060],[1156636800000, 6.470060],[1156723200000, 6.470060],[1156809600000, 6.464000],[1156896000000, 6.468040],[1156982400000, 6.473090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });