$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1151712000000,7.47081],[1151798400000,7.47081],[1151884800000,7.47081],[1151971200000,7.47081],[1152057600000,7.47081],[1152144000000,7.48698],[1152230400000,7.47117],[1152316800000,7.48596],[1152403200000,7.48596],[1152489600000,7.48596],[1152576000000,7.49322],[1152662400000,7.47983],[1152748800000,7.47671],[1152835200000,7.46217],[1152921600000,7.45605],[1153008000000,7.45605],[1153094400000,7.45605],[1153180800000,7.40991],[1153267200000,7.41558],[1153353600000,7.40277],[1153440000000,7.44497],[1153526400000,7.46471],[1153612800000,7.46471],[1153699200000,7.46471],[1153785600000,7.44601],[1153872000000,7.45054],[1153958400000,7.43382],[1154044800000,7.48494],[1154131200000,7.4654],[1154217600000,7.4654],[1154304000000,7.4654]], 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: [[1151712000000, 7.470812],[1151712000000, 7.470812],[1151798400000, 7.470812],[1151884800000, 7.470812],[1151971200000, 7.470812],[1152057600000, 7.470812],[1152144000000, 7.486983],[1152230400000, 7.471166],[1152316800000, 7.485962],[1152403200000, 7.485962],[1152489600000, 7.485962],[1152576000000, 7.493215],[1152662400000, 7.479830],[1152748800000, 7.476707],[1152835200000, 7.462168],[1152921600000, 7.456054],[1153008000000, 7.456054],[1153094400000, 7.456054],[1153180800000, 7.409907],[1153267200000, 7.415576],[1153353600000, 7.402771],[1153440000000, 7.444974],[1153526400000, 7.464705],[1153612800000, 7.464705],[1153699200000, 7.464705],[1153785600000, 7.446005],[1153872000000, 7.450542],[1153958400000, 7.433817],[1154044800000, 7.484941],[1154131200000, 7.465400],[1154217600000, 7.465400],[1154304000000, 7.465400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });