Questions on SyncFusion Blazor Ranga Bar Chart
Hi,
I have the following questions on theSyncFusion Blazor Ranga Bar Chart.
- Is it possible to add HTML elements such as a checkbox in the Axis label?
- Can we format the Axis label i.e. can we display individual axis label text in bold, italic etc?
- Can we display a long Axis label into multiple lines may be to 2 o3 lines.?
- Can we display a custom Tooltip when hovering mouse on an axis label just like tooltip displayed on datapoints?
- Can we display a context menu when right clicking on an axis label?
Hi,
You may ignore questions 2 & 3. I found the following solutions:
<ChartEvents OnAxisLabelRender="@AxisLabelRender">
void AxisLabelRender(AxisLabelRenderEventArgs args)
{
if (args.Axis.Name == "PrimaryXAxis")
{
args.Text = "label1<br>label2";
args.LabelStyle.Color = "Blue";
}
}
Thank you for reaching out to Syncfusion support.
Query 1: Is it possible to add HTML elements such as a checkbox in the Axis label?
Currently, our product does not support adding HTML elements (such as checkboxes) to axis labels. However, we have considered your requirement as improvement and logged a feature request on “Support to add template for chart axis labels”. Based on other logged tasks priority, we will include this improvement in any of our upcoming release. You can keep track of an improvement from the below feedback link.
Feedback : https://www.syncfusion.com/feedback/65545/support-to-add-template-for-chart-axis-labels
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.
Query 2: Can we display a custom Tooltip when hovering the mouse on an axis label, similar to the tooltip displayed on data points?
Currently, custom tooltips for axis labels are not supported.
Query 3: Can we display a context menu when right-clicking on an axis label?
At this moment, we do not offer the functionality to display a context menu on right-click of axis labels.
Hi Ramesh,
Regards,
Ilamathi Govindaraj.
- 3 Replies
- 3 Participants
-
RS Ramesh S
- Feb 17, 2025 01:27 PM UTC
- Sep 8, 2025 10:26 AM UTC