You need to sign in to do that
Don't have an account?

2 Dates - how to log on a timeline
Hey there.
I'm trying to determine the best approach to something I'm about to build.
I'm looking to develop out some sort of Gantt chart - What concerns me the most
is how to plot a start date and an end date against a set calendar (logically).
I could build out the calendar part fine - but any suggestions as to how I could
plot a coloured bar against a date from the start time to the end time:
Similar to the standard salesforce calendar:
I could create the calendar ok - but any suggestions for plotting a coloured bar based on a start date and end date?
Is there some sort of standard approach people adopt to this? This doesn't seem easy...
Thanks & Best regards
If Im using a table with a td
would i dynamically be able to set the td
//Something like <td> <div style="width: {!val}; color: #FF;" /> </td>
Thanks!
Excellent - thank you Rajesh.
Can you post an example if possible?
Thanks
We defined 3 style classes as shown below in the VF page:
.colourred{ background-color: #e1a5aa; } .colourgreen{ background-color: #8cb473; } .colourwhite{ background-color: transparent; }
Then in the controller, based on the data, we would decide the color required and set the class name as shown below:
<td align="center" width="10%" class="{!Refvar.classname}" ... > </td>
Thanks Rajesh - that helps :)
What about setting the width of the coloured div?
Thanks again,
Sounds good!
Thank you very much