Sign in to follow this  

Gantt chart: TASKLABELS and TASKDATELABELS styles error.

Recommended Posts


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">
<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 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" />
<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" />
<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" />
<style name="myFont" type="font" size="16" color="ff0000" bold="1" italic="1" underline="1"/>
<apply toObject="TASKLABELS" styles="myFont"/>
<apply toObject="TASKDATELABELS" styles="myFont"/>
<apply toObject="SUBCAPTION" styles="myFont"/>

Styles TASKLABELS and TASKDATELABELS are ignored, however, the same style SUBCAPTION applies:



Edited by a_goodgirl

Share this post

Link to post
Share on other sites



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.



Share this post

Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this