$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1259625600000,0.766944],[1259712000000,0.769683],[1259798400000,0.770625],[1259884800000,0.772109],[1259971200000,0.768876],[1260057600000,0.768876],[1260144000000,0.768876],[1260230400000,0.754537],[1260316800000,0.753921],[1260403200000,0.753804],[1260489600000,0.751864],[1260576000000,0.752893],[1260662400000,0.752893],[1260748800000,0.752893],[1260835200000,0.747075],[1260921600000,0.740981],[1261008000000,0.74167],[1261094400000,0.730598],[1261180800000,0.730292],[1261267200000,0.730292],[1261353600000,0.730292],[1261440000000,0.731871],[1261526400000,0.727247],[1261612800000,0.727002],[1261699200000,0.733031],[1261785600000,0.732985],[1261872000000,0.732985],[1261958400000,0.732985],[1262044800000,0.733296],[1262131200000,0.735044],[1262217600000,0.731718]], 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.766944],[1259625600000, 0.766944],[1259712000000, 0.769683],[1259798400000, 0.770625],[1259884800000, 0.772109],[1259971200000, 0.768876],[1260057600000, 0.768876],[1260144000000, 0.768876],[1260230400000, 0.754537],[1260316800000, 0.753921],[1260403200000, 0.753804],[1260489600000, 0.751864],[1260576000000, 0.752893],[1260662400000, 0.752893],[1260748800000, 0.752893],[1260835200000, 0.747075],[1260921600000, 0.740981],[1261008000000, 0.741670],[1261094400000, 0.730598],[1261180800000, 0.730292],[1261267200000, 0.730292],[1261353600000, 0.730292],[1261440000000, 0.731871],[1261526400000, 0.727247],[1261612800000, 0.727002],[1261699200000, 0.733031],[1261785600000, 0.732985],[1261872000000, 0.732985],[1261958400000, 0.732985],[1262044800000, 0.733296],[1262131200000, 0.735044],[1262217600000, 0.731718]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });