blob: 9db3d8ed8d23320e405666f8280ee33b5d7824f1 [file]
// Copyright (C) 2026 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
.pf-chart-svg--proportion {
// Left-align the legend for proportion bars (top/bottom positions default to
// centered for the plotted charts).
&.pf-chart-svg--legend-top .pf-chart-svg__legend,
&.pf-chart-svg--legend-bottom .pf-chart-svg__legend {
justify-content: flex-start;
}
// A horizontal stacked "bar-like pie chart": one bar split into proportional
// slices. Sits where the SVG canvas would in the other charts_svg widgets.
.pf-chart-svg__proportion-bar {
display: flex;
height: 8px;
border-radius: 4px;
overflow: hidden;
gap: 2px;
flex: 0 0 auto;
}
.pf-chart-svg__proportion-segment {
height: 100%;
}
}