Hello,
How can I deal with axis labels overflow as seen in the following screenshots?
Bars:
Funnel:
There's also an issue with the tooltip. How can it be expanded to contain the entire text. In the following screenshot you can see that the Euro sign and the label "Λογαριασμοί" are cut off:
Furthermore, every time that I use area pivot charts such as the Funnel, I get the following error, although the chart itself works well. This is especially frequent when I'm drilling down.
TypeError: Cannot read properties of null (reading 'seriesClipRect')
Hi George,
We understand that you are currently facing the following issues while using the pivot chart with Greek localization:
1. Multi-level labels are overflowing.
2. Legends are overlapping in the funnel chart.
3. Tooltip content is overflowing when hovering over chart series.
4. An exception is thrown in the console while displaying the funnel chart.
If these are your inquiries, we are currently validating them on our end and will provide further details within two business days, by March 24, 2025.
We appreciate your patience until then.
Regards,
Sridhar Karunakaran.
Hi George,
Thanks for the patience. Please refer the response below.
|
Query |
Comments |
|
1)How can I deal with axis labels overflow: Bars(Multi-level labels are overflowing.) 2) Funnel(Legends are overlapping in the funnel chart.) |
We understand that you are facing issues where multi-level axis labels are overflowing in the bar chart and legends are overlapping in the funnel chart. If this is the case, we have investigated the reported issues on our end. However, we were unable to replicate the issues, as the axis labels and legends are displaying correctly without any overflow or overlap. Please refer to the screenshot below for reference.
Output screenshot: |
|
3) There's also an issue with the tooltip. How can it be expanded to contain the entire text. In the following screenshot you can see that the Euro sign and the label "Λογαριασμοί" are cut off:
|
We understand that you are facing an issue where the tooltip is not rendering properly, causing the Euro sign and the label "Λογαριασμοί" to be cut off. If this is the case, we have investigated the reported issue on our end. However, we were unable to reproduce it, as the tooltip is displaying the full content correctly without any truncation. Please refer to the GIF image below for reference.
Output GIF:
|
|
4) Furthermore, every time that I use area pivot charts such as the Funnel, I get the following error, although the chart itself works well. This is especially frequent when I'm drilling down. |
We understand that you are encountering an error when performing a drill-down operation on the Funnel chart. If this is the case, we have investigated the reported issue on our end. However, we were unable to reproduce it, and no errors occurred during the drill-down operation.
Output GIF:
|
We suspect that these issues might be caused by additional style references or custom CSS applied in your application. In the meantime, we have prepared a sample for your reference, which you can find in the attachment below. If the problem persists, please try replicating it using the provided sample or share a dummy runnable sample that reproduces the issues. This will allow us to investigate the problem on our end and provide a solution as soon as possible.
Regards,
Narmatha Saminathan.
Hello,
Thank you for the answer. I can confirm that the overflow problems are because of the custom css. However, the error message still persists. Have you tried testing with Nextjs? In your sample you are using Create React App.
EDIT: Is there a way to change the font-family of the axis labels? I can't seem to find anything in the documentation.
Hi George,
Thank you for the update. We understand that you are facing the reported script error in the Pivot Chart with the Next.JS application. Additionally, you need to customize the font family of the axis labels in the Pivot Chart. If these are your requirements, we are currently validating them on our end and will provide further details by tomorrow(March 25, 2025).
We appreciate your patience until then.
Regards,
Sridhar Karunakaran.
Hi George,
Thanks for the patience. Please refer the response below.
|
Query |
Comments |
||
|
Thank you for the answer. I can confirm that the overflow problems are because of the custom css. However, the error message still persists. Have you tried testing with Nextjs? In your sample you are using Create React App.
|
Based on your requirements, we have checked the reported script error in the Pivot Chart using the Next.js application with the latest version(v29.1.33). However, we were still unable to replicate the problem on our end. For your reference, we have prepared a sample that we tested. Please find it in the attachment below.
Output GIF: We suspect that you may be using an older version of Syncfusion, which could be causing the issue. If the problem persists, please try replicating it using the provided sample or share a runnable dummy sample that reproduces the issue. Additionally, let us know the Syncfusion package version you are using. This will help us investigate the issue further and provide a solution as soon as possible. |
||
|
EDIT: Is there a way to change the font-family of the axis labels? I can't seem to find anything in the documentation. |
We understand that you need to customize the font family of the Y-axis labels in the pivot chart. If that's the case, you can achieve this by using the fontFamily property within the labelStyle of the primaryYAxis. Please see the example code below.
Code example:
Additionally, if you want to customize the font family of the multi-level labels in a pivot chart, you can use the multiLevelLabelRender event and set the args.textStyle.fontFamily to your chosen font family. Please refer to the code example below.
Code example:
Meanwhile, we have prepared a sample for your reference. Please find it in the attachment below. |
Please let us know if you have any concerns.
Regards,
Sridhar Karunakaran
Hello,
I am glad to say that I have updated to the most recent version and the error hasn't reappeared. I've also fixed the overflowing issues with the proper application of the desired font.
If I may offer a suggestion, please update your documentation. I had no idea that there was an option to change the font family.
Thank you for your help.
Hi George,
We are glad to hear that the reported issue has been resolved on your end. Moreover, we will update our UG documentation to include details on customizing the font family of the label in the PivotChart. We will notify you once the updated documentation is live.
We appreciate your patience until then.
Regards,
Narmatha Saminathan.
Hi George,
Thank you for your patience.
We’re pleased to inform you that we have updated our UG documentation to include guidance on customizing the font family of PivotChart labels. Please find the updated documentation using the link below.
Documentation: https://ej2.syncfusion.com/react/documentation/pivotview/pivot-chart#axis-customization
Please feel free to reach out if you have any further questions or concerns.
Regards,
Narmatha Saminathan