@eox/chart 2.0.0-alpha6 → 2.0.0-alpha7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -73,7 +73,7 @@
73
73
  padding-top: 30px;
74
74
  }
75
75
  </style>
76
- <script type="module" crossorigin src="./assets/main-31aa174b.js"></script>
76
+ <script type="module" crossorigin src="./assets/main-0d4938a0.js"></script>
77
77
  </head>
78
78
  <body>
79
79
  <div id="controls" class="controls" data-cy="controls"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/chart",
3
- "version": "2.0.0-alpha6",
3
+ "version": "2.0.0-alpha7",
4
4
  "dependencies": {
5
5
  "chart.js": "^4.2.1",
6
6
  "chartjs-adapter-luxon": "^1.3.1",
@@ -522,6 +522,8 @@ class SignalsDataManager {
522
522
  setGeometry(geometry: object) {
523
523
  // Clear all currently saved data
524
524
  this.dataStorage = {};
525
+ // Initialize data storage
526
+ this.options.features.forEach((_, idx) => (this.dataStorage[idx] = {}));
525
527
  this.options.geometry = geometry;
526
528
  this.retrieveMissingData();
527
529
  this.updateChart();