$(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: [[1285891200000,0.0949645],[1285977600000,0.0950213],[1286064000000,0.0950213],[1286150400000,0.0950213],[1286236800000,0.0950089],[1286323200000,0.0949464],[1286409600000,0.0953206],[1286496000000,0.0960046],[1286582400000,0.0960879],[1286668800000,0.0960879],[1286755200000,0.0960879],[1286841600000,0.0964919],[1286928000000,0.0965308],[1287014400000,0.0966527],[1287100800000,0.0974587],[1287187200000,0.097506],[1287273600000,0.097506],[1287360000000,0.097506],[1287446400000,0.0972917],[1287532800000,0.0968954],[1287619200000,0.0974],[1287705600000,0.0975706],[1287792000000,0.097405],[1287878400000,0.097405],[1287964800000,0.097405],[1288051200000,0.0980546],[1288137600000,0.097309],[1288224000000,0.0968291],[1288310400000,0.0973892],[1288396800000,0.0979912],[1288483200000,0.0979912]], 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: [[1285891200000, 0.094964],[1285891200000, 0.094964],[1285977600000, 0.095021],[1286064000000, 0.095021],[1286150400000, 0.095021],[1286236800000, 0.095009],[1286323200000, 0.094946],[1286409600000, 0.095321],[1286496000000, 0.096005],[1286582400000, 0.096088],[1286668800000, 0.096088],[1286755200000, 0.096088],[1286841600000, 0.096492],[1286928000000, 0.096531],[1287014400000, 0.096653],[1287100800000, 0.097459],[1287187200000, 0.097506],[1287273600000, 0.097506],[1287360000000, 0.097506],[1287446400000, 0.097292],[1287532800000, 0.096895],[1287619200000, 0.097400],[1287705600000, 0.097571],[1287792000000, 0.097405],[1287878400000, 0.097405],[1287964800000, 0.097405],[1288051200000, 0.098055],[1288137600000, 0.097309],[1288224000000, 0.096829],[1288310400000, 0.097389],[1288396800000, 0.097991],[1288483200000, 0.097991]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });