Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

I need to make a flowchart for which the output needs to be editable

$
0
0

So the issue I am facing is, I need to make a flowchart and be able to edit like how you could edit charts in Tableau or PowerBI (without needing to code). I'm trying to see if there is any library in Python that can help me with it. Or any way to export the code to any other language/software/website that can help me do the same (like how LucidCharts is compatible with SQL). Any help or further clarification needed, please let me know.

This is the flowchart in question:`import schemdrawimport schemdraw.flow as flow

with schemdraw.Drawing() as d:d.config(fontsize=11)

# start of the flowchartstart = flow.Start(w=2, h=1).label('START')d += start# input the yeard += flow.Arrow().right(d.unit*0.6)input_year = flow.Box(w=3, h=1).label('Input the Year')d += input_year# check divisibility by 4d += flow.Arrow().right(d.unit*0.4)check_4 = flow.Decision(w=3, h=3, E='YES', S='NO').label('Is it divisible\nby 4?')d += check_4# if not divisible by 4, end processd += flow.Arrow().down(d.unit*0.4).at(check_4.S)not_leap = flow.Box(w=3, h=1).anchor('W').label('Not a Leap Year\n(END)')d += not_leap# check divisibility by 100d += flow.Arrow().right(d.unit*0.4).at(check_4.E)check_100 = flow.Decision(w=3, h=3, E='YES', S='NO').label('Is it divisible\nby 100?')d += check_100# if not divisible by 100, it's a leap yeard += flow.Arrow().down(d.unit*0.4).at(check_100.S)leap = flow.Box(w=3, h=1).anchor('W').label('Leap Year')d += leap# check divisibility by 400d += flow.Arrow().right(d.unit*0.4).at(check_100.E)check_400 = flow.Decision(w=3, h=3, E='YES', S='NO').label('Is it divisible\nby 400?')d += check_400# if divisible by 400, it's a leap yeard += flow.Arrow().right(d.unit*0.4).at(check_400.E)leap2 = flow.Box(w=3, h=1).anchor('W').label('Leap Year\n(END)')d += leap2# f not divisible by 400, it's not a leap yeard += flow.Arrow().down(d.unit*0.4).at(check_400.S)not_leap2 = flow.Box(w=3, h=1).anchor('W').label('Not a Leap Year\n(END)')d += not_leap2# save the flowchart as jpeg# d.save('flowchart.jpeg')`

and this is the output I had:click here


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>