Questions on SyncFusion Blazor Ranga Bar Chart

Hi,

I have the following questions on theSyncFusion Blazor Ranga Bar Chart.

  1. Is it possible to add HTML elements such as a checkbox in the Axis label?
  2. Can we format the Axis label i.e. can we display individual axis label text in bold, italic etc?
  3. Can we display a  long Axis label into multiple lines  may be to 2 o3 lines.?
  4. Can we display a custom Tooltip when hovering mouse on an axis label just like tooltip displayed on datapoints?
  5. Can we display a context menu when right clicking on an axis label?

Thanks,
Ramesh S

3 Replies

RS Ramesh S February 18, 2025 04:19 AM UTC

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";

       }

    }




DG Durga Gopalakrishnan Syncfusion Team February 18, 2025 02:14 PM UTC

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.

  

Feedbackhttps://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.





IG Ilamathi Govindaraj Syncfusion Team September 8, 2025 10:26 AM UTC

Hi Ramesh,

We are glad to announce that our Essential Studio® 2025 Volume 3 Release v31.1.17 is rolled out. We have added support for applying templates to chart axis labels, and it is available for download under the following link.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 

Regards,

Ilamathi Govindaraj.


Loader.
Up arrow icon