$(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: [[1251763200000,0.0856642],[1251849600000,0.0857164],[1251936000000,0.086262],[1252022400000,0.0864082],[1252108800000,0.0860889],[1252195200000,0.0860889],[1252281600000,0.0860889],[1252368000000,0.0859284],[1252454400000,0.0866516],[1252540800000,0.0865603],[1252627200000,0.0868269],[1252713600000,0.0880064],[1252800000000,0.0880064],[1252886400000,0.0880064],[1252972800000,0.0880143],[1253059200000,0.0877603],[1253145600000,0.0885593],[1253232000000,0.0876556],[1253318400000,0.087751],[1253404800000,0.087751],[1253491200000,0.087751],[1253577600000,0.0866408],[1253664000000,0.0876012],[1253750400000,0.0877034],[1253836800000,0.088341],[1253923200000,0.0885887],[1254009600000,0.0885887],[1254096000000,0.0885887],[1254182400000,0.089475],[1254268800000,0.0890211]], 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: [[1251763200000, 0.085664],[1251763200000, 0.085664],[1251849600000, 0.085716],[1251936000000, 0.086262],[1252022400000, 0.086408],[1252108800000, 0.086089],[1252195200000, 0.086089],[1252281600000, 0.086089],[1252368000000, 0.085928],[1252454400000, 0.086652],[1252540800000, 0.086560],[1252627200000, 0.086827],[1252713600000, 0.088006],[1252800000000, 0.088006],[1252886400000, 0.088006],[1252972800000, 0.088014],[1253059200000, 0.087760],[1253145600000, 0.088559],[1253232000000, 0.087656],[1253318400000, 0.087751],[1253404800000, 0.087751],[1253491200000, 0.087751],[1253577600000, 0.086641],[1253664000000, 0.087601],[1253750400000, 0.087703],[1253836800000, 0.088341],[1253923200000, 0.088589],[1254009600000, 0.088589],[1254096000000, 0.088589],[1254182400000, 0.089475],[1254268800000, 0.089021]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });