Hello,
I cannot find any example of how to use the properties legendItemTemplate and legendItemBadgeTemplate, and frankly I'm not even sure that's the correct way to do what I want.
I want to add a line break to a legend and add a bold text on one of the lines.
Can you please point me to the documentation explaining how to do that or provide me with an example of how to do it?
Best regards,
Arthur
Hello Arthur,
Thank you for contacting Infragistics Community!
I believe you will find the attached sample I have prepared for you very helpful. As you can observe I’m using the legendItemTemplate option of the igPieChart. Please note that the render function would be called for each record of the igPieChart data. Using the data.legendLabel() method you can check for which record is called the function and modify its context (UI). As you can observe I have bolded the “Management” label and I have appended a line break above it.
If this sample is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.
Looking forward to hearing from you.
Best Regards, Martin Evtimov Entry Level Software Developer Infragistics, Inc.
V2.zip
Hello Martin,
First of all, thank you for the kind reply. My problem is with changing the labels generated around the pie chart, not the legend. Does it work the same way? I did not manage to find a quick tweak to achieve that.
Thank you for the patience!
After further investigation I determined that providing label templates for the igPieChart is currently not provided out of the box. What I can suggest is submitting this as a new product idea for future versions at http://ideas.infragistics.com.
Steps to create your idea:
The benefits of submitting the product idea yourself include:
- Direct communication with our product management team regarding your product idea. - Notifications whenever new information regarding your idea becomes available.
Additional benefits of the product idea system include: - Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time. - Allow you to shape the future of our products by requesting new controls and products altogether. - You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Please let me know if you need any further assistance.