Browse Source

fix getters

pull/2/head
vargburz 2 years ago
parent
commit
f722ca7e58
  1. 2
      package.json
  2. 4
      src/models/series.ts

2
package.json

@ -1,6 +1,6 @@
{
"name": "@chartwerk/core",
"version": "0.6.7",
"version": "0.6.8",
"description": "Chartwerk core",
"main": "dist/index.js",
"types": "dist/index.d.ts",

4
src/models/series.ts

@ -98,11 +98,11 @@ export class CoreSeries<T extends Serie> {
}
get leftYRelatedSeries(): Array<T> {
return this.visibleSeries.filter(serie => serie.yOrientation = yAxisOrientation.LEFT);
return this.visibleSeries.filter(serie => serie.yOrientation === yAxisOrientation.LEFT);
}
get rightYRelatedSeries(): Array<T> {
return this.visibleSeries.filter(serie => serie.yOrientation = yAxisOrientation.RIGHT);
return this.visibleSeries.filter(serie => serie.yOrientation === yAxisOrientation.RIGHT);
}
get areSeriesForY1Exist(): boolean {

Loading…
Cancel
Save