@record-evolution/widget-linechart 1.4.12 → 1.4.14

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.12",
6
+ "version": "1.4.14",
7
7
  "type": "module",
8
8
  "main": "dist/widget-linechart.js",
9
9
  "types": "dist/src/widget-linechart.d.ts",
@@ -78,8 +78,7 @@
78
78
  "title": "Point Radius",
79
79
  "description": "To disable points, set this to 0.",
80
80
  "type": "number",
81
- "minimum": 1,
82
- "maximum": 100,
81
+ "minimum": 0,
83
82
  "order": 6
84
83
  },
85
84
  "pointStyle": {
@@ -47,7 +47,7 @@ export class WidgetLinechart extends LitElement {
47
47
  }
48
48
 
49
49
  // pivot data
50
- const distincts = [...new Set(ds.data?.map((d: Data) => d.pivot))]
50
+ const distincts = [...new Set(ds.data?.map((d: Data) => d.pivot))].sort()
51
51
  const derivedBgColors = tinycolor(ds.backgroundColor)
52
52
  .monochromatic(distincts.length)
53
53
  .map((c: any) => c.toHexString())