Skip to content

Commit 4bf37ab

Browse files
authored
Merge branch 'chore/support0-22' into fix/html
2 parents df1b49a + 791b32b commit 4bf37ab

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Fix bug on tooltip origin when mouse leaving while hovering a shape
1111
- Remove unused code
1212
- Fix html for prettier to work
13+
- Remove name from add plot feature
1314

1415
## [0.22.2]
1516
### Fix

src/multiplot.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class Multiplot {
3838
) {
3939
this.buildCanvas(canvasID);
4040
[this.features, this.figures] = this.unpackData(data);
41-
this.featureNames = Array.from(this.features.keys());
41+
this.featureNames = this.getFeaturesNames();
4242
this.nSamples = this.features.entries().next().value[1].length;
4343
this.computeTable();
4444
this.draw();
@@ -63,6 +63,10 @@ export class Multiplot {
6363
return [features, figures]
6464
}
6565

66+
private getFeaturesNames(): string[] {
67+
return Array.from(this.features.keys()).filter(feature => feature != "name");
68+
}
69+
6670
public serializeFeatures(): any {
6771
const elements = [];
6872
for (let i=0; i < this.nSamples; i++) {

0 commit comments

Comments
 (0)