chart.module.scss 1.01 KB
.chart-canvas{
  width: 100%;
}
.chart-box-pie {
  width: 100%;
  height: 230px;
  .chart-canvas{
    width: 42%;
  }
}

.chart-legend {
  width: calc(58% - 15px);
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  &-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #133368;
    font-size: 12px;
    transition: opacity 0.3s ease;
    
    
    &-hidden {
      opacity: 0.4;
      color: #999;
      .chart-legend-color{
        background-color: #999 !important;
      }
    }
  }

  &-color {
    width: 8px;
    height: 8px;
    margin-right: 4px;
  }

  &-text-box {
    width: 50%;
    
  }
  &-text{
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  &-value{
    width: calc(50% - 23px);
    text-align: right;
  }
  &-line {
    width: 1px;
    height: 100%;
    background: #1333681a;
    margin: 0 5px;
  }
  
}