diff --git a/Client/src/app/picker/pick-config.component.html b/Client/src/app/picker/pick-config.component.html index 18afb896..d008e523 100644 --- a/Client/src/app/picker/pick-config.component.html +++ b/Client/src/app/picker/pick-config.component.html @@ -25,30 +25,12 @@

{{listing.na

{{r.displayName}}

- - - Color - - Invalid HEX color - - - - - - -
- - -
-
- - Line style + Line type - - {{style.name}} + + {{type.name}} @@ -56,13 +38,32 @@

{{r.displayName}}

Line width - + {{width.name}} + + + Color + + Invalid HEX color + + + + + + +
+ + +
+
diff --git a/Client/src/app/picker/pick-config.component.ts b/Client/src/app/picker/pick-config.component.ts index b48c389f..4ce6f04e 100644 --- a/Client/src/app/picker/pick-config.component.ts +++ b/Client/src/app/picker/pick-config.component.ts @@ -20,7 +20,7 @@ interface LineWidth { value: number; } -interface LineStyle { +interface LineType { name: string; value: string; } @@ -61,11 +61,12 @@ export class PickConfigComponent { { name: "thick", value: 2 } ]; - lineStyles: LineStyle[] = [ + lineTypes: LineType[] = [ { name: "solid", value: "solid" }, { name: "dashes", value: "dash" }, { name: "dots", value: "dots" }, - { name: "bar", value: "bar" } + { name: "bar", value: "bar" }, + { name: "none", value: "none" } ]; constructor( diff --git a/Client/src/app/services/api.service.ts b/Client/src/app/services/api.service.ts index dc841012..0cc19ebf 100644 --- a/Client/src/app/services/api.service.ts +++ b/Client/src/app/services/api.service.ts @@ -232,6 +232,24 @@ export class ApiService { order: r.order }; return ptDataset; + + case 'none': + // hide instead of exclude "none" lines, + // otherwise, it breaks line offset fill + const noneDataset: ChartDataset = { + label: r.label, + type: 'line', + data: [], + yAxisID: 'yAxis', + showLine: false, + pointRadius: 0, + borderWidth: 0, + borderColor: r.color, + backgroundColor: r.color, + fill: false, + order: r.order + }; + return noneDataset; } }