$(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: [[1272672000000,10.5533],[1272758400000,10.5533],[1272844800000,10.5533],[1272931200000,10.5533],[1273017600000,10.5533],[1273104000000,10.2434],[1273190400000,10.0873],[1273276800000,10.1024],[1273363200000,10.1024],[1273449600000,10.1024],[1273536000000,10.1024],[1273622400000,10.0643],[1273708800000,10.0548],[1273795200000,9.97633],[1273881600000,9.90103],[1273968000000,null],[1274054400000,9.90103],[1274140800000,9.78769],[1274227200000,9.85031],[1274313600000,9.72483],[1274400000000,9.77556],[1274486400000,9.9045],[1274572800000,9.9045],[1274659200000,9.9045],[1274745600000,9.9045],[1274832000000,9.68734],[1274918400000,9.75538],[1275004800000,9.71221],[1275091200000,9.81444],[1275177600000,9.81444],[1275264000000,9.81444]], 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: [[1272672000000, 10.553336],[1272672000000, 10.553336],[1272758400000, 10.553336],[1272844800000, 10.553336],[1272931200000, 10.553336],[1273017600000, 10.553336],[1273104000000, 10.243433],[1273190400000, 10.087293],[1273276800000, 10.102352],[1273363200000, 10.102352],[1273449600000, 10.102352],[1273536000000, 10.102352],[1273622400000, 10.064308],[1273708800000, 10.054797],[1273795200000, 9.976330],[1273881600000, 9.901034],[1274054400000, 9.901034],[1274140800000, 9.787694],[1274227200000, 9.850309],[1274313600000, 9.724834],[1274400000000, 9.775558],[1274486400000, 9.904497],[1274572800000, 9.904497],[1274659200000, 9.904497],[1274745600000, 9.904497],[1274832000000, 9.687339],[1274918400000, 9.755375],[1275004800000, 9.712210],[1275091200000, 9.814444],[1275177600000, 9.814444],[1275264000000, 9.814444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });