Coder Social home page Coder Social logo

embedding-gravizo-graph's Introduction

What is Gravizo?

A simple way of describing graphs and include it easily in your web for free, blog, markdown page, github, and any location where remote images can be showed. Gravizo uses Graphviz to render graphs. It supports DOT, PlantUML, UMLGraph syntax and SVG in JSON format. It will include other formats in the future. No javascript, no plugins needed so you can include in any document. ... from http://www.gravizo.com

Related Posts

Example

1. Sequence Diagram

![Alt text](https://g.gravizo.com/svg?
@startuml;
hide footbox;
autonumber;
actor User;
box "External Service";
participant "Proxy Service A" as A;
participant "Transport" as B;
end box;
box "Internal Service";
participant "Transport" as C;
participant "Service Handler" as D;
end box;
participant "Service A" as E;
... ...;
User -> A: Service Request;
activate A;
A -> B: Create Request/XDR encode;
note over A: switch req->op;
activate B;
B -> C: zmq_send;
activate C;
C -> D: XDR decode/Create Request;
activate D;
note over D;
switch req->op;
end note;
D -> E;
activate E;
D <--E;
deactivate E;
D --> C: XDR encode;
deactivate D;
C --> B: zmq_receive;
deactivate C;
B --> A: XDR decode;
deactivate B;
A --> User: Service Response;
deactivate A;
ref over A;
 test_add:calc_client.cpp;
end ref;
ref over D,E;
 serve:calc_server.cpp;
end ref;
...;
@enduml
)

🌟 Credit to Stephen McDowell for this guide.

 $ python
Type "help", "copyright", "credits" or "license" for more information.
>>> raw = '''  INSERT YOUR SEQUENCE DIAGRAM    '''
>>> import urllib
>>> urllib.quote(raw)
' ... USE THIS OUTPUT FOR GITHUB README ...'

Basically, convert @startuml;...@enduml with urllib.quote() and insert between ![Alt text](https://g.gravizo.com/svg? and ).

2. Diagram Graph

Alt text

💡 Use <img> tag instead to adjust the size of a diagram.

<p align="center">
<img  width="650px" alt="Alt Text" src="https://g.gravizo.com/svg?...."/>
<p>

embedding-gravizo-graph's People

Contributors

phyunsj avatar

Watchers

 avatar  avatar

Forkers

i4ki joelagnel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.