$(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: [[1259625600000,0.0924718],[1259712000000,0.0919167],[1259798400000,0.0916584],[1259884800000,0.0907177],[1259971200000,0.0903989],[1260057600000,0.0903989],[1260144000000,0.0903989],[1260230400000,0.0886066],[1260316800000,0.0902272],[1260403200000,0.0907895],[1260489600000,0.0904723],[1260576000000,0.0898362],[1260662400000,0.0898362],[1260748800000,0.0898362],[1260835200000,0.0902291],[1260921600000,0.0890326],[1261008000000,0.0888493],[1261094400000,0.0884302],[1261180800000,0.0881137],[1261267200000,0.0881137],[1261353600000,0.0881137],[1261440000000,0.0880192],[1261526400000,0.086975],[1261612800000,0.0868661],[1261699200000,0.0870678],[1261785600000,0.0870624],[1261872000000,0.0870624],[1261958400000,0.0870624],[1262044800000,0.0870134],[1262131200000,0.0868388],[1262217600000,0.0865047]], 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: [[1259625600000, 0.092472],[1259625600000, 0.092472],[1259712000000, 0.091917],[1259798400000, 0.091658],[1259884800000, 0.090718],[1259971200000, 0.090399],[1260057600000, 0.090399],[1260144000000, 0.090399],[1260230400000, 0.088607],[1260316800000, 0.090227],[1260403200000, 0.090789],[1260489600000, 0.090472],[1260576000000, 0.089836],[1260662400000, 0.089836],[1260748800000, 0.089836],[1260835200000, 0.090229],[1260921600000, 0.089033],[1261008000000, 0.088849],[1261094400000, 0.088430],[1261180800000, 0.088114],[1261267200000, 0.088114],[1261353600000, 0.088114],[1261440000000, 0.088019],[1261526400000, 0.086975],[1261612800000, 0.086866],[1261699200000, 0.087068],[1261785600000, 0.087062],[1261872000000, 0.087062],[1261958400000, 0.087062],[1262044800000, 0.087013],[1262131200000, 0.086839],[1262217600000, 0.086505]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });