$(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: [[1448928000000,0.194553],[1449014400000,0.193552],[1449100800000,0.192004],[1449187200000,0.187248],[1449273600000,0.192286],[1449360000000,0.192286],[1449446400000,0.192286],[1449532800000,0.190014],[1449619200000,0.186457],[1449705600000,0.18688],[1449792000000,0.192314],[1449878400000,0.196413],[1449964800000,0.196413],[1450051200000,0.196413],[1450137600000,0.197316],[1450224000000,0.193826],[1450310400000,0.193074],[1450396800000,0.191711],[1450483200000,0.193882],[1450569600000,0.193882],[1450656000000,0.193882],[1450742400000,0.193771],[1450828800000,0.19144],[1450915200000,0.190296],[1451001600000,0.190694],[1451088000000,0.192131],[1451174400000,0.192131],[1451260800000,0.192131],[1451347200000,0.197636],[1451433600000,0.197571],[1451520000000,0.199173]], 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: [[1448928000000, 0.194553],[1448928000000, 0.194553],[1449014400000, 0.193552],[1449100800000, 0.192004],[1449187200000, 0.187248],[1449273600000, 0.192286],[1449360000000, 0.192286],[1449446400000, 0.192286],[1449532800000, 0.190014],[1449619200000, 0.186457],[1449705600000, 0.186880],[1449792000000, 0.192314],[1449878400000, 0.196413],[1449964800000, 0.196413],[1450051200000, 0.196413],[1450137600000, 0.197316],[1450224000000, 0.193826],[1450310400000, 0.193074],[1450396800000, 0.191711],[1450483200000, 0.193882],[1450569600000, 0.193882],[1450656000000, 0.193882],[1450742400000, 0.193771],[1450828800000, 0.191440],[1450915200000, 0.190296],[1451001600000, 0.190694],[1451088000000, 0.192131],[1451174400000, 0.192131],[1451260800000, 0.192131],[1451347200000, 0.197636],[1451433600000, 0.197571],[1451520000000, 0.199173]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });