feat: line_width per entity#1241
Conversation
|
@kalkih This would be a wonderful feature to have. |
|
ping @akloeckner |
# [0.3.0](xt-v0.2.1...xt-v0.3.0) (2026-05-10) ### Bug Fixes * check config for x_labels and x_lines if enabled ([09492eb](09492eb)) * gradient for color thresholds ([eb8703f](eb8703f)) * labels and grid lines for x-axis, get x margin in sync with line and bar graph ([9ef11cd](9ef11cd)) * state last uses value from last graph coordinate (kalkih[kalkih#1308](https://github.com/fran68/mini-graph-card/issues/1308)) ([89fe5d0](89fe5d0)) ### Features * graph with preset value ([6102103](6102103)) * line_width per entity (parts from kalkih[kalkih#1241](https://github.com/fran68/mini-graph-card/issues/1241)) ([e0d0323](e0d0323)) * spacing between bar groups (multiple entities) ([3ebe1eb](3ebe1eb)) ### Fork based on [mini-graph-card](https://github.com/kalkih/mini-graph-card.git), upstream version **0.13.0**
|
I think the function getMinMaxLineWidth wouldn't meet the following use cases:
Maybe you can a take a look at #e0d0323 And a question: Why is min_line_width used for x margin instead of max_line_width? Wouldn't that clip lines with higher line_width at the edge. |
I honestly really like your idea! Meanwhile, I added a few lines to implement your cases "show_graph: false" & "every entity has line_width" - took your code as an inspiration. |
|
Thanks for explanation! However, isn't the design approach to have a line which has round shapes at the ends and does not touch the edge of the diagram when fill is set to false? I would prefer the max option, maybe by extending the lines. Or we handle it in the way when the fill is set to true/fade, no gap at all!? |
Probably better, cannot say, away from a PC, will be able to check in a week I hope. |
Sorry, cannot answer now. For these kind of questions , I need a PC nearby ((( |


Partly implements #555