$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1259625600000,2.8957],[1259712000000,2.93029],[1259798400000,2.93474],[1259884800000,2.94821],[1259971200000,2.93938],[1260057600000,2.93938],[1260144000000,2.93938],[1260230400000,2.89361],[1260316800000,2.87224],[1260403200000,2.85331],[1260489600000,2.84123],[1260576000000,2.84155],[1260662400000,2.84155],[1260748800000,2.84155],[1260835200000,2.81783],[1260921600000,2.76934],[1261008000000,2.76649],[1261094400000,2.71994],[1261180800000,2.72516],[1261267200000,2.72516],[1261353600000,2.72516],[1261440000000,2.73529],[1261526400000,2.72419],[1261612800000,2.72634],[1261699200000,2.76219],[1261785600000,2.76202],[1261872000000,2.76202],[1261958400000,2.76202],[1262044800000,2.75741],[1262131200000,2.77378],[1262217600000,2.77556]], 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.895700],[1259625600000, 2.895700],[1259712000000, 2.930293],[1259798400000, 2.934738],[1259884800000, 2.948210],[1259971200000, 2.939379],[1260057600000, 2.939379],[1260144000000, 2.939379],[1260230400000, 2.893613],[1260316800000, 2.872243],[1260403200000, 2.853315],[1260489600000, 2.841230],[1260576000000, 2.841551],[1260662400000, 2.841551],[1260748800000, 2.841551],[1260835200000, 2.817825],[1260921600000, 2.769337],[1261008000000, 2.766494],[1261094400000, 2.719942],[1261180800000, 2.725158],[1261267200000, 2.725158],[1261353600000, 2.725158],[1261440000000, 2.735291],[1261526400000, 2.724188],[1261612800000, 2.726342],[1261699200000, 2.762191],[1261785600000, 2.762018],[1261872000000, 2.762018],[1261958400000, 2.762018],[1262044800000, 2.757410],[1262131200000, 2.773783],[1262217600000, 2.775556]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });