How to Manipulate VML Graphics

  • Thread starter Thread starter vunet.us
  • Start date Start date
V

vunet.us

Hi All!
I have a VML chart. One of the shapes draws a chart's main line as
here: http://www.grapl.net/vmlnotes/examples/rain2000.htm
I need to manipulate a chart line. I assigned ID to the "shape"
attribute and paint the "path" with innerHTML using JavaScript. It
works well for the first time. But second time and on, when I run
JavaScript to insert a new path, the chart becomes 10 times smaller and
gets painted on the left top side of the chart's area.
Is there something I miss? Do I need to know something before doing VML
graphics manipulation? I cannot find a hint. Please, help!
Thank you all.
 
The answer is to manipulate the path attribute of the shape:
get shape by ID and set its path to have different coordinates.
Thanks.
 
Back
Top