Jump to content
Changes to the Jaspersoft community edition download ×
  • 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 }


    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.

    This is now closed for further comments

  • Create New...