We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Pie Chart Title Not Appearing

Hello Syncfusion,

I have a pie chart drawn in my application. However, the titles on my pie chart are not visible; When I inspect, I find that  Y="NaN" and so I cannot see the chart title.However, when I manually input Y="100", I can see the chart title.




How can I solve this.


I have attached my code files here for your review.


Thank You


Attachment: Pages_5d5a680b.rar

3 Replies

DG Durga Gopalakrishnan Syncfusion Team February 9, 2023 03:17 PM UTC

Hi IBS,


Greetings from Syncfusion.


We have ensured your reported scenario in latest version; accumulation chart title is rendered properly. We have attached the tested sample and screenshot for your reference.



Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/AccChartTitle1579301425.zip


Since we are unable to replicate an issue from our end, we request you to share the following information which will be helpful for further analysis and provide you the solution sooner.

  • Try to reproduce the reported scenario in above sample.
  • Please share your sample (or) code snippet with full configurations.
  • Share the details if you have done any other customization in your sample.
  • Share your datasource file.
  • Share your NuGet package version.


Kindly revert us if you have any concerns.


Regards,

Durga Gopalakrishnan.



IB IBS February 10, 2023 06:53 AM UTC

Hi Durga,

I shared my code files in the email I shared earlier on. Please use that one.

My NugGt Package version is : 20.2.0.46. Could it be the problem ?


Thank You



DG Durga Gopalakrishnan Syncfusion Team February 13, 2023 12:07 PM UTC

IBS,


We have checked your reported scenario with attached code snippet. We have noted that you have bind the ExplodeRadius property to ExplodeOffset property of accumulation chart in CummulativeChartPartialPage.razor file and specified ExplodeOffset in DashboardPage.razor file, so the reported console exception thrown, and title is not rendered.



We request you to assign and access the property names properly in your application to overcome the reported problem. We have attached the modified sample for your reference. Please check with the below snippet and sample.


PiePartial.razor

<SfAccumulationChart Title="@ChartTitle">

    <AccumulationChartSeriesCollection>

        <AccumulationChartSeries ExplodeOffset="@ExplodeOffset">

        </AccumulationChartSeries>

    </AccumulationChartSeriesCollection>

</SfAccumulationChart>

 

Index.razor

<PiePartial Explode="true" ExplodeOffset="10%"

  ChartTitle="Total number of Beneficiaries on ICARE - By Known Risk Factor" />

 



Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/PieTitle1195854288.zip


Please revert us if you have any concerns.


Loader.
Up arrow icon