ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Gantt chart editing via
Posted by Jason on Nov-06-2008 01:14
I want to be able to display and edit a gantt chart on my web application which uses a MySQL backend, Apache and Django/Python.    Will I be able to move the the graph bars within the gantt chart to make it interactive.   Is this done with a new layer?  Or should I be using horizontal bars with layers?

Thanks in advance
Jason

  Re: Gantt chart editing via
Posted by Peter Kwan on Nov-06-2008 02:08
Hi Jason,

ChartDirector will only provide you with the mouse down, mouse up, mouse move and other mouse events for the bars. You may perform whatever you like with the mouse interactions by writting your own mouse handlers.

As the clickable region of a bar is defined using an image map, the bar is not really a distinct DOM object on a web page, so you cannot really "drag the bar". This is just like the eyes, nose, ears, etc, of a human face in a digital photograph is not individual dragable when appeared on a web page, although they may be individually clickable if there is a proper image map.

However, you can still create a drag and drop user interface. For example, in the simplest case, when the user starts dragging, you can draw a rectangle to represent the outline of the bar and drag the outline with the mouse.When the mouse drop occur, you may contact the server to update the chart.

(You may try the "Zoomable and Scrollable Demonstration" sample code, and try to "drag" the graph to scroll it. You can see an outline rectangle. When the mouse drops, the chart is updated. You may do something similar with your own code, where the outline rectangle represents the bar, and the chart is updated to reflect the change in position of the bar.)

Hope this can help.

Regards
Peter Kwan