GANTT CHART
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



GANTT CHART Expand / Collapse
Author
Message
Posted 9/21/2007 12:15:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/21/2007 5:25:43 AM
Posts: 2, Visits: 8
sir/madam,

we are planning our chart to integrate into fusion chart.
almost bar chart, pie chart, line chart, category chart, stacked bar chart are done.

i've done something well in fusion chart also.

but they way it should look its not coming so that i am looking for ur suggesion.

so that i should go further.

what i want to do is, I have some drug timeline thing where i need to show gantt chart for (therapy, reaction, drug). each category should come into different color, so that we can identify these categories.

here i m getting everything right but i am not able to change the color for the categories.
i cannot hard code it.

(I've attached two image file and xml file )

please into these for your reference.

please reply soon.

thanks and regards.

Narendra Mohan Prasad

  Post Attachments 
GANTT1.JPG (27 views, 38.33 KB)
GANTT.JPG (19 views, 28.77 KB)
gantt.xml (16 views, 2.39 KB)

Post #2470
Posted 9/21/2007 12:59:39 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 2 days ago @ 9:41:33 AM
Posts: 809, Visits: 1,285
hi,

find the attached XML and try running it.

I have put color to each [task]

and for each lagend used [legend] element. Put near the edn of the XML. (Also added legend style.)

Regards,

Sudipto Choudhury
FusionCharts Team


  Post Attachments 
Data.xml (13 views, 2.79 KB)

Post #2472
Posted 9/21/2007 1:24:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/21/2007 5:25:43 AM
Posts: 2, Visits: 8
but how do i make colors dynamically.

because i dont now how many items will be there for each category.

any way thanks for ur response.

i'll also try to do some thing like this bcoz i m getting this xml on run time.



Narendra Mohan Prasad

Post #2474
Posted 9/21/2007 3:02:34 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 2 days ago @ 9:41:33 AM
Posts: 809, Visits: 1,285
hi,

try creating a php function  that will return a color string from a list of colors (array)...say of size 40. Now as per your needs add color from this function to your tasks and legends.

Hope your PHP programmer will be able to handle it.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #2475
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 2:44am


Execution: 0.047.