$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1154390400000,0.0442143],[1154476800000,0.0440056],[1154563200000,0.0440018],[1154649600000,0.0439554],[1154736000000,0.0437489],[1154822400000,0.0437489],[1154908800000,0.0437489],[1154995200000,0.0438848],[1155081600000,0.0438977],[1155168000000,0.0438948],[1155254400000,0.0439831],[1155340800000,0.0435286],[1155427200000,0.0435286],[1155513600000,0.0435286],[1155600000000,0.0432964],[1155686400000,0.0433144],[1155772800000,0.0434463],[1155859200000,0.0437796],[1155945600000,0.0435853],[1156032000000,0.0435853],[1156118400000,0.0435853],[1156204800000,0.0436599],[1156291200000,0.0433737],[1156377600000,0.043397],[1156464000000,0.043397],[1156550400000,0.043397],[1156636800000,0.043397],[1156723200000,0.043397],[1156809600000,0.0431365],[1156896000000,0.0432529],[1156982400000,0.0431309]], 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, 0.044214],[1154390400000, 0.044214],[1154476800000, 0.044006],[1154563200000, 0.044002],[1154649600000, 0.043955],[1154736000000, 0.043749],[1154822400000, 0.043749],[1154908800000, 0.043749],[1154995200000, 0.043885],[1155081600000, 0.043898],[1155168000000, 0.043895],[1155254400000, 0.043983],[1155340800000, 0.043529],[1155427200000, 0.043529],[1155513600000, 0.043529],[1155600000000, 0.043296],[1155686400000, 0.043314],[1155772800000, 0.043446],[1155859200000, 0.043780],[1155945600000, 0.043585],[1156032000000, 0.043585],[1156118400000, 0.043585],[1156204800000, 0.043660],[1156291200000, 0.043374],[1156377600000, 0.043397],[1156464000000, 0.043397],[1156550400000, 0.043397],[1156636800000, 0.043397],[1156723200000, 0.043397],[1156809600000, 0.043137],[1156896000000, 0.043253],[1156982400000, 0.043131]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });