-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we reduce legend text width with line, border style symbols (instead of text)? #232
Comments
Usually I am not a big fan of replacing information with symbols. It might be clear to the author of the diagram but most likely not to other people. Before I can really comment, I would need to better understand why it is an issue that the legend can become rather wide... Looking only at the legend: If the The shortest it could be is this: If the user is willing to gain a shorter legend by losing some meaning, that would be easy enough to achieve. |
I like the idea with the smaller size. I could make following changes:
And if $label is defined then it will be combined with the (calculated) additional information. E.g.
source@startuml
skinparam LegendBorderColor transparent
skinparam LegendBackgroundColor transparent
skinparam LegendFontColor #FFFFFF
skinparam shadowing<<legendArea>> false
skinparam rectangle<<legendArea>> {
backgroundcolor #00000000
bordercolor #00000000
}
sprite $roundCornerSprite [16x16/16] {
0000000000000000
0000000007BEFFF0
0000000AFA631000
000005FC20000000
00007F7000000000
0005F30000000000
002F700000000000
00AB000000000000
02F2000000000000
07A0000000000000
0B60000000000000
0E30000000000000
0F10000000000000
0F00000000000000
0F00000000000000
0000000000000000
}
sprite $cutCornerSprite [16x16/16] {
0000000000000000
00004EFFFFE40000
0004E400004E4000
004E40000004E400
04E4000000004E40
0E400000000004E0
0F000000000000F0
0F000000000000F0
0F000000000000F0
0E400000000004E0
04E4000000004E40
004E40000004E400
0004E400004E4000
00004EFFFFE40000
0000000000000000
}
sprite $shadowSprite [16x16/16] {
0000000000000000
00000000000F0000
00000000000FA000
00000000000FA800
00000000000FA840
00000000000FA840
00000000000FA840
00000000000FA840
00000000000FA840
00000000000FA840
00000000000FA840
0FFFFFFFFFFFA840
00AAAAAAAAAAA840
0008888888888840
0000444444444440
0000000000000000
}
legend right
<#00000000,#00000000>|<color:#000000>**Legend**</color> |
| |
|<#335DA5><color:#335DA5> <U+25AF></color> <color:#FFFFFF> backend container (eight sided, shadow) </color> |
| |
|<#335DA5><color:#335DA5> <U+25AF></color> <color:#FFFFFF> backend container <size:9>(eight sided, shadow)</size> </color> |
| |
|<#335DA5><color:#335DA5> <U+25AF></color> <color:#FFFFFF> backend container (<$cutCornerSprite>, <$shadowSprite>) </color> |
| |
|<#335DA5><color:#335DA5> <U+25AF></color> <color:#FFFFFF> backend container </color> |
| |
endlegend
@enduml
What do you think? Thank you and best regards |
Sounds good.
Also good.
Also good.
Naming a thing is always a bit tricky. What does the parameter do or represents to a user? 🤔 It doesn't really have to do with "style" as much as information representation. It gives the user an option to change how secondary information is display in the legend. For the user the information has meaning. That meaning is not "secondary" but is part of how they can identify items of a specific type.
Looking at the values |
Regarding
and
Currently, I am oscilating between "shapeDescription" and "legendVerbosity" or something like that. |
PS.: I'm not sure if I implement the pictograms at all (only none, normal and small)
|
I think "legendLayout" is a good description. Lets go with that. Skipping pictograms sounds like a good plan. Only having "none", "normal" and "small" is good enough. As to "no-color", I have no clear solution. I guess an unsatisfactory solution is still better than no solution. 🤷 |
@kirchsth Do you want this to be part of v2.5 or should we bump it to v2.6? |
please wait |
…or None(); defined via SHOW_LEGEND($details=...) - if $legendText contains a `\n` then the part before is the label and the part behind the details
…ned via SHOW_LEGEND($details=...) - if $legendText contains a `\n` then the part before is the label and the part behind the details
Atm we have a lot of different line, border and shape styles and the legend text can be very wide like below
(@Potherca:) Should we uses symbols that the legend size is reduced, like below?
The disadvantage could be that the symbols are not clear for everybody.
I found no useful color alternatives for "transparent", "no text color", "no back(ground) color" and "no line color" therefore this would remain unchanged atm. In most of the cases the e.g. "no text color" can be avoided at all (as soon a concrete color is defined).
Second question: should I remove (border) "transparent" from the legend at all?
Thank you and best regards
Helmut
PS.: source of the samples
The text was updated successfully, but these errors were encountered: