a_goodgirl Report post Posted October 13, 2014 (edited) Hi! Styles TASKLABELS and TASKDATELABELS does not work in Gantt chart. Consider the demo example (see Chart gallery) "Gantt Chart with both date and time". Add styles TASKLABELS, TASKDATELABELS and SUBCAPTION: <chart dateformat="mm/dd/yyyy" outputdateformat="hh:mn" caption="Work Schedule" subcaption="For next 2 days" showborder="0"> <categories> <category start="7/15/2007 00:00:00" end="7/15/2007 23:59:59" label="Today" /> <category start="7/16/2007 00:00:00" end="7/16/2007 23:59:59" label="Tomorrow" /> </categories> <categories align="right"> <category start="7/15/2007 00:00:00" end="7/15/2007 05:59:59" label="6 am" /> <category start="7/15/2007 06:00:00" end="7/15/2007 11:59:59" label="12 pm" /> <category start="7/15/2007 12:00:00" end="7/15/2007 17:59:59" label="6 pm" /> <category start="7/15/2007 18:00:00" end="7/15/2007 23:59:59" label="Midnight" /> <category start="7/16/2007 00:00:00" end="7/16/2007 05:59:59" label="6 am" /> <category start="7/16/2007 06:00:00" end="7/16/2007 11:59:59" label="12 pm" /> <category start="7/16/2007 12:00:00" end="7/16/2007 17:59:59" label="6 pm" /> <category start="7/16/2007 18:00:00" end="7/16/2007 23:59:59" label="Midnight" /> </categories> <processes fontsize="12" isbold="1" align="left" headertext="Who?" headerfontsize="18" headervalign="bottom" headeralign="left"> <process label="John.S" id="EMP121" /> <process label="David.G" id="EMP122" /> <process label="Mary.P" id="EMP123" /> <process label="Andrew.H" id="EMP124" /> <process label="Neil.M" id="EMP125" /> </processes> <tasks showlabels="1" showstartdate="1"> <task processid="EMP121" start="7/15/2007 08:00:00" end="7/15/2007 12:30:00" label="Logo A" /> <task processid="EMP121" start="7/15/2007 17:00:00" end="7/15/2007 19:30:00" label="Logo B" /> <task processid="EMP121" start="7/16/2007 09:00:00" end="7/16/2007 19:30:00" label="Website template" /> <task processid="EMP122" start="7/15/2007 10:00:00" end="7/15/2007 20:30:00" label="PHP Blueprint" /> <task processid="EMP122" start="7/16/2007 10:00:00" end="7/16/2007 20:30:00" label="PHP Blueprint" /> <task processid="EMP123" start="7/15/2007 08:00:00" end="7/15/2007 12:00:00" label="Support" /> <task processid="EMP123" start="7/16/2007 15:00:00" end="7/16/2007 21:30:00" label="Support" /> <task processid="EMP124" start="7/15/2007 08:00:00" end="7/15/2007 20:30:00" label="Level 2 support" /> <task processid="EMP124" start="7/16/2007 08:00:00" end="7/16/2007 20:30:00" label="Level 2 support" /> <task processid="EMP125" start="7/15/2007 10:00:00" end="7/15/2007 14:30:00" label="Network Maintenance" /> <task processid="EMP125" start="7/16/2007 12:00:00" end="7/16/2007 14:30:00" label="System OS Updates" /> </tasks> <styles> <definition> <style name="myFont" type="font" size="16" color="ff0000" bold="1" italic="1" underline="1"/> </definition> <application> <apply toObject="TASKLABELS" styles="myFont"/> <apply toObject="TASKDATELABELS" styles="myFont"/> <apply toObject="SUBCAPTION" styles="myFont"/> </application> </styles> </chart> Styles TASKLABELS and TASKDATELABELS are ignored, however, the same style SUBCAPTION applies: Edited October 13, 2014 by a_goodgirl Share this post Link to post Share on other sites
Moonmi Sonowal Report post Posted October 14, 2014 Hi, The STYLE element is no longer supported in FusionCharts Suite. Font customization is now possible through attributes of the chart element. To customise the Caption and Sub-caption font please make use of the "captionFontSize" and "subCaptionFontSize" attributes in the chart element. Similarly it can be set to Bold and specific colors can also be set. We can individually customize font properties of each element like categories , process, tasks, datatable ,datacolumn as well text using their respective attributes . Below is a documentation link where you can find more on font customization of Gantt chart. http://docs.fusioncharts.com/tutorial-attr-gantt.html Thanks. Share this post Link to post Share on other sites
a_goodgirl Report post Posted October 14, 2014 Thanks for the answer! But there is a problem: I want to set the properties for the "tasks". Previously, using the style TASKLABELS or TASKDATELABELS for the Font Style Type we can be set the following basic attributes: "font", "size", "color", "bold", "italic", "underline", "bgColor". Now for "tasks" (or "task") can be set "font", "fontColor", "fontSize". How to set "bold", "italic" and other attributes? Share this post Link to post Share on other sites
Moonmi Sonowal Report post Posted October 16, 2014 Hi, Currently we do not support bold or italic in the task element of Gantt chart. However, we are looking its feasibility into the chart. Will keep you posted. Thanks. Share this post Link to post Share on other sites
a_goodgirl Report post Posted October 16, 2014 It's sad that FusionСharts loses its functionality instead of develop .. Share this post Link to post Share on other sites