Aller au contenu principal

How can I set the labels and colors of a pie chart

Commentaires

1 commentaire

  • Permanently deleted user

    I solved my problem after I got a response from Ryan Cooney from Latitude Geographics, posting it here for reference...

     

    To format the labels on the chart area you do this:

    select label

     

     

     

    To format the labels on the legend you do this:

    select legend

     

     

     

     

    These “Text Patterns” are a bit of magic, but they are documented by DevExpress (the 3rd party reporting engine we use).

     

    https://documentation.devexpress.com/CoreLibraries/DevExpress.XtraCharts.SeriesBase.LegendTextPattern.property

     

    With my test data I was able to produce this:

    test_data

     

     

     

     

    Colors are tricky. You can select the predefined color palette to use from the Chart properties panel.

    palettes

     

     

     

     

    To explicitly control the color of each value the color must be defined by a field value in the data.

    set_color

     

     

     

     

    I was able to explicitly define by own colors in a calculated field like this (but it doesn’t scale well if there are lots of values):

    expression

     

    The color data argument does also accept hex color codes as input

    0

Vous devez vous connecter pour laisser un commentaire.