$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1275350400000,0.0353988],[1275436800000,0.0348238],[1275523200000,0.0351004],[1275609600000,0.0353298],[1275696000000,0.0330786],[1275782400000,0.0330786],[1275868800000,0.0330786],[1275955200000,0.0331562],[1276041600000,0.0335129],[1276128000000,0.0337461],[1276214400000,0.0338105],[1276300800000,0.0343329],[1276387200000,0.0343329],[1276473600000,0.0343329],[1276560000000,0.034749],[1276646400000,0.0346349],[1276732800000,0.0345632],[1276819200000,0.0350349],[1276905600000,0.0349531],[1276992000000,0.0349531],[1277078400000,0.0349531],[1277164800000,0.0352557],[1277251200000,0.0345775],[1277337600000,0.0346177],[1277424000000,0.0341761],[1277510400000,0.03411],[1277596800000,0.03411],[1277683200000,0.03411],[1277769600000,0.03411],[1277856000000,0.0336343]], 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: [[1275350400000, 0.035399],[1275350400000, 0.035399],[1275436800000, 0.034824],[1275523200000, 0.035100],[1275609600000, 0.035330],[1275696000000, 0.033079],[1275782400000, 0.033079],[1275868800000, 0.033079],[1275955200000, 0.033156],[1276041600000, 0.033513],[1276128000000, 0.033746],[1276214400000, 0.033811],[1276300800000, 0.034333],[1276387200000, 0.034333],[1276473600000, 0.034333],[1276560000000, 0.034749],[1276646400000, 0.034635],[1276732800000, 0.034563],[1276819200000, 0.035035],[1276905600000, 0.034953],[1276992000000, 0.034953],[1277078400000, 0.034953],[1277164800000, 0.035256],[1277251200000, 0.034577],[1277337600000, 0.034618],[1277424000000, 0.034176],[1277510400000, 0.034110],[1277596800000, 0.034110],[1277683200000, 0.034110],[1277769600000, 0.034110],[1277856000000, 0.033634]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });