Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following parameters are available with all Graphviz macros:

Macro
Editor Label
editor labelDefaultDescriptionMacro
Parameter
parameter
Template
Templates are used to get quickly started with creating diagrams. Pick a template to initialize a diagram, from which, you can make further changes. Since

Enables users to pick a pre-configured template and make simple changes as per their requirement. Since 3.2.

Note
You can only choose a template for a new diagram for the type of Graphviz macro you are using.  If the macro contains a diagram, the Template list is hidden. 
  • These templates are available in the macro editor only when the macro body is empty. If the macro body is not empty, the user are unable to see the Templates parameter in the macro editor.
  • Only templates listed in the configuration page for the respective diagram types are available to choose from in the macro editor.
  • This parameter is not available in Graph from tableSpace graph and PlantUML macros.


template
Output typepng

Specifies the output type to be generated by Graphviz. Since 2.1.0.

  • png
  • svg
  • pdf
  • jpg
  • gif
NoteFor PDF files, it is recommended that you append .pdf to the file name and fill in the field Attachment name in the format file_name.pdf. Not doing so will give you a blank output.
output

Location of

Graphviz source

<type> source

(Where 'type' includes Graphviz/ UML)


Specifies the source from where the macro reads the data. 

  • blank -
The body will be
  • Data in the body is used.
  • ^attachment - Data is read from an attachment to the current page. Input the value in the format ^Filename.extension.
  • page^attachment - Data is read from an attachment to the page name provided.
  • space:page^attachment - Data is read from an attachment to the page name provided in the space indicated.
#filename 
  • #filename- Data is read from the file located in the Confluence home directory/script/filename. Subdirectories can be specified.
  • global page template name - Data is read from a global page template.
  • space:page template name - Data is read from a space template.
Note

Graphviz recognizes the commands only when you nest the commands under "noformat", "wiki-markup", "code", or "code-pro" macros,

 for

 for the sources mentioned below:

  • global page template
name 
  • name 
  • space:page template name 


script
Show Graphviz

Show <type> markup code

(Where 'type' includes Graphviz/ UML)

FalseShows the
Graphviz
markup code, Graphviz or UML, below the generated graph. Useful for fixing syntax errors or to see the markup that is generated by macro processing or macros like the Space
graph macro
graph macro.showCode
Attachment name
The

Specify the name of the attachment to use, create or update. Use of attachments is optional but can be useful for linking from other places and to work with the Cache

Macro

macro to improve display performance.

Examples:

  • graphviz.
png —
  • png — the image is saved as an attachment to the current page.
  • page^graphviz.
png —
  • png — the image is saved as an attachment to the page name provided.
  • Space:page^graphviz.
png —
  • png — the image is saved as an attachment to the page name provided in the space indicated.
attachment
Attachment versionnew

Specifies how the generated graph is persisted as an attachment.

New
  • new — creates a new version of the attachment.
Replace
  • replace — replaces all previous versions of the attachment. To replace an existing attachment, the user must be authorized to remove attachments for the page specified.
Keep
  • keep — only saves a new attachment if there is no existing attachment. An existing attachment will not be changed or updated.
attachmentVersion
Attachment comment
The

Specify the comment on the attachment that is created or updated.

attachmentComment
Attachment versions to keep

Limits the number of attachment versions of a file that is attached to a page. If the maximum number of attachments exceeds the limit, then the oldest version is deleted. Since version 3.2. 

Note

This parameter is only applicable if you select

New

new from the drop-down list under Attachment version

, in

 in the macro editor.


attachmentLimit

ThumbnailFalse

Used when an attachment is specified, and output is

png

PNG,

jpg

JPG, or

gif

GIF. Renders graph as a thumbnail.

Note
  • In some cases, the image and the thumbnail generated are of the same size. This is because the image is too small and fits the preview screen perfectly.
  • This parameter is not applicable
for 
  • for the Flowchart and Space graph macros.


thumbnail
Render wiki markup macros in bodyFalse
Set to true

Used to render wiki markup macros found in the body before processing as Graphviz markup. This is useful to run macros from Scripting for Confluence or similar that can produce Graphviz markup as output. Since 3.2.

Note

This parameter is not available

in 

in the Graph from table and Space graph macros.


macros
Layoutdot

Specifies which default layout algorithm to use. Since 3.2.

dot 
  • dot− filter for drawing directed graphs
  • neato − filter for drawing undirected graphs
  • twopi − filter for radial layouts of graphs
circo 
  • circo− filter for a circular layout of graphs
fdp 
  • fdp− filter for drawing undirected graphs
Note

This parameter is not available in the PlantUML macro.


layout
Profile

Specify a profile to be used with the macro. Administrators set up profiles to connect to other applications such as GitHub or GitLab. Profiles contain a basic set of parameters used to access a remote location such as the type of URL, user credentials, and so on. Some profiles may be restricted. Since 3.4.

Note
  • This parameter is not available in the Graph from table and Space graph macros.
  • Contact your administrator to know more about the profiles used in your instance.
  • If a profile is specified, it is recommended to provide the relative path to the location of the required file to be rendered.


profile

URL to

'macro'

<macro> file

(Where 'macro

~

' includes Graphviz/ Diagraph/ Graph/ PlantUML)


Specifies the URL link to the Graphviz file. Administrators may restrict use. Since 3.2.

Note
  • The URLs are restricted to the whitelisted URLs.
  • This parameter is not available
in 
  • in the Graph from table and Space graph macros.


URL
URL user
The

(Removed)

Specify the user name

for

to access the specified URL

access

via basic authentication. Since 3.2.

Warning
titleRemoval notice

Please note that the URL user and URL user password parameters were removed (see Deprecation notice: URL user and URL user password parameters). We recommend using profiles to access external data.


user
URL user password
User password for URL access
(Removed)

Specify the user password to access the specified URL via basic authentication. Since 3.2.

Warning
titleRemoval notice

Please note that the URL user and URL user password parameters were removed (see Deprecation notice: URL user and URL user password parameters). We recommend using profiles to access external data.


password
URL connection timeout
Used

Specify the time in milliseconds used to increase the wait
time for URL access
time to access the specified URL on slower connections. Since 3.2.timeout
File encoding
Allows the user to specify the encoding

Specify the encoding of the file attachment if it is different from the Confluence default (like Windows-1252, UTF-8, MacRoman). Since 3.2.

encoding
EnablescrollbartrueUsed to enable scroll bar for the data generated by Graphviz. Since 3.4.1enableScroll
Heightofthescrollbar550pxSpecify the height of scroll (applicable when scroll bar is enabled). Since 3.4.1scrollHeight


Note

For multiple macro sources (i.e. template, attachment, and URL), the order of precedence is URL > attachment > template.


Info
titlePoints to remember about profiles:
  • Only raw URLs must be given in either, the URL field in profiles or the URL to Graphviz/Diagraph/Graph/PlantUML file field, in the macros. A raw URL is defined as the part of the URL following the domain information and includes the query string, if present. For example, in the URL string http://www.contoso.com/articles/recent.aspx, the raw URL is /articles/recent.aspx.
  • It is recommended to specify absolute URLs to access files from public locations and to use profiles to access files from private sources. For example, a raw URL that can access a Graphviz file in a public Bitbucket repository is valid. But to render a file located in a private repository, we recommend using a profile.
  • Profiles are a means to access and retrieve contents from external applications such as Bitbucket, GitLab or GitHub. A profile already contains the base URL and the required credentials (user credentials or an access token) to access the relevant application.
  • This method allows multiple users to access a profile across pages and instances of the macro.