Skip to content
Snippets Groups Projects
Commit 411e20af authored by mathias.chouet's avatar mathias.chouet
Browse files

Correction petit bug dans les tooltips des graphiques

parent 824266d6
No related branches found
No related tags found
No related merge requests found
......@@ -204,11 +204,14 @@ export class ResultsGraphComponent extends ResultsComponent implements AfterCont
},
label: (tooltipItem, data) => {
const lines: string[] = [];
const nbLines = that._results.getVariatingParametersSymbols().length;
for (const v of that._results.getVariatingParametersSymbols()) {
const series = that._results.getValuesSeries(v);
const line = v + " = " + series[tooltipItem.index].toFixed(nDigits);
if (v === this.chartX) {
lines.unshift("");
if (nbLines > 1) {
lines.unshift("");
}
lines.unshift(line);
} else {
lines.push(line);
......@@ -277,11 +280,14 @@ export class ResultsGraphComponent extends ResultsComponent implements AfterCont
},
label: (tooltipItem, data) => {
const lines: string[] = [];
const nbLines = that._results.getVariatingParametersSymbols().length;
for (const v of that._results.getVariatingParametersSymbols()) {
const series = that._results.getValuesSeries(v);
const line = v + " = " + series[tooltipItem.index].toFixed(nDigits);
if (v === this.chartX) {
lines.unshift("");
if (nbLines > 1) {
lines.unshift("");
}
lines.unshift(line);
} else {
lines.push(line);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment