$(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: [[1220227200000,0.0445692],[1220313600000,0.0449328],[1220400000000,0.0445567],[1220486400000,0.0446883],[1220572800000,0.0448272],[1220659200000,0.0456047],[1220745600000,0.0456047],[1220832000000,0.0456047],[1220918400000,0.0446532],[1221004800000,0.0448778],[1221091200000,0.0454291],[1221177600000,0.0454718],[1221264000000,0.0452245],[1221350400000,0.0452245],[1221436800000,0.0452245],[1221523200000,0.0458106],[1221609600000,0.0467418],[1221696000000,0.0459218],[1221782400000,0.0462955],[1221868800000,0.0451276],[1221955200000,0.0451276],[1222041600000,0.0451276],[1222128000000,0.0455391],[1222214400000,0.0460176],[1222300800000,0.0458924],[1222387200000,0.0458386],[1222473600000,0.046173],[1222560000000,0.046173],[1222646400000,0.046173],[1222732800000,0.0457981]], 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: [[1220227200000, 0.044569],[1220227200000, 0.044569],[1220313600000, 0.044933],[1220400000000, 0.044557],[1220486400000, 0.044688],[1220572800000, 0.044827],[1220659200000, 0.045605],[1220745600000, 0.045605],[1220832000000, 0.045605],[1220918400000, 0.044653],[1221004800000, 0.044878],[1221091200000, 0.045429],[1221177600000, 0.045472],[1221264000000, 0.045225],[1221350400000, 0.045225],[1221436800000, 0.045225],[1221523200000, 0.045811],[1221609600000, 0.046742],[1221696000000, 0.045922],[1221782400000, 0.046296],[1221868800000, 0.045128],[1221955200000, 0.045128],[1222041600000, 0.045128],[1222128000000, 0.045539],[1222214400000, 0.046018],[1222300800000, 0.045892],[1222387200000, 0.045839],[1222473600000, 0.046173],[1222560000000, 0.046173],[1222646400000, 0.046173],[1222732800000, 0.045798]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });