Jump to content
JasperReports Library 7.0 is now available ×
  • To change the color of specific part of a legend


    Jim W

    If you have a formatter function as follows and would like to change the color of a specific part of the legend, include the span tag.

    legend: { labelFormatter: function() { return '' + this.name + ''; }, symbolWidth: 0 }

    Resolution

    Here is a working example, proper encoding is the key to making it to work.

    <hc:chartProperty name="legend.labelFormatter" value="function(){return '<span style="font-style:italic;color:green">' + this.name + '</span>'; }"/>

    Ref. Case 00072211


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...