$(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: [[1343779200000,8.17263],[1343865600000,8.18263],[1343952000000,8.20705],[1344038400000,8.14804],[1344124800000,8.14804],[1344211200000,8.14804],[1344297600000,8.23652],[1344384000000,8.27307],[1344470400000,8.2086],[1344556800000,8.18667],[1344643200000,8.16139],[1344729600000,8.16139],[1344816000000,8.16139],[1344902400000,8.21196],[1344988800000,8.22061],[1345075200000,8.16935],[1345161600000,8.17203],[1345248000000,8.20994],[1345334400000,8.20994],[1345420800000,8.20994],[1345507200000,8.186],[1345593600000,8.27119],[1345680000000,8.28519],[1345766400000,8.35372],[1345852800000,8.35372],[1345939200000,8.35372],[1346025600000,8.35372],[1346112000000,8.33907],[1346198400000,8.35105],[1346284800000,8.34906],[1346371200000,8.34909]], 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: [[1343779200000, 8.172633],[1343779200000, 8.172633],[1343865600000, 8.182628],[1343952000000, 8.207051],[1344038400000, 8.148042],[1344124800000, 8.148042],[1344211200000, 8.148042],[1344297600000, 8.236523],[1344384000000, 8.273071],[1344470400000, 8.208595],[1344556800000, 8.186669],[1344643200000, 8.161393],[1344729600000, 8.161393],[1344816000000, 8.161393],[1344902400000, 8.211959],[1344988800000, 8.220611],[1345075200000, 8.169350],[1345161600000, 8.172027],[1345248000000, 8.209944],[1345334400000, 8.209944],[1345420800000, 8.209944],[1345507200000, 8.186003],[1345593600000, 8.271191],[1345680000000, 8.285191],[1345766400000, 8.353717],[1345852800000, 8.353717],[1345939200000, 8.353717],[1346025600000, 8.353717],[1346112000000, 8.339075],[1346198400000, 8.351054],[1346284800000, 8.349058],[1346371200000, 8.349088]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });