$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1259625600000,0.719239],[1259712000000,0.719262],[1259798400000,0.719055],[1259884800000,0.718738],[1259971200000,0.716883],[1260057600000,0.716883],[1260144000000,0.716883],[1260230400000,0.714778],[1260316800000,0.703765],[1260403200000,0.694424],[1260489600000,0.688337],[1260576000000,0.674445],[1260662400000,0.674445],[1260748800000,0.674445],[1260835200000,0.652714],[1260921600000,0.648628],[1261008000000,0.647557],[1261094400000,0.647257],[1261180800000,0.64801],[1261267200000,0.64801],[1261353600000,0.64801],[1261440000000,0.647462],[1261526400000,0.647902],[1261612800000,0.647468],[1261699200000,0.647305],[1261785600000,0.647265],[1261872000000,0.647265],[1261958400000,0.647265],[1262044800000,0.64764],[1262131200000,0.647756],[1262217600000,0.649155]], 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.719239],[1259625600000, 0.719239],[1259712000000, 0.719262],[1259798400000, 0.719055],[1259884800000, 0.718738],[1259971200000, 0.716883],[1260057600000, 0.716883],[1260144000000, 0.716883],[1260230400000, 0.714778],[1260316800000, 0.703765],[1260403200000, 0.694424],[1260489600000, 0.688337],[1260576000000, 0.674445],[1260662400000, 0.674445],[1260748800000, 0.674445],[1260835200000, 0.652714],[1260921600000, 0.648628],[1261008000000, 0.647557],[1261094400000, 0.647257],[1261180800000, 0.648010],[1261267200000, 0.648010],[1261353600000, 0.648010],[1261440000000, 0.647462],[1261526400000, 0.647902],[1261612800000, 0.647468],[1261699200000, 0.647305],[1261785600000, 0.647265],[1261872000000, 0.647265],[1261958400000, 0.647265],[1262044800000, 0.647640],[1262131200000, 0.647756],[1262217600000, 0.649155]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });