Hi Simone,
You can customize PivotChart legend text by using RenderSuccess event in PivotClient. Please refer the below code snippet and screenshot.
Code Snippet:
|
@Html.EJ().Pivot().PivotClient("PivotClient1").Locale("en-US").Url(Url.Content("~/api/RelationalClient")).Title("PivotClient").ClientSideEvents(oEve => { oEve.RenderSuccess("setChartProperties"); })
<script>
function setChartProperties(args) {
this._pivotChart.model.legendItemRendering = function (args) {
if (args.data.legendItem.Text == "ME~~FY 2005~~Amount")
args.data.legendItem.Text = "CustomLegendText";
};
}
</script> |
Screenshot:
Please let us know I any concern.
Thanks,
Manikandan.