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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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))
                Next
  End With

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

Regards,

Matthijs

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: 
 
Regards, 
Piruthiviraj

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!

Regards,

Matthijs 

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. 

Regards, 
Piruthiviraj 


CONFIRMATION

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.

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

;