discourse/plugins/discourse-graphviz
David Taylor 5ba00d57b0
UX: Fit large Graphviz graphs to the box instead of overflowing (#40915)
Since be74f5ff1c, large Graphviz diagrams
rendered at their natural SVG size, overflowing the post box and the
fullscreen view.

This change scales graphs down to fit the box in both dimensions while
preserving their aspect ratio. Graphs are only rendered at full size
once zoomed.
2026-06-15 22:44:39 +01:00
..
assets UX: Fit large Graphviz graphs to the box instead of overflowing (#40915) 2026-06-15 22:44:39 +01:00
config I18N: Update translations (#40823) 2026-06-12 16:19:35 +02:00
db/post_migrate FEATURE: Modernize Graphviz implementation (#40720) 2026-06-11 11:42:23 +01:00
public/javascripts
spec FEATURE: Modernize Graphviz implementation (#40720) 2026-06-11 11:42:23 +01:00
test/javascripts/unit/lib FEATURE: Modernize Graphviz implementation (#40720) 2026-06-11 11:42:23 +01:00
.prettierignore
CHANGELOG.md
LICENSE.md
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb FEATURE: Modernize Graphviz implementation (#40720) 2026-06-11 11:42:23 +01:00
README.md DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
upgrade-viz-js.rb

discourse-graphviz

https://meta.discourse.org/t/graphviz-plugin/97554/

Adds Graphviz capability to discourse.

Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/graphviz-plugin/97554

Usage

See the Graphviz site for documentation and examples.
To use with a discourse post, wrap the chart definition in graphviz tags and define engine (if not defined, it will default to dot) like this:

[graphviz engine=neato]
graph {
  a -- b;
  b -- c;
  a -- c;
  d -- c;
  e -- c;
  e -- a;
}
[/graphviz]