$(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: [[1177977600000,0.0423305],[1178064000000,0.0423305],[1178150400000,0.0423305],[1178236800000,0.042054],[1178323200000,0.0419755],[1178409600000,0.0419755],[1178496000000,0.0419755],[1178582400000,0.0421014],[1178668800000,0.0421886],[1178755200000,0.0421886],[1178841600000,0.0419448],[1178928000000,0.0421803],[1179014400000,0.0421803],[1179100800000,0.0421803],[1179187200000,0.0419615],[1179273600000,0.0419223],[1179360000000,0.0418899],[1179446400000,0.0416778],[1179532800000,0.0417539],[1179619200000,0.0417539],[1179705600000,0.0417539],[1179792000000,0.04157],[1179878400000,0.0415628],[1179964800000,0.0415774],[1180051200000,0.041613],[1180137600000,0.041515],[1180224000000,0.041515],[1180310400000,0.041515],[1180396800000,0.041515],[1180483200000,0.0415396],[1180569600000,0.0415111]], 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: [[1177977600000, 0.042331],[1177977600000, 0.042331],[1178064000000, 0.042331],[1178150400000, 0.042331],[1178236800000, 0.042054],[1178323200000, 0.041975],[1178409600000, 0.041975],[1178496000000, 0.041975],[1178582400000, 0.042101],[1178668800000, 0.042189],[1178755200000, 0.042189],[1178841600000, 0.041945],[1178928000000, 0.042180],[1179014400000, 0.042180],[1179100800000, 0.042180],[1179187200000, 0.041961],[1179273600000, 0.041922],[1179360000000, 0.041890],[1179446400000, 0.041678],[1179532800000, 0.041754],[1179619200000, 0.041754],[1179705600000, 0.041754],[1179792000000, 0.041570],[1179878400000, 0.041563],[1179964800000, 0.041577],[1180051200000, 0.041613],[1180137600000, 0.041515],[1180224000000, 0.041515],[1180310400000, 0.041515],[1180396800000, 0.041515],[1180483200000, 0.041540],[1180569600000, 0.041511]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });