Commit fb78b848 authored by Moreau Nicolas's avatar Moreau Nicolas
Browse files

fix graph title, marker radiuses

parent b3a7a0f6
......@@ -1230,7 +1230,8 @@ var SAMPPNGPublishControl = (function (Control) {
type: 'scatter',
marker: {
color: '#1f77b4',
size : 5.
size : 5.,
radius : 1
},
line: {
color: '#1f77b4',
......@@ -1499,8 +1500,7 @@ var SAMPPNGPublishControl = (function (Control) {
name : '',
showInLegend: false,
marker: {
width: 16,
height: 16
radius : 1
},
data: [{
x: x,
......@@ -1571,9 +1571,7 @@ var SAMPPNGPublishControl = (function (Control) {
},
reversed : true,
events: {
setExtremes : function(event){
console.log("### set extremes");
console.log(event);
setExtremes : function(event){
summedPixelsSpectrumChart.xAxis[0].setExtremes(event.min,event.max);
//this.showResetZoom();
},
......@@ -1596,8 +1594,7 @@ var SAMPPNGPublishControl = (function (Control) {
showInLegend: false,
data : highData,
marker: {
width: 16,
height: 16
radius : 1
}
},getPoint(_frequencyMarker.x)
......@@ -1714,12 +1711,11 @@ var SAMPPNGPublishControl = (function (Control) {
}
//Plotly.newPlot(_itsGD, _frequencyPlot, _layout);
this.plot = function (iRA0, iRA1, iDEC0, iDEC1, zmin, zmax) {
ENTER();
summedPixelsSpectrumChart = Highcharts.chart(_itsGD, {
title: {
text: toptitle
text: ''
},
chart: {
zoomType: 'x',
......@@ -1928,14 +1924,15 @@ var SAMPPNGPublishControl = (function (Control) {
highChartData.push([plotData2.x[i], plotData2.y[i]]);
}
summedAverageSpectrum = sumArr(averageSpectrum, start, end, cdelt3prim);
summedPixelsSpectrumChart.setTitle({text:toptitle(summedAverageSpectrum/unitRescale(summedPixelsSpectrumUnit(_bunit)), toptitle_unit)});
summedPixelsSpectrumChart.series[0].update({
name : '',
// unlimited number of points when zooming
cropThreshold: Infinity,
showInLegend: false,
marker: {
width: 16,
height: 16
radius : 1
},
data: highChartData,
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment