$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1259625600000,7.55577],[1259712000000,7.64096],[1259798400000,7.64789],[1259884800000,7.61096],[1259971200000,7.62472],[1260057600000,7.62472],[1260144000000,7.62472],[1260230400000,7.53699],[1260316800000,7.56416],[1260403200000,7.53977],[1260489600000,7.60349],[1260576000000,7.60947],[1260662400000,7.60947],[1260748800000,7.60947],[1260835200000,7.50076],[1260921600000,7.49973],[1261008000000,7.51984],[1261094400000,7.42827],[1261180800000,7.4708],[1261267200000,7.4708],[1261353600000,7.4708],[1261440000000,7.55114],[1261526400000,7.53123],[1261612800000,7.59201],[1261699200000,7.61988],[1261785600000,7.6194],[1261872000000,7.6194],[1261958400000,7.6194],[1262044800000,7.61403],[1262131200000,7.6678],[1262217600000,7.6128]], 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, 7.555769],[1259625600000, 7.555769],[1259712000000, 7.640962],[1259798400000, 7.647891],[1259884800000, 7.610962],[1259971200000, 7.624725],[1260057600000, 7.624725],[1260144000000, 7.624725],[1260230400000, 7.536990],[1260316800000, 7.564155],[1260403200000, 7.539771],[1260489600000, 7.603487],[1260576000000, 7.609468],[1260662400000, 7.609468],[1260748800000, 7.609468],[1260835200000, 7.500760],[1260921600000, 7.499728],[1261008000000, 7.519836],[1261094400000, 7.428274],[1261180800000, 7.470800],[1261267200000, 7.470800],[1261353600000, 7.470800],[1261440000000, 7.551135],[1261526400000, 7.531230],[1261612800000, 7.592015],[1261699200000, 7.619882],[1261785600000, 7.619404],[1261872000000, 7.619404],[1261958400000, 7.619404],[1262044800000, 7.614030],[1262131200000, 7.667802],[1262217600000, 7.612802]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });