diff --git a/ui/app/components/chart-primitives/area.js b/ui/app/components/chart-primitives/area.js index 07d02de1e..c8e033ae6 100644 --- a/ui/app/components/chart-primitives/area.js +++ b/ui/app/components/chart-primitives/area.js @@ -5,7 +5,10 @@ import uniquely from 'nomad-ui/utils/properties/uniquely'; export default class ChartPrimitiveArea extends Component { get colorClass() { - return this.args.colorClass || `${this.args.colorScale}-${this.args.index}`; + if (this.args.colorClass) return this.args.colorClass; + if (this.args.colorScale && this.args.index != null) + return `${this.args.colorScale} ${this.args.colorScale}-${this.args.index + 1}`; + return 'is-primary'; } @uniquely('area-mask') maskId; diff --git a/ui/app/components/chart-primitives/h-annotations.hbs b/ui/app/components/chart-primitives/h-annotations.hbs new file mode 100644 index 000000000..78999e2b4 --- /dev/null +++ b/ui/app/components/chart-primitives/h-annotations.hbs @@ -0,0 +1,14 @@ +
- - - {{this.activeDatumLabel}} - - {{this.activeDatumValue}} -
-{{this.activeAnnotation.info}}
{{/if}} @@ -311,3 +408,61 @@ export let StepLine = () => { }, }; }; + +export let MultiLine = () => ({ + template: hbs` +{{this.activeAnnotation.info}}
+ {{/if}} +