Hi Ryan,
We have analysed your query. From that, we would like to let you know that we have customised the legend group using css as shown in the below code snippet. We have also attached the sample for your reference. Please find the sample, code snippet and screenshot below.
Code Snippet:
App.component.css:
.block {
display: block;
}
.none {
display: none;
}
App.component.html:
// add your additional code here
<button ejs-button cssClass="e-info" (click)="onChange($event)" style="text-transform:none !important">
Hide Legend </button>
// add your additional code here
App.component.ts:
public onChange(e: Event): void {
if (this.click) {
document.getElementById("chartcontainer_chart_legend_g_0").setAttribute("class", "none");
} else {
document.getElementById("chartcontainer_chart_legend_g_0").setAttribute("class", "block");
}
this.click = !this.click;
}
// add your additional code here |
Screenshot:
Before Click:
After click:
If still this is not your exact requirement, kindly provide us with more information, which will be helpful in further analysis and provide you the solution sooner.
Regards,
Srihari