$(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: [[1125532800000,0.0452741],[1125619200000,0.0456805],[1125705600000,0.0460061],[1125792000000,0.0460061],[1125878400000,0.0460061],[1125964800000,0.0463215],[1126051200000,0.0460981],[1126137600000,0.0459061],[1126224000000,0.045721],[1126310400000,0.0458873],[1126396800000,0.0458873],[1126483200000,0.0458873],[1126569600000,null],[1126656000000,null],[1126742400000,0.0459206],[1126828800000,null],[1126915200000,null],[1127001600000,0.0455348],[1127088000000,0.0455348],[1127174400000,0.0453048],[1127260800000,0.0453206],[1127347200000,0.045411],[1127433600000,0.0454273],[1127520000000,0.0453068],[1127606400000,0.0453068],[1127692800000,0.0453068],[1127779200000,0.044935],[1127865600000,0.0445741],[1127952000000,0.0446699],[1128038400000,0.0448191]], 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: [[1125532800000, 0.045274],[1125532800000, 0.045274],[1125619200000, 0.045680],[1125705600000, 0.046006],[1125792000000, 0.046006],[1125878400000, 0.046006],[1125964800000, 0.046322],[1126051200000, 0.046098],[1126137600000, 0.045906],[1126224000000, 0.045721],[1126310400000, 0.045887],[1126396800000, 0.045887],[1126483200000, 0.045887],[1126742400000, 0.045921],[1127001600000, 0.045535],[1127088000000, 0.045535],[1127174400000, 0.045305],[1127260800000, 0.045321],[1127347200000, 0.045411],[1127433600000, 0.045427],[1127520000000, 0.045307],[1127606400000, 0.045307],[1127692800000, 0.045307],[1127779200000, 0.044935],[1127865600000, 0.044574],[1127952000000, 0.044670],[1128038400000, 0.044819]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });