$(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: [[1277942400000,0.0891681],[1278028800000,0.0901595],[1278115200000,0.0903358],[1278201600000,0.0903358],[1278288000000,0.0903358],[1278374400000,0.0901621],[1278460800000,0.0900595],[1278547200000,0.090699],[1278633600000,0.0897726],[1278720000000,0.0892985],[1278806400000,0.0892985],[1278892800000,0.0892985],[1278979200000,0.0892313],[1279065600000,0.0895203],[1279152000000,0.0892304],[1279238400000,0.0896043],[1279324800000,0.0912541],[1279411200000,0.0912541],[1279497600000,0.0912541],[1279584000000,0.0907047],[1279670400000,0.0909793],[1279756800000,0.0907637],[1279843200000,0.0909532],[1279929600000,0.0905358],[1280016000000,0.0905358],[1280102400000,0.0905358],[1280188800000,0.0909027],[1280275200000,0.0904167],[1280361600000,0.0899469],[1280448000000,0.0907746],[1280534400000,0.0913036]], 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: [[1277942400000, 0.089168],[1277942400000, 0.089168],[1278028800000, 0.090160],[1278115200000, 0.090336],[1278201600000, 0.090336],[1278288000000, 0.090336],[1278374400000, 0.090162],[1278460800000, 0.090060],[1278547200000, 0.090699],[1278633600000, 0.089773],[1278720000000, 0.089299],[1278806400000, 0.089299],[1278892800000, 0.089299],[1278979200000, 0.089231],[1279065600000, 0.089520],[1279152000000, 0.089230],[1279238400000, 0.089604],[1279324800000, 0.091254],[1279411200000, 0.091254],[1279497600000, 0.091254],[1279584000000, 0.090705],[1279670400000, 0.090979],[1279756800000, 0.090764],[1279843200000, 0.090953],[1279929600000, 0.090536],[1280016000000, 0.090536],[1280102400000, 0.090536],[1280188800000, 0.090903],[1280275200000, 0.090417],[1280361600000, 0.089947],[1280448000000, 0.090775],[1280534400000, 0.091304]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });