Hello,
I'd like to use PlantUML to represent class diagrams.
However, I don't succeed to fix class positioning to correctly display the UML member-ends and multiplicities of their relationships.
Can you have a look to my markup given below please.
By member-ends I'm talking about AccountId__c, Metric__c, AccountId, and Opportunities.
By multiplicities I'm talking about 0..1 and 0..*.
If you copy-paste my markup in PlantUML, you will see that classes are not well positioned
The following picture displays what I want versus what I get.
Can you help me please?
Here is my markup in the editor
@startuml
hide circle
hide methods
skinparam ClassHeaderBackgroundColor White
skinparam ClassBackgroundColor White
class "<color:DodgerBlue>**Account**</color>" #line:DodgerBlue
class "<color:DodgerBlue>**Opportunity**</color>" #line:DodgerBlue
class "**AccountMetric__c**"
"<color:DodgerBlue>**Account**</color>" : {field} <color:DodgerBlue>Id: Text(18)</color>
"<color:DodgerBlue>**Account**</color>" : {field} <color:DodgerBlue>Name: Text(50)</color>
"<color:DodgerBlue>**Account**</color>" : {field} PreferedColor: Text(30)
"<color:DodgerBlue>**Opportunity**</color>" : {field} <color:DodgerBlue>Id: Text(18)</color>
"<color:DodgerBlue>**Opportunity**</color>" : {field} <color:DodgerBlue>Name: Text(50)</color>
"**AccountMetric__c**" : {field} <color:DodgerBlue>Id: Text(18)</color>
"**AccountMetric__c**" : {field} <color:DodgerBlue>Name: Text(50)</color>
"**AccountMetric__c**" : {field} Date: DateTime
"**AccountMetric__c**" : {field} Label: Text(200)
"**AccountMetric__c**" : {field} Value: Number(18,2)
"<color:DodgerBlue>**Account**</color>" "AccountId 0..1" <-- "Opportunities 0..*" "<color:DodgerBlue>**Opportunity**</color>" #line:DodgerBlue;text:DodgerBlue
"<color:DodgerBlue>**Account**</color>" "AccountId__c\n0..1" <- "Metrics__c\n0..*" "**AccountMetric__c**"
@enduml