diff --git a/src/ydata_profiling/report/presentation/core/scores.py b/src/ydata_profiling/report/presentation/core/scores.py index 62b001bff..7ff70570a 100644 --- a/src/ydata_profiling/report/presentation/core/scores.py +++ b/src/ydata_profiling/report/presentation/core/scores.py @@ -3,6 +3,7 @@ """ from typing import Any, Dict, List, Optional +from ydata_profiling.config import Style from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer @@ -11,15 +12,15 @@ def __init__( self, items: List[Dict], overall_score: float, + style: Style, name: Optional[str], - caption: Optional[str], **kwargs ): content = { "items": items, "overall_score": overall_score, "name": name, - "caption": caption, + "style": style, } super().__init__("scores", content=content, **kwargs) diff --git a/src/ydata_profiling/report/presentation/flavours/html/templates/scores.html b/src/ydata_profiling/report/presentation/flavours/html/templates/scores.html index f0bf8e895..90ad82cda 100644 --- a/src/ydata_profiling/report/presentation/flavours/html/templates/scores.html +++ b/src/ydata_profiling/report/presentation/flavours/html/templates/scores.html @@ -1,44 +1,78 @@