@record-evolution/widget-linechart 1.4.11 → 1.4.12

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent widget-linechart following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "widget-linechart",
6
- "version": "1.4.11",
6
+ "version": "1.4.12",
7
7
  "type": "module",
8
8
  "main": "dist/widget-linechart.js",
9
9
  "types": "dist/src/widget-linechart.d.ts",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "chartName": {
65
65
  "title": "Chart",
66
- "description": "If two dataseries have the same 'Chart' name, they will be drawn in the same chart. Otherwise they will get their own chart. If the name ends with #pivot# then a separat chart will be drawn for each pivoted dataseries.",
66
+ "description": "If two dataseries have the same 'Chart' name, they will be drawn in the same chart. Otherwise they will get their own chart. If the name contains #pivot# as substring then a separat chart will be drawn for each pivoted dataseries.",
67
67
  "type": "string",
68
68
  "order": 3
69
69
  },
@@ -71,7 +71,7 @@ export class WidgetLinechart extends LitElement {
71
71
  data: ds.data?.filter((d) => d.pivot === piv)
72
72
  }
73
73
  // If the chartName ends with :pivot: then create a seperate chart for each pivoted dataseries
74
- const chartName = ds.chartName?.endsWith('#pivot#')
74
+ const chartName = ds.chartName?.includes('#pivot#')
75
75
  ? ds.chartName + piv
76
76
  : ds.chartName ?? ''
77
77
  if (!this.canvasList.has(chartName)) {