@nova-ui/charts 12.0.33 → 12.0.35
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/bundles/css/styles.css +1 -1
- package/bundles/nova-ui-charts.umd.js +75 -8
- package/bundles/nova-ui-charts.umd.js.map +1 -1
- package/core/plugins/interaction/interaction-label-plugin.d.ts +1 -0
- package/esm2015/core/common/render-engine.js +2 -1
- package/esm2015/core/plugins/interaction/interaction-label-plugin.js +9 -7
- package/esm2015/legend/legend-series/legend-series.component.js +2 -2
- package/esm2015/renderers/bar/highlight-strategies/bar-highlight-strategy-outline.js +83 -0
- package/esm2015/renderers/bar/highlight-strategies/bar-highlight-strategy.js +1 -1
- package/esm2015/renderers/bar/highlight-strategies/public-api.js +2 -1
- package/esm2015/renderers/bar/stacked-preprocessor.js +2 -2
- package/esm2015/renderers/types.js +1 -1
- package/fesm2015/nova-ui-charts.js +72 -9
- package/fesm2015/nova-ui-charts.js.map +1 -1
- package/nova-ui-charts.metadata.json +1 -1
- package/package.json +2 -2
- package/renderers/bar/highlight-strategies/bar-highlight-strategy-outline.d.ts +15 -0
- package/renderers/bar/highlight-strategies/bar-highlight-strategy.d.ts +3 -3
- package/renderers/bar/highlight-strategies/public-api.d.ts +1 -0
- package/renderers/types.d.ts +2 -1
- package/sdk/less/nui-charts.less +9 -0
package/bundles/css/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.nui-chart{display:block;height:100%;width:100%}.nui-chart .hidden{display:none}.nui-chart svg{display:block}.nui-chart .sw-hidden{opacity:0;visibility:hidden}.nui-chart .tick-hidden-text text{opacity:0}.nui-chart .sw-line{fill:none;stroke-width:2px;shape-rendering:auto}.nui-chart .sw-interaction-layer .tooltip-group text{font-size:12px}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-marker{stroke:#fff}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-bg{fill:#333;fill:var(--nui-color-bg-mid_dark,#333)}.nui-chart .nui-chart-hidden{visibility:hidden}.nui-chart .brush .selection{fill:#0079aa;fill:var(--nui-color-active,#0079aa);fill-opacity:.2}.nui-chart nui-chart-point-marker[color-index="14"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="2"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="8"] .nui-chart-point-marker{shape-rendering:crispEdges}.nui-chart .nui-chart-column-separator{stroke:#fff;stroke-width:1}.nui-chart .nui-chart-trend-line{stroke:#111;stroke:var(--black,#111);stroke-width:1}.nui-chart .trend-line-arrow{fill:#111;fill:var(--black,#111)}.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-error,.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-warning{fill-opacity:1}.nui-chart .nui-chart-highlight-tooltip-text{font-weight:800}.nui-chart .nui-chart-point-marker-hidden{visibility:hidden}.nui-chart .nui-chart-percentile-line{stroke-width:2px;stroke-dasharray:5,5,2,5}.nui-chart .nui-chart-percentile-text{font-size:10px;font-weight:600}.nui-chart .nui-chart-annotation-line{stroke-width:1px;shape-rendering:crispEdges;pointer-events:none}.nui-chart .nui-chart-annotation-line--hover{stroke:#0079aa;stroke:var(--nui-color-text-link,#0079aa)}.nui-chart .nui-chart-annotation-note{fill:#0079aa;fill:var(--nui-color-text-link,#0079aa);font-weight:600;mix-blend-mode:hue}.nui-chart .nui-chart-annotation-hover-rect{fill:transparent;cursor:pointer}.nui-chart .nui-chart-annotation-hover-rect--hidden{fill:transparent}.nui-chart .nui-chart-annotation-background-rect{fill:#fff;fill:var(--white,#fff)}.nui-chart .nui-chart-annotation-hover-highlight{fill-opacity:.2}.nui-chart .nui-chart-annotation-hover-highlight--hidden{fill:transparent}.nui-chart .nui-chart-annotation-hover-marker{stroke:#0079aa;stroke:var(--nui-color-text-link,#0079aa);pointer-events:none}.nui-chart .nui-chart-baseline-series.tilebox .tilebox-unit,.nui-chart .nui-chart-baseline-series.tilebox .tilebox-value,.nui-chart .nui-chart-other-series.tilebox .tilebox-unit,.nui-chart .nui-chart-other-series.tilebox .tilebox-value{color:#111;color:var(--nui-color-text-default,#111)}.sw-mark-layer .nui-chart .nui-chart-baseline-series{mix-blend-mode:multiply}.nui-chart .nui-chart-no-data-line{shape-rendering:auto;stroke-dasharray:1,3;stroke-width:unset;fill:none}.nui-chart .bar-outline{stroke-width:1px;stroke:#fff;stroke:var(--nui-color-bg-light,#fff)}.nui-chart-grid .sw-axis .domain{display:none}.nui-chart-grid .sw-axis line,.nui-chart-grid .sw-axis path{stroke:#999;stroke:var(--nui-color-line-strong,#999);fill:none;shape-rendering:crispEdges}.nui-chart-grid .sw-axis line.nui-regular-line{stroke-dasharray:1 1}.nui-chart-grid .sw-axis text{fill:hsla(0,0%,7%,.6);fill:var(--nui-color-text-secondary,hsla(0,0%,7%,.6));font-size:11px}.nui-chart-grid .sw-axis text.chart-label{font-weight:700}.nui-chart-grid .sw-axis-grid{stroke-dasharray:1 1}.nui-chart-grid .sw-axis-grid line{stroke:hsla(0,0%,7%,.15);stroke:var(--nui-color-line-default-transparent,hsla(0,0%,7%,.15))}.nui-chart-grid .sw-axis-grid line.nui-zero-line{opacity:.5;stroke-dasharray:none;stroke:#999;stroke:var(--nui-color-line-dark,#999)}.nui-chart-grid .gauge-labels{transition-property:opacity;transition-duration:.2s}.nui-chart-grid .gauge-labels text{fill:hsla(0,0%,7%,.6);fill:var(--nui-color-text-secondary,hsla(0,0%,7%,.6));font-size:11px}.nui-chart-border{stroke:#999;stroke:var(--nui-color-line-strong,#999);stroke-width:1px;shape-rendering:crispEdges}.nui-chart-border--thick{stroke-width:3px}.nui-chart-highlight-tooltip-text{fill:#fff;fill:var(--nui-color-text-light,#fff);font-weight:800}.data-series-container{transition-property:opacity;transition-duration:.2s}.nui-chart .pointer-events{pointer-events:auto}.nui-chart .pointer-events-click{cursor:pointer}.nui-chart .mouse-interactive-area{cursor:crosshair}.nui-chart .interaction-line{stroke:#111;stroke:var(--nui-color-bg-inverse,#111);stroke-width:1px;shape-rendering:crispEdges}.nui-chart .interaction-label{fill:#111;fill:var(--nui-color-bg-inverse,#111)}.nui-chart .interaction-label__text{fill:#fff;fill:var(--nui-color-text-inverse,#fff)}.nui-chart--path__outline{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;stroke:#fff;stroke:var(--nui-color-bg-light,#fff)}.nui-chart--path__outline-fill{fill:#fff;fill:var(--nui-color-bg-light,#fff)}.nui-chart-tooltip-pane{pointer-events:none!important}.nui-chart .timeseries-zoom-brush{stroke:hsla(0,0%,7%,.6);stroke:var(--nui-shadow-color-stronger,hsla(0,0%,7%,.6));stroke-width:1px;shape-rendering:crispEdges}.nui-chart .lasagna-layer-timeseries-zoom-brush .brush .handle{display:none}.nui-chart .lasagna-layer-timeseries-zoom-brush .brush .selection{cursor:crosshair}.nui-chart--path__outline,_:-ms-lang(x){stroke-width:1px}.nui-chart-area,.nui-chart-line-cap{stroke:#fff;stroke:var(--nui-color-bg-light,#fff);stroke-width:1px}.nui-chart-layout{display:grid;grid-template:"axis-label-left axis-label-right ." 0fr "chart chart legend" 1fr "axis-label-bottom axis-label-bottom ." 0fr "legend-bottom legend-bottom ." 0fr/1fr 1fr auto}.nui-chart-layout .axis-label-left{grid-area:axis-label-left;justify-self:start;margin-bottom:5px;margin-right:5px}.nui-chart-layout .axis-label-right{grid-area:axis-label-right;justify-self:end;margin-bottom:5px;margin-left:5px}.nui-chart-layout .axis-label-bottom{grid-area:axis-label-bottom;justify-self:center;margin-top:5px}.nui-chart-layout .chart{grid-area:chart;display:flex;justify-content:stretch}.nui-chart-layout .chart.has-overlay{position:relative}.nui-chart-layout .chart.has-overlay .overlay{position:absolute;box-sizing:border-box;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.nui-chart-layout .legend{grid-area:legend;align-self:start;padding-left:5px}.nui-chart-layout .legend.scrollable{overflow:auto;height:100%}.nui-chart-layout .legend-bottom{grid-area:legend-bottom;justify-self:center;margin-top:5px}@media print{.nui-chart-layout{page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}}.nui-legend-series{padding:2px;max-width:250px;cursor:default;background-color:#fff;background-color:var(--nui-color-bg-content,#fff)}.nui-legend-series:not(.nui-legend-series--horizontal):not(:last-child){margin-bottom:1px}.nui-legend-series .nui-legend-series__tile-wrapper{display:flex;justify-content:center}.nui-legend-series .nui-legend-series__tile{display:flex}.nui-legend-series--horizontal:not(:last-child){margin-right:10px}.nui-legend-series:empty{display:none}.nui-legend-series.description-min-width--unset .description{min-width:unset!important}.nui-legend-series .description{line-height:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-left:5px;padding-right:5px;min-width:130px}.nui-legend-series .description-container{overflow:hidden}.nui-legend-series .description-primary{font-weight:600;color:#111;color:var(--nui-color-text-default,#111)}.nui-legend-series .description-primary:not(:last-child){margin-bottom:-3px}.nui-legend-series .description-secondary{color:hsla(0,0%,7%,.6);color:var(--nui-color-text-secondary,hsla(0,0%,7%,.6))}.nui-legend-series .description-secondary:not(:first-child){margin-top:-1px}.nui-legend-series--interactive{cursor:pointer}.nui-legend-series--interactive .nui-legend-series__tile-wrapper{position:relative}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-wrapper{align-self:center;position:absolute;visibility:hidden;top:50%;left:50%;transform:translate(-50%,-50%)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-mark{background:no-repeat 0;border:2px solid #0079aa;border-color:var(--nui-color-active,#0079aa);background-color:#fff;background-color:var(--nui-color-bg-content,#fff);background-size:16px;border-radius:3px;min-width:16px;width:16px;height:16px;transition:background-color .3s,border-color .3s}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-glyph{width:100%;height:100%;background-size:12px;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS54dWktY2hlY2tib3gtZ2x5cGh7ZmlsbDpub25lO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDozO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1saW5lY2FwOnJvdW5kO30KPC9zdHlsZT4KPHBvbHlsaW5lIGNsYXNzPSJ4dWktY2hlY2tib3gtZ2x5cGgiIHBvaW50cz0iMTcsNCA4LDE1IDMsOSAiLz4KPC9zdmc+");display:none}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark{background-color:#0079aa;background-color:var(--nui-color-active,#0079aa);border-color:#0079aa;border-color:var(--nui-color-active,#0079aa)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark>.nui-legend-series__checkbox-glyph{display:block}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__checkbox-wrapper,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__checkbox-wrapper{visibility:visible}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__tile,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__tile{visibility:hidden}.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover{background-color:hsla(0,0%,7%,.05);background-color:var(--nui-color-bg-transparent-hover,hsla(0,0%,7%,.05))}.nui-legend-series--interactive:hover{background-color:#f2f2f2;background-color:var(--nui-color-bg-light-hover,#f2f2f2)}.nui-legend-series--interactive:hover .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:hsla(0,0%,7%,.05);background-color:var(--nui-color-bg-transparent-hover,hsla(0,0%,7%,.05))}.nui-legend-series--interactive:not(:hover) .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:#fafafa;background-color:var(--nui-color-bg-secondary,#fafafa)}.nui-legend-series .nui-legend-series--state-deemphasized,.nui-legend-series:not(:hover) .nui-legend-series--state-hidden .description-container{opacity:.3}
|
|
1
|
+
.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.nui-chart{display:block;height:100%;width:100%}.nui-chart .hidden{display:none}.nui-chart svg{display:block}.nui-chart .sw-hidden{opacity:0;visibility:hidden}.nui-chart .tick-hidden-text text{opacity:0}.nui-chart .sw-line{fill:none;stroke-width:2px;shape-rendering:auto}.nui-chart .sw-interaction-layer .tooltip-group text{font-size:12px}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-marker{stroke:#fff}.nui-chart .sw-interaction-layer .tooltip-group .nui-chart-highlight-tooltip-bg{fill:#333;fill:var(--nui-color-bg-mid_dark,#333)}.nui-chart .nui-chart-hidden{visibility:hidden}.nui-chart .brush .selection{fill:#0079aa;fill:var(--nui-color-active,#0079aa);fill-opacity:.2}.nui-chart nui-chart-point-marker[color-index="14"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="2"] .nui-chart-point-marker,.nui-chart nui-chart-point-marker[color-index="8"] .nui-chart-point-marker{shape-rendering:crispEdges}.nui-chart .nui-chart-column-separator{stroke:#fff;stroke-width:1}.nui-chart .nui-chart-trend-line{stroke:#111;stroke:var(--black,#111);stroke-width:1}.nui-chart .trend-line-arrow{fill:#111;fill:var(--black,#111)}.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-error,.nui-chart .nui-chart-threshold-lines .nui-chart-threshold-warning{fill-opacity:1}.nui-chart .nui-chart-highlight-tooltip-text{font-weight:800}.nui-chart .nui-chart-point-marker-hidden{visibility:hidden}.nui-chart .nui-chart-percentile-line{stroke-width:2px;stroke-dasharray:5,5,2,5}.nui-chart .nui-chart-percentile-text{font-size:10px;font-weight:600}.nui-chart .nui-chart-annotation-line{stroke-width:1px;shape-rendering:crispEdges;pointer-events:none}.nui-chart .nui-chart-annotation-line--hover{stroke:#0079aa;stroke:var(--nui-color-text-link,#0079aa)}.nui-chart .nui-chart-annotation-note{fill:#0079aa;fill:var(--nui-color-text-link,#0079aa);font-weight:600;mix-blend-mode:hue}.nui-chart .nui-chart-annotation-hover-rect{fill:transparent;cursor:pointer}.nui-chart .nui-chart-annotation-hover-rect--hidden{fill:transparent}.nui-chart .nui-chart-annotation-background-rect{fill:#fff;fill:var(--white,#fff)}.nui-chart .nui-chart-annotation-hover-highlight{fill-opacity:.2}.nui-chart .nui-chart-annotation-hover-highlight--hidden{fill:transparent}.nui-chart .nui-chart-annotation-hover-marker{stroke:#0079aa;stroke:var(--nui-color-text-link,#0079aa);pointer-events:none}.nui-chart .nui-chart-baseline-series.tilebox .tilebox-unit,.nui-chart .nui-chart-baseline-series.tilebox .tilebox-value,.nui-chart .nui-chart-other-series.tilebox .tilebox-unit,.nui-chart .nui-chart-other-series.tilebox .tilebox-value{color:#111;color:var(--nui-color-text-default,#111)}.sw-mark-layer .nui-chart .nui-chart-baseline-series{mix-blend-mode:multiply}.nui-chart .nui-chart-no-data-line{shape-rendering:auto;stroke-dasharray:1,3;stroke-width:unset;fill:none}.nui-chart .bar-outline{stroke-width:1px;stroke:#fff;stroke:var(--nui-color-bg-light,#fff)}.nui-chart-grid .sw-axis .domain{display:none}.nui-chart-grid .sw-axis line,.nui-chart-grid .sw-axis path{stroke:#999;stroke:var(--nui-color-line-strong,#999);fill:none;shape-rendering:crispEdges}.nui-chart-grid .sw-axis line.nui-regular-line{stroke-dasharray:1 1}.nui-chart-grid .sw-axis text{fill:hsla(0,0%,7%,.6);fill:var(--nui-color-text-secondary,hsla(0,0%,7%,.6));font-size:11px}.nui-chart-grid .sw-axis text.chart-label{font-weight:700}.nui-chart-grid .sw-axis-grid{stroke-dasharray:1 1}.nui-chart-grid .sw-axis-grid line{stroke:hsla(0,0%,7%,.15);stroke:var(--nui-color-line-default-transparent,hsla(0,0%,7%,.15))}.nui-chart-grid .sw-axis-grid line.nui-zero-line{opacity:.5;stroke-dasharray:none;stroke:#999;stroke:var(--nui-color-line-dark,#999)}.nui-chart-grid .gauge-labels{transition-property:opacity;transition-duration:.2s}.nui-chart-grid .gauge-labels text{fill:hsla(0,0%,7%,.6);fill:var(--nui-color-text-secondary,hsla(0,0%,7%,.6));font-size:11px}.nui-chart-border{stroke:#999;stroke:var(--nui-color-line-strong,#999);stroke-width:1px;shape-rendering:crispEdges}.nui-chart-border--thick{stroke-width:3px}.nui-chart-highlight-tooltip-text{fill:#fff;fill:var(--nui-color-text-light,#fff);font-weight:800}.data-series-container{transition-property:opacity;transition-duration:.2s}.nui-chart .pointer-events{pointer-events:auto}.nui-chart .pointer-events-click{cursor:pointer}.nui-chart .mouse-interactive-area{cursor:crosshair}.nui-chart .interaction-line{stroke:#111;stroke:var(--nui-color-bg-inverse,#111);stroke-width:1px;shape-rendering:crispEdges}.nui-chart .interaction-label{fill:#111;fill:var(--nui-color-bg-inverse,#111)}.nui-chart .interaction-label__text{fill:#fff;fill:var(--nui-color-text-inverse,#fff)}.nui-chart--path__outline{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;stroke:#fff;stroke:var(--nui-color-bg-light,#fff)}.nui-chart--path__outline-fill{fill:#fff;fill:var(--nui-color-bg-light,#fff)}.nui-chart-tooltip-pane{pointer-events:none!important}.nui-chart .timeseries-zoom-brush{stroke:hsla(0,0%,7%,.6);stroke:var(--nui-shadow-color-stronger,hsla(0,0%,7%,.6));stroke-width:1px;shape-rendering:crispEdges}.nui-chart .lasagna-layer-timeseries-zoom-brush .brush .handle{display:none}.nui-chart .lasagna-layer-timeseries-zoom-brush .brush .selection{cursor:crosshair}.nui-chart--path__outline,_:-ms-lang(x){stroke-width:1px}.nui-chart-area,.nui-chart-line-cap{stroke:#fff;stroke:var(--nui-color-bg-light,#fff);stroke-width:1px}.nui-chart-layout{display:grid;grid-template:"axis-label-left axis-label-right ." 0fr "chart chart legend" 1fr "axis-label-bottom axis-label-bottom ." 0fr "legend-bottom legend-bottom ." 0fr/1fr 1fr auto}.nui-chart-layout .axis-label-left{grid-area:axis-label-left;justify-self:start;margin-bottom:5px;margin-right:5px}.nui-chart-layout .axis-label-right{grid-area:axis-label-right;justify-self:end;margin-bottom:5px;margin-left:5px}.nui-chart-layout .axis-label-bottom{grid-area:axis-label-bottom;justify-self:center;margin-top:5px}.nui-chart-layout .chart{grid-area:chart;display:flex;justify-content:stretch}.nui-chart-layout .chart.has-overlay{position:relative}.nui-chart-layout .chart.has-overlay .overlay{position:absolute;box-sizing:border-box;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.nui-chart-layout .legend{grid-area:legend;align-self:start;padding-left:5px}.nui-chart-layout .legend.scrollable{overflow:auto;height:100%}.nui-chart-layout .legend-bottom{grid-area:legend-bottom;justify-self:center;margin-top:5px}@media print{.nui-chart-layout{page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}}.nui-legend-series{padding:2px;max-width:250px;cursor:default;background-color:#fff;background-color:var(--nui-color-bg-content,#fff)}.nui-legend-series:not(.nui-legend-series--horizontal):not(:last-child){margin-bottom:1px}.nui-legend-series .nui-legend-series__tile-wrapper{display:flex;justify-content:center}.nui-legend-series .nui-legend-series__tile{display:flex}.nui-legend-series--horizontal:not(:last-child){margin-right:10px}.nui-legend-series:empty{display:none}.nui-legend-series.description-min-width--unset .description{min-width:unset!important}.nui-legend-series .description{line-height:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-left:5px;padding-right:5px;min-width:130px}.nui-legend-series .description-container{overflow:hidden}.nui-legend-series .description-primary{font-weight:600;color:#111;color:var(--nui-color-text-default,#111)}.nui-legend-series .description-primary:not(:last-child){margin-bottom:-3px}.nui-legend-series .description-secondary{color:hsla(0,0%,7%,.6);color:var(--nui-color-text-secondary,hsla(0,0%,7%,.6))}.nui-legend-series .description-secondary:not(:first-child){margin-top:-1px}.nui-legend-series .legend-menu{display:none;align-items:center}.nui-legend-series:hover .legend-menu{display:flex}.nui-legend-series--interactive{cursor:pointer}.nui-legend-series--interactive .nui-legend-series__tile-wrapper{position:relative}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-wrapper{align-self:center;position:absolute;visibility:hidden;top:50%;left:50%;transform:translate(-50%,-50%)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-mark{background:no-repeat 0;border:2px solid #0079aa;border-color:var(--nui-color-active,#0079aa);background-color:#fff;background-color:var(--nui-color-bg-content,#fff);background-size:16px;border-radius:3px;min-width:16px;width:16px;height:16px;transition:background-color .3s,border-color .3s}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox-glyph{width:100%;height:100%;background-size:12px;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS54dWktY2hlY2tib3gtZ2x5cGh7ZmlsbDpub25lO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDozO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1saW5lY2FwOnJvdW5kO30KPC9zdHlsZT4KPHBvbHlsaW5lIGNsYXNzPSJ4dWktY2hlY2tib3gtZ2x5cGgiIHBvaW50cz0iMTcsNCA4LDE1IDMsOSAiLz4KPC9zdmc+");display:none}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark{background-color:#0079aa;background-color:var(--nui-color-active,#0079aa);border-color:#0079aa;border-color:var(--nui-color-active,#0079aa)}.nui-legend-series--interactive .nui-legend-series__tile-wrapper .nui-legend-series__checkbox--checked .nui-legend-series__checkbox-mark>.nui-legend-series__checkbox-glyph{display:block}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__checkbox-wrapper,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__checkbox-wrapper{visibility:visible}.nui-legend-series--interactive .nui-legend-series--deselected .nui-legend-series__tile,.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover .nui-legend-series__tile{visibility:hidden}.nui-legend-series--interactive .nui-legend-series__tile-wrapper:hover{background-color:hsla(0,0%,7%,.05);background-color:var(--nui-color-bg-transparent-hover,hsla(0,0%,7%,.05))}.nui-legend-series--interactive:hover{background-color:#f2f2f2;background-color:var(--nui-color-bg-light-hover,#f2f2f2)}.nui-legend-series--interactive:hover .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:hsla(0,0%,7%,.05);background-color:var(--nui-color-bg-transparent-hover,hsla(0,0%,7%,.05))}.nui-legend-series--interactive:not(:hover) .nui-legend-series--deselected .nui-legend-series__tile-wrapper{background-color:#fafafa;background-color:var(--nui-color-bg-secondary,#fafafa)}.nui-legend-series .nui-legend-series--state-deemphasized,.nui-legend-series:not(:hover) .nui-legend-series--state-hidden .description-container{opacity:.3}
|
|
@@ -1412,7 +1412,7 @@
|
|
|
1412
1412
|
// eslint-disable-next-line
|
|
1413
1413
|
host: { class: LEGEND_SERIES_CLASS_NAME },
|
|
1414
1414
|
selector: "nui-legend-series",
|
|
1415
|
-
template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n",
|
|
1415
|
+
template: "<div\n class=\"d-flex\"\n [ngClass]=\"['nui-legend-series--state-' + seriesRenderState]\"\n [class.nui-legend-series--deselected]=\"!isSelected\"\n>\n <div class=\"nui-legend-series__tile-wrapper\">\n <div class=\"nui-legend-series__tile\">\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-legend-series__checkbox-wrapper\"\n [class.nui-legend-series__checkbox--checked]=\"isSelected\"\n >\n <div class=\"nui-legend-series__checkbox-mark\">\n <i class=\"nui-legend-series__checkbox-glyph\"></i>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"hasInputDescription(); else descriptionTemplate\"\n class=\"description-container nui-text-small d-flex flex-column justify-content-center\"\n >\n <div\n *ngIf=\"!!descriptionPrimary\"\n class=\"description description-primary\"\n [title]=\"descriptionPrimary\"\n >\n {{ descriptionPrimary }}\n </div>\n <div\n *ngIf=\"!!descriptionSecondary\"\n class=\"description description-secondary\"\n [title]=\"descriptionSecondary\"\n >\n {{ descriptionSecondary }}\n </div>\n </div>\n <div class=\"legend-menu\">\n <ng-content select=\"[legendMenu]\"></ng-content>\n </div>\n</div>\n<ng-template #descriptionTemplate>\n <div class=\"d-flex\" #projectedDescription>\n <ng-content select=\"[description]\"></ng-content>\n </div>\n</ng-template>\n",
|
|
1416
1416
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1417
1417
|
},] }
|
|
1418
1418
|
];
|
|
@@ -4263,6 +4263,7 @@
|
|
|
4263
4263
|
dataSeries: chartSeries,
|
|
4264
4264
|
containers: childContainers,
|
|
4265
4265
|
scales: chartSeries.scales,
|
|
4266
|
+
parentContainer: this.renderLayers.data,
|
|
4266
4267
|
};
|
|
4267
4268
|
chartSeries.renderer.highlightDataPoint(renderSeries, index, this.rendererSubject);
|
|
4268
4269
|
};
|
|
@@ -5988,17 +5989,19 @@
|
|
|
5988
5989
|
var textSelection = interactionLabel
|
|
5989
5990
|
.select("text")
|
|
5990
5991
|
.text(labelContent);
|
|
5991
|
-
|
|
5992
|
+
if (!this.elBBox) {
|
|
5993
|
+
this.elBBox = textSelection.node().getBBox();
|
|
5994
|
+
}
|
|
5992
5995
|
var gridDimension = this.chart.getGrid().config().dimension;
|
|
5993
5996
|
// subtract the relative vertical text offset inside the bbox from
|
|
5994
5997
|
// the grid height to determine the label's vertical placement
|
|
5995
|
-
var heightOffset = gridDimension.height() -
|
|
5998
|
+
var heightOffset = gridDimension.height() - this.elBBox.y;
|
|
5996
5999
|
textSelection
|
|
5997
6000
|
.attr("transform", "translate(0, " + heightOffset + ")")
|
|
5998
6001
|
.style("text-anchor", "middle");
|
|
5999
6002
|
// match the horizontal padding to the built-in bbox vertical padding
|
|
6000
|
-
var horizontalPadding = (
|
|
6001
|
-
var labelWidth =
|
|
6003
|
+
var horizontalPadding = (this.elBBox.height + this.elBBox.y) * 2;
|
|
6004
|
+
var labelWidth = this.elBBox.width + horizontalPadding;
|
|
6002
6005
|
var allowedRange = [
|
|
6003
6006
|
labelWidth / 2,
|
|
6004
6007
|
gridDimension.width() - labelWidth / 2,
|
|
@@ -6011,9 +6014,9 @@
|
|
|
6011
6014
|
.attrs({
|
|
6012
6015
|
transform: "translate(0," + heightOffset + ")",
|
|
6013
6016
|
x: -(labelWidth / 2),
|
|
6014
|
-
y:
|
|
6017
|
+
y: this.elBBox.y,
|
|
6015
6018
|
width: labelWidth,
|
|
6016
|
-
height:
|
|
6019
|
+
height: this.elBBox.height,
|
|
6017
6020
|
});
|
|
6018
6021
|
};
|
|
6019
6022
|
InteractionLabelPlugin.prototype.destroy = function () {
|
|
@@ -8083,7 +8086,7 @@
|
|
|
8083
8086
|
if (chartSeriesSet.length === 0) {
|
|
8084
8087
|
return chartSeriesSet;
|
|
8085
8088
|
}
|
|
8086
|
-
var categories = gatherCategories(chartSeriesSet);
|
|
8089
|
+
var categories = gatherCategories(chartSeriesSet.filter(function (chartSeries) { return isUndefined__default["default"](chartSeries.preprocess) || chartSeries.preprocess; }));
|
|
8087
8090
|
// This is adding metadata to the dataset and filling missing
|
|
8088
8091
|
var forExtents = chartSeriesSet.reduce(function (acc, chartSeries) {
|
|
8089
8092
|
if (!isUndefined__default["default"](chartSeries.preprocess) && !chartSeries.preprocess) {
|
|
@@ -10671,6 +10674,69 @@
|
|
|
10671
10674
|
return BarHighlightStrategy;
|
|
10672
10675
|
}());
|
|
10673
10676
|
|
|
10677
|
+
// creates an outline element that is used to highlight hovered parts of the chart
|
|
10678
|
+
var BarHighlightStrategyOutline = /** @class */ (function (_super) {
|
|
10679
|
+
__extends(BarHighlightStrategyOutline, _super);
|
|
10680
|
+
/**
|
|
10681
|
+
* @param scaleKey scale that will be used for searching for the data point that will be highlighted
|
|
10682
|
+
* @param levels for band scales, how many levels deep do we go to compare values
|
|
10683
|
+
*/
|
|
10684
|
+
function BarHighlightStrategyOutline(scaleKey, levels, selectedDataPointIdxFn) {
|
|
10685
|
+
if (levels === void 0) { levels = 1; }
|
|
10686
|
+
var _this = _super.call(this, scaleKey, levels, selectedDataPointIdxFn) || this;
|
|
10687
|
+
_this.outlineAdd = 6;
|
|
10688
|
+
_this.outlineElsMap = new Map();
|
|
10689
|
+
return _this;
|
|
10690
|
+
}
|
|
10691
|
+
BarHighlightStrategyOutline.prototype.highlightDataPoint = function (renderer, renderSeries, dataPointIndex) {
|
|
10692
|
+
var _a, _b;
|
|
10693
|
+
var target = renderSeries.containers[exports.RenderLayerName.data];
|
|
10694
|
+
var selectedDataPointIdx = !isUndefined__default["default"](this.selectedDataPointIdxFn)
|
|
10695
|
+
? this.selectedDataPointIdxFn(renderSeries.dataSeries.id)
|
|
10696
|
+
: DATA_POINT_NOT_FOUND;
|
|
10697
|
+
var gNodes = target
|
|
10698
|
+
.selectAll("g." + renderer.barContainerClass)
|
|
10699
|
+
.nodes();
|
|
10700
|
+
var emphasizedNode = gNodes[dataPointIndex] || gNodes[selectedDataPointIdx];
|
|
10701
|
+
if (!renderSeries.parentContainer) {
|
|
10702
|
+
return;
|
|
10703
|
+
}
|
|
10704
|
+
// needs to replace all '.' from the serie id as the dot would be treated as a class name in the query selector
|
|
10705
|
+
var outlineRectClass = (renderer.barContainerClass + "-outline-" + renderSeries.dataSeries.id)
|
|
10706
|
+
.split(".")
|
|
10707
|
+
.join("-");
|
|
10708
|
+
if (!this.outlineElsMap.has(outlineRectClass)) {
|
|
10709
|
+
// creates a rect element that will be used as a outline
|
|
10710
|
+
var rect = renderSeries.parentContainer.append("rect");
|
|
10711
|
+
rect.classed(outlineRectClass, true);
|
|
10712
|
+
this.outlineElsMap.set(outlineRectClass, rect);
|
|
10713
|
+
}
|
|
10714
|
+
var outlineRect = this.outlineElsMap.get(outlineRectClass);
|
|
10715
|
+
var emphasizedDataValue = ((_a = renderSeries.dataSeries.data[dataPointIndex]) === null || _a === void 0 ? void 0 : _a.y) ||
|
|
10716
|
+
((_b = renderSeries.dataSeries.data[dataPointIndex]) === null || _b === void 0 ? void 0 : _b.value);
|
|
10717
|
+
if (emphasizedDataValue && emphasizedNode && outlineRect) {
|
|
10718
|
+
// position the outline element on the position of the emphasized element and updates its attributes
|
|
10719
|
+
var emphasizedRect = d3Selection.select(emphasizedNode).select("rect");
|
|
10720
|
+
var x = parseFloat(emphasizedRect.attr("x")) - this.outlineAdd / 2;
|
|
10721
|
+
var y = parseFloat(emphasizedRect.attr("y")) - this.outlineAdd / 2;
|
|
10722
|
+
var width = parseFloat(emphasizedRect.attr("width")) + this.outlineAdd;
|
|
10723
|
+
var height = parseFloat(emphasizedRect.attr("height")) + this.outlineAdd;
|
|
10724
|
+
outlineRect.attr("x", x);
|
|
10725
|
+
outlineRect.attr("y", y);
|
|
10726
|
+
outlineRect.attr("width", width);
|
|
10727
|
+
outlineRect.attr("height", height);
|
|
10728
|
+
outlineRect.style("fill", emphasizedRect.style("fill"));
|
|
10729
|
+
outlineRect.style("display", "inline");
|
|
10730
|
+
}
|
|
10731
|
+
if ((outlineRect && !emphasizedDataValue) ||
|
|
10732
|
+
(outlineRect && !emphasizedNode)) {
|
|
10733
|
+
// hides outline element when there is no emphasized element
|
|
10734
|
+
outlineRect.style("display", "none");
|
|
10735
|
+
}
|
|
10736
|
+
};
|
|
10737
|
+
return BarHighlightStrategyOutline;
|
|
10738
|
+
}(BarHighlightStrategy));
|
|
10739
|
+
|
|
10674
10740
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
10675
10741
|
var BarSeriesHighlightStrategy = /** @class */ (function () {
|
|
10676
10742
|
/**
|
|
@@ -11304,6 +11370,7 @@
|
|
|
11304
11370
|
exports.BarAccessors = BarAccessors;
|
|
11305
11371
|
exports.BarGridConfig = BarGridConfig;
|
|
11306
11372
|
exports.BarHighlightStrategy = BarHighlightStrategy;
|
|
11373
|
+
exports.BarHighlightStrategyOutline = BarHighlightStrategyOutline;
|
|
11307
11374
|
exports.BarHorizontalGridConfig = BarHorizontalGridConfig;
|
|
11308
11375
|
exports.BarRenderer = BarRenderer;
|
|
11309
11376
|
exports.BarSeriesHighlightStrategy = BarSeriesHighlightStrategy;
|