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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Customize GroupingLabels for PivotChart with 2 PivotAxis

Thread ID:





129762 Apr 2,2017 06:04 PM UTC Apr 4,2017 05:47 AM UTC WinForms 3
Tags: PivotChart
Matthijs Huisman
Asked On April 2, 2017 06:04 PM UTC


I have a PivotChart with 2 bound Axis:

  .PivotAxis.Add(New PivotItem With {.FieldMappingName = "Jaar", .TotalHeader = ""})
  .PivotAxis.Add(New PivotItem With {.FieldMappingName = "Maand", .TotalHeader = ""})

I try to customize the labels with code. With 1 PivotAxis this code works fine (BronMaandLabels is an Array of String):

 With Chart.ChartControl.PrimaryXAxis
                .Title = "Maanden"
                For t = 0 To .GroupingLabels.Count - 1
                    .GroupingLabels(t).Text = BronMaandLabels(CInt(.GroupingLabels(t).Text))
  End With

With 2 Axis I get an error... Is there a way to customize the labels with 2 PivotAxis?



Piruthiviraj Malaimelraj [Syncfusion]
Replied On April 3, 2017 08:59 AM UTC

Hi Matthijs, 

Thanks for your interest in Syncfusion products. 

We have analyzed your scenario with more than one pivot axis in PivotChart. Unfortunately we could not able to reproduce the issue at our end. Could you please provide the below details, 

·         Provide the errors details which you have faced. 
·         Ensure the reported scenario is reproduced in attached sample. 
·         If possible modify the attached sample with issue reproducible or let us know if we missed anything from your customization in that sample. 

These would be more helpful for us to provide the exact solution at the earliest. 

Sample link: 

Matthijs Huisman
Replied On April 3, 2017 09:12 AM UTC

It is solved! I had a wrong approach towards the labels, but your sample set me on the right track! 

Thanks for your help!



Piruthiviraj Malaimelraj [Syncfusion]
Replied On April 4, 2017 05:47 AM UTC

Hi Matthijs, 

Thanks for the update. 

We are glad to hear that the provided sample has resolved your scenario. Please let us know if you have any other queries. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon