$(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: [[1267401600000,0.0896661],[1267488000000,0.0895539],[1267574400000,0.0896427],[1267660800000,0.0899337],[1267747200000,0.0902929],[1267833600000,0.0892624],[1267920000000,0.0892624],[1268006400000,0.0892624],[1268092800000,0.0892624],[1268179200000,0.0889247],[1268265600000,0.0882108],[1268352000000,0.0880074],[1268438400000,0.088157],[1268524800000,0.088157],[1268611200000,0.088157],[1268697600000,0.0879491],[1268784000000,0.0881213],[1268870400000,0.0881764],[1268956800000,0.088342],[1269043200000,0.0877786],[1269129600000,0.0877786],[1269216000000,0.0877786],[1269302400000,0.0883742],[1269388800000,0.0879808],[1269475200000,0.086313],[1269561600000,0.0858121],[1269648000000,0.0853946],[1269734400000,0.0853946],[1269820800000,0.0853946],[1269907200000,0.0855773],[1269993600000,0.0856129]], 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: [[1267401600000, 0.089666],[1267401600000, 0.089666],[1267488000000, 0.089554],[1267574400000, 0.089643],[1267660800000, 0.089934],[1267747200000, 0.090293],[1267833600000, 0.089262],[1267920000000, 0.089262],[1268006400000, 0.089262],[1268092800000, 0.089262],[1268179200000, 0.088925],[1268265600000, 0.088211],[1268352000000, 0.088007],[1268438400000, 0.088157],[1268524800000, 0.088157],[1268611200000, 0.088157],[1268697600000, 0.087949],[1268784000000, 0.088121],[1268870400000, 0.088176],[1268956800000, 0.088342],[1269043200000, 0.087779],[1269129600000, 0.087779],[1269216000000, 0.087779],[1269302400000, 0.088374],[1269388800000, 0.087981],[1269475200000, 0.086313],[1269561600000, 0.085812],[1269648000000, 0.085395],[1269734400000, 0.085395],[1269820800000, 0.085395],[1269907200000, 0.085577],[1269993600000, 0.085613]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });