Hello all,
Pie chart legend color changes when the report is exported to PDF. The legend doesn't have the same colors that of the pie chart. This works fine in SSRS. The legend has the corresponding colors of the pie chart. However when exported to PDF the legend colors dramatically change.
Thanks
Satish
I use a VB script to populate the legend colors.
The VB script is as follows
Private colorPalette As String() = {"#4d8ef7", "#ffe384", "#e74108", "#488AC7", "#98AFC7", "#153E7E", "#FFF380", "#6698FF", "#C34A2C", "#2B60DE", "#ECD872", "#717D7D", "#FAAFBA","#C68E17"}
Private count As Integer = 0
Private mapping As New System.Collections.Hashtable()
Public Function GetColor(ByVal groupingValue As String) As String
If mapping.ContainsKey(groupingValue) Then
Return mapping(groupingValue)
End If
Dim c As String = colorPalette(count Mod colorPalette.Length)
count = count + 1
mapping.Add(groupingValue, c)
Return c
End Function
See my below post for the chart result