|
|
|
Forum 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
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 6:02:32 AM
Posts: 764,
Visits: 1,215
|
|
| 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
|
|
|
|
|
Forum 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
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 6:02:32 AM
Posts: 764,
Visits: 1,215
|
|
| 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
|
|
|
|