$(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: [[1341100800000,12.0995],[1341187200000,12.0995],[1341273600000,12.1469],[1341360000000,12.1305],[1341446400000,12.1305],[1341532800000,12.1029],[1341619200000,12.0492],[1341705600000,12.0499],[1341792000000,12.0499],[1341878400000,12.026],[1341964800000,12.0317],[1342051200000,12.0311],[1342137600000,11.9868],[1342224000000,11.9916],[1342310400000,11.9916],[1342396800000,11.9916],[1342483200000,11.9977],[1342569600000,12.0374],[1342656000000,12.021],[1342742400000,12.0567],[1342828800000,12.0353],[1342915200000,12.0353],[1343001600000,12.0353],[1343088000000,11.994],[1343174400000,11.9778],[1343260800000,11.9933],[1343347200000,12.0265],[1343433600000,12.0727],[1343520000000,12.0727],[1343606400000,12.0727],[1343692800000,12.0518]], 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: [[1341100800000, 12.099527],[1341100800000, 12.099527],[1341187200000, 12.099527],[1341273600000, 12.146860],[1341360000000, 12.130452],[1341446400000, 12.130452],[1341532800000, 12.102898],[1341619200000, 12.049165],[1341705600000, 12.049918],[1341792000000, 12.049918],[1341878400000, 12.026005],[1341964800000, 12.031743],[1342051200000, 12.031073],[1342137600000, 11.986779],[1342224000000, 11.991581],[1342310400000, 11.991581],[1342396800000, 11.991581],[1342483200000, 11.997700],[1342569600000, 12.037361],[1342656000000, 12.021031],[1342742400000, 12.056662],[1342828800000, 12.035294],[1342915200000, 12.035294],[1343001600000, 12.035294],[1343088000000, 11.994028],[1343174400000, 11.977798],[1343260800000, 11.993344],[1343347200000, 12.026530],[1343433600000, 12.072705],[1343520000000, 12.072705],[1343606400000, 12.072705],[1343692800000, 12.051808]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });