Skip to content

Commit 48ffc0d

Browse files
committed
Adding "engine" chart for plantuml
Small chart example: ``` @startuml{chart} h-axis "Quarters" [Q1, Q2, Q3, Q4] label-right v-axis "Revenue ($K)" 0 --> 100 bar "Sales" [45, 62, 58, 70] #3498db @enduml ```
1 parent 743f4f1 commit 48ffc0d

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

addon/doxmlparser/doxmlparser/compound.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ class DoxPlantumlEngine(str, Enum):
11181118
SALT='salt'
11191119
MATH='math'
11201120
LATEX='latex'
1121+
CHART='chart'
11211122
GANTT='gantt'
11221123
MINDMAP='mindmap'
11231124
WBS='wbs'
@@ -24555,7 +24556,7 @@ def validate_DoxPlantumlEngine(self, value):
2455524556
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
2455624557
return False
2455724558
value = value
24558-
enumerations = ['uml', 'bpm', 'wire', 'dot', 'ditaa', 'salt', 'math', 'latex', 'gantt', 'mindmap', 'wbs', 'yaml', 'creole', 'json', 'flow', 'board', 'git', 'hcl', 'regex', 'ebnf', 'files']
24559+
enumerations = ['uml', 'bpm', 'wire', 'dot', 'ditaa', 'salt', 'math', 'latex', 'chart', 'gantt', 'mindmap', 'wbs', 'yaml', 'creole', 'json', 'flow', 'board', 'git', 'hcl', 'regex', 'ebnf', 'files']
2455924560
if value not in enumerations:
2456024561
lineno = self.gds_get_node_lineno_()
2456124562
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on DoxPlantumlEngine' % {"value" : encode_str_2_3(value), "lineno": lineno} )

doc/commands.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3588,7 +3588,7 @@ class Receiver
35883588

35893589
Not all diagrams can be created with the PlantUML `@startuml` command but need another
35903590
PlantUML `@start...` command. This will look like `@start<engine>` where currently supported are
3591-
the following `<engine>`s: `uml`, `bpm`, `wire`, `dot`, `ditaa`, `salt`, `math`, `latex`,
3591+
the following `<engine>`s: `uml`, `bpm`, `wire`, `dot`, `ditaa`, `salt`, `math`, `latex`, 'chart',
35923592
`gantt`, `mindmap`, `wbs`, `yaml`, `creole`, `json`, `flow`, `board`, `git`, `hcl`, `regex`, `ebnf`,
35933593
`files`, `chen` and `chronology`.
35943594
By default the `<engine>` is `uml`. The `<engine>` can be specified as an option.

src/docnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static const StringUnorderedSet g_plantumlEngine {
7272
"salt", "math", "latex", "gantt", "mindmap",
7373
"wbs", "yaml", "creole", "json", "flow",
7474
"board", "git", "hcl", "regex", "ebnf",
75-
"files", "chen", "chronology"
75+
"files", "chen", "chronology", "chart"
7676
};
7777

7878
//---------------------------------------------------------------------------

templates/xml/compound.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@
11961196
<xsd:enumeration value="salt"/>
11971197
<xsd:enumeration value="math"/>
11981198
<xsd:enumeration value="latex"/>
1199+
<xsd:enumeration value="chart"/>
11991200
<xsd:enumeration value="gantt"/>
12001201
<xsd:enumeration value="mindmap"/>
12011202
<xsd:enumeration value="wbs"/>

0 commit comments

Comments
 (0)