1

I am drawing a flow chart based on Raphael shapes & Text. On page load, i drew the rapahel shapes with text inside. this text is some status. there is some background processing happening which is changing the status. Now i want to update this status(which is a rapahel text inside raphael shape)on a button click without redrawing the over flow chart shapes again. i.e i wants to update just the text inside the shape. Here both shapes and texts are in array. I am using json to get the status.

Please refer following stackoverflow question for the code and flow chart. I am looking for a pointer to achieve this. i cannot get the whole code because of the server side scripting dependency

How to avoid overlapping of Rapahel js path

Community
  • 1
  • 1
JDev
  • 347
  • 1
  • 4
  • 19

1 Answers1

2

Assuming raphText is your RaphaelJS text element reference then raphText.attr("text", "new status"); will change the text content.

For further information: have a look at http://raphaeljs.com/reference.html#Element.attr .

atondelier
  • 2,424
  • 15
  • 11