$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1220227200000,7.14088],[1220313600000,7.0868],[1220400000000,7.0404],[1220486400000,7.0049],[1220572800000,7.02712],[1220659200000,6.91094],[1220745600000,6.91094],[1220832000000,6.91094],[1220918400000,6.89535],[1221004800000,6.86182],[1221091200000,6.83799],[1221177600000,6.76119],[1221264000000,6.82482],[1221350400000,6.82482],[1221436800000,6.82482],[1221523200000,6.86564],[1221609600000,6.92106],[1221696000000,6.9002],[1221782400000,7.03507],[1221868800000,6.90588],[1221955200000,6.90588],[1222041600000,6.90588],[1222128000000,7.06766],[1222214400000,7.15205],[1222300800000,7.13949],[1222387200000,7.1467],[1222473600000,7.11665],[1222560000000,7.11665],[1222646400000,7.11665],[1222732800000,6.97505]], 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: [[1220227200000, 7.140876],[1220227200000, 7.140876],[1220313600000, 7.086799],[1220400000000, 7.040405],[1220486400000, 7.004896],[1220572800000, 7.027115],[1220659200000, 6.910935],[1220745600000, 6.910935],[1220832000000, 6.910935],[1220918400000, 6.895354],[1221004800000, 6.861820],[1221091200000, 6.837986],[1221177600000, 6.761195],[1221264000000, 6.824823],[1221350400000, 6.824823],[1221436800000, 6.824823],[1221523200000, 6.865641],[1221609600000, 6.921064],[1221696000000, 6.900205],[1221782400000, 7.035065],[1221868800000, 6.905884],[1221955200000, 6.905884],[1222041600000, 6.905884],[1222128000000, 7.067664],[1222214400000, 7.152048],[1222300800000, 7.139487],[1222387200000, 7.146699],[1222473600000, 7.116650],[1222560000000, 7.116650],[1222646400000, 7.116650],[1222732800000, 6.975049]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });