$(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: [[1275350400000,0.0866047],[1275436800000,0.0870579],[1275523200000,0.0861828],[1275609600000,0.0854823],[1275696000000,0.0855015],[1275782400000,0.0855015],[1275868800000,0.0855015],[1275955200000,0.0862254],[1276041600000,0.0865107],[1276128000000,0.0864591],[1276214400000,0.0868163],[1276300800000,0.0863807],[1276387200000,0.0863807],[1276473600000,0.0863807],[1276560000000,0.0862311],[1276646400000,0.0867963],[1276732800000,0.0866221],[1276819200000,0.0866516],[1276905600000,0.0873047],[1276992000000,0.0873047],[1277078400000,0.0873047],[1277164800000,0.086668],[1277251200000,0.0872857],[1277337600000,0.087632],[1277424000000,0.0884981],[1277510400000,0.088384],[1277596800000,0.088384],[1277683200000,0.088384],[1277769600000,0.088384],[1277856000000,0.0890496]], 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: [[1275350400000, 0.086605],[1275350400000, 0.086605],[1275436800000, 0.087058],[1275523200000, 0.086183],[1275609600000, 0.085482],[1275696000000, 0.085501],[1275782400000, 0.085501],[1275868800000, 0.085501],[1275955200000, 0.086225],[1276041600000, 0.086511],[1276128000000, 0.086459],[1276214400000, 0.086816],[1276300800000, 0.086381],[1276387200000, 0.086381],[1276473600000, 0.086381],[1276560000000, 0.086231],[1276646400000, 0.086796],[1276732800000, 0.086622],[1276819200000, 0.086652],[1276905600000, 0.087305],[1276992000000, 0.087305],[1277078400000, 0.087305],[1277164800000, 0.086668],[1277251200000, 0.087286],[1277337600000, 0.087632],[1277424000000, 0.088498],[1277510400000, 0.088384],[1277596800000, 0.088384],[1277683200000, 0.088384],[1277769600000, 0.088384],[1277856000000, 0.089050]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });