-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example not working #4
Comments
Hi xiaodaigh, I am also getting same error. Can you please tell me how you resolved that issue? Thanks! |
@sumitraghav Do you use the latest version? |
Hi adrai, Thanks for the reply But now the problem is, it is not redirecting to the given url. Thanks |
Is the \n after www.google.com really needed? I think this is the problem... |
YEH, when i add \n after the link, my problem resolved. I guess chart object read all the lines and and if in do not use \n it doesn't read io step as it doesn't found it in new line. May be my assumption but my problem is resolved when i did this. I found this by debugging the flowchart javascript . Now my question is |
Can you paste me your whole example "code" (description of flowchart)? |
I am using this code <script> window.onload = function () { var diagram = flowchart.parse('st=>start: Start:>http://www.google.com[blank]\n' + 'e=>end:>http://www.google.com\n' + 'op1=>operation: My Operation1\n' + 'sub1=>subroutine: My Subroutine1\n' + 'cond1=>condition: Yes \n' + 'or No 1?\n:>http://www.google.com\n' + 'op2=>operation: My Operation2\n' + 'sub2=>subroutine: My Subroutine2\n' + 'cond2=>condition: Yes \n' + 'or No 2?\n:>http://www.google.com\n' + 'io=>inputoutput: catch something...\n' + '' + 'st->op1->cond1\n' + 'cond1(yes, right)->op2->cond2\n' + 'cond1(no)->op1\n' + 'cond2(yes, right)->io->e\n' + // conditions can also be redirected like cond(yes, bottom) or cond(yes, right) 'cond2(no)->op2'); diagram.drawSVG('diagram'); // you can also try to pass options: diagram.drawSVG('diagram', { 'line-width': 3, 'line-length': 50, 'text-margin': 10, 'font-size': 14, 'font-color': 'black', 'line-color': 'black', 'element-color': 'black', 'fill': 'white', 'yes-text': 'yes', 'no-text': 'no', 'arrow-end': 'block' }); }; </script>And i include raphael.js and flowchart.js both latest. |
this? ;-) st=>start: Start:>http://www.google.com[blank] st->op1->cond |
how could i post the code? |
Yeh I am trying this one exactly in one one my code |
that is my code in other example. window.onload = function () { // you can also try to pass options: diagram.drawSVG('diagram', { |
ok, seams to be a bug in raphael... DmitryBaranovskiy/raphael#784 |
Can u plz tell me.. how could I resolve this. In the link u gave, they are using different format and different object i guess. Can u plz give me the suitable code. |
At the moment you need an older version of raphael or simply wait until the new raphael version is released. |
thanks a lott adrai, will try that option.... can u plz give me the link for older version . Because there is only latest version is available on the website i think. |
It is working now. One more thing . Can we pass data through JSON format into diagram.parse(""); |
At the moment it's the string only, but pull requests are welcome! |
Ohh cool, Can we pass String through JSON ?? |
What do you mean with String through JSON? Can you make an example? |
Actually I want the thing that I ask you b4. But now I ll work llok into string format. Can we change it according to our need. For example I want to draw it in center position and draggable. http://raphaeljs.com/graffle.html Thanks! |
short feedback:
|
I get the following error
Uncaught TypeError: Cannot set property 'direction' of undefined flowchart-1.2.2.min.js:5
n flowchart-1.2.2.min.js:5
(anonymous function) (index):273
The text was updated successfully, but these errors were encountered: