On 12/3/2025 8:41 PM, Alan Caruanambo wrote:
How can I center the numbers so they display correctly?
image.png

\startMPpage
    draw lmt_chart_circle [
        samples       = { { 80, 20 } },
        fillcolors    = { "darkred", "darkyellow" },
        percentage    = true,
        labelfraction = .60,
        labelstyle    = "bold",
        labelcolor    = "white",
        labelformat   = "@0.1f\percent"
    ] ;
\stopMPpage

see mp-lmtx.mpxl line 1009 etc

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to