[Javascirpt] developer-friendly Flow Charts with Flowchart.js

Source: Internet
Author: User
Tags cloudflare

Flowchart.js is a great tool for creating quick, simple flowcharts in a-the-keeps you out of a WYSIWYG, and keeps you R productive. No more drawing lines, no more determining how to draw a shape, no more deciding relative size and distance. Flowchart.js makes it easy to prototype new concepts and confirm product flows. Built in JavaScript, the library was complete with HTML rendering and a standard grammar and syntax for creating your flows .

<!DOCTYPE HTML><HTMLLang= "en"><Head>  <MetaCharSet= "UTF-8">  <title>Flowchart.js Example Project</title></Head><Body><DivID= "Chart"></Div><Scripttype= "Text/javascript"src= "//cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.min.js"></Script><Scripttype= "Text/javascript"src= "//cdnjs.cloudflare.com/ajax/libs/flowchart/1.6.6/flowchart.min.js"></Script><Scripttype= "Text/javascript"src= "//cdnjs.cloudflare.com/ajax/libs/axios/0.17.1/axios.min.js"></Script><Scripttype= "Text/javascript"src= "Script.js"></Script></Body>

Axios.get ('/data/additional-sample.txt '). Then ({data}) = {    = flowchart.parse (data);    Fc.drawsvg (' chart ');  });

Flowchart 1:

start=>startend=endoperation=operation:operation examplesubroutine= subroutine:subroutine examplecondition=>condition:true or False? inputoutput=inputoutput:input output examplestart->operation->conditioncondition (yes) ->subroutine->endcondition (NO)->inputoutput->end

Flowchart 2:

S=>Start:user wouldlike to use the Applicatione =End:user is authenticatede2= End:user  is a authenticatedo1 in with E- mail and PASSWORDC1=>condition:email is valid? C2=>condition:password is valid? io1=inputoutput:username or password is invalid, notify users->o1->c1c1 (yes)- >c2c1 (No)->io1->e2c2 (yes),ec2 (NO)->io1->e2

St=>start:i Wan 't to go off with 4 friendscond1=>condition:vegans?cond2=>condition:vegetarians?cond3= >condition:kosher?e1=>end:veggie sushie2=>end:pizzae3=>end:oysterse4=>end:sarge' s Deli (Open Hours) Io1= Inputoutput:argue about bestoptionstcond1cond1 (yes)  E1cond1 (No),cond2cond2 (yes),e2cond2 (No),cond3cond3 (yes)->io1- >e4cond3 (NO)->e3

[Javascirpt] developer-friendly Flow Charts with Flowchart.js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.