File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ++ ) {
You can’t perform that action at this time.
0 commit comments