$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1259625600000,2.80274],[1259712000000,2.80323],[1259798400000,2.80368],[1259884800000,2.80351],[1259971200000,2.8014],[1260057600000,2.8014],[1260144000000,2.8014],[1260230400000,2.8014],[1260316800000,2.80158],[1260403200000,2.80228],[1260489600000,2.80228],[1260576000000,2.80098],[1260662400000,2.80098],[1260748800000,2.80098],[1260835200000,2.80021],[1260921600000,2.79761],[1261008000000,2.79656],[1261094400000,2.79649],[1261180800000,2.79649],[1261267200000,2.79649],[1261353600000,2.79649],[1261440000000,2.79649],[1261526400000,2.79614],[1261612800000,2.79579],[1261699200000,2.79509],[1261785600000,2.79491],[1261872000000,2.79491],[1261958400000,2.79491],[1262044800000,2.79474],[1262131200000,2.79596],[1262217600000,2.80175]], 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, 2.802737],[1259625600000, 2.802737],[1259712000000, 2.803228],[1259798400000, 2.803684],[1259884800000, 2.803509],[1259971200000, 2.801404],[1260057600000, 2.801404],[1260144000000, 2.801404],[1260230400000, 2.801404],[1260316800000, 2.801579],[1260403200000, 2.802281],[1260489600000, 2.802281],[1260576000000, 2.800982],[1260662400000, 2.800982],[1260748800000, 2.800982],[1260835200000, 2.800211],[1260921600000, 2.797614],[1261008000000, 2.796561],[1261094400000, 2.796491],[1261180800000, 2.796491],[1261267200000, 2.796491],[1261353600000, 2.796491],[1261440000000, 2.796491],[1261526400000, 2.796140],[1261612800000, 2.795789],[1261699200000, 2.795088],[1261785600000, 2.794912],[1261872000000, 2.794912],[1261958400000, 2.794912],[1262044800000, 2.794737],[1262131200000, 2.795965],[1262217600000, 2.801754]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });