pieBoxLabeler(3tk)
π pieBoxLabeler β the class that labels ur pie slices, bestie π
okay so this is pieBoxLabeler, a manual page from the tkpiechart fam, and it's the pie box style labeler class. she's the one who decides where ur slice labels go. no cap. β¨
β¨ SYNOPSIS β¨
stooop::new pieBoxLabeler canvas ?options?
switched::configure pieBoxLabelerObject ?options?
switched::cget pieBoxLabelerObject option
likeβ¦ that's the whole vibe. three commands. iconic. π
π DESCRIPTION π
so the pie box style labeler object is literally a slice label placer for a pie object, and you hand it over to the pie constructor through its -labeler option (go peek at the pie class manual, iykyk).
the labels get arranged in 2 columns below the pie graphics. fr fr, two. each label text sits to the right of a rectangle, and the background color of that rectangle matches its corresponding slice β matching fit, we love to see it π«Ά. the slice share value goes to the right of the label text, separated by a semicolon. and plot twist: each label is actually a canvasLabel object (check the canvasLabel class manual for more, bestie).
no need to delete apieBoxLabelerobject β thepieclass handles that automatically. she's taken care of. periodt. π
π¦ the three commands, explained
stooop::new pieBoxLabeler canvas ?options?β creates apieBoxLabelerobject in the Tk canvas you specified. it returns thepieBoxLabelerobject identifier (which this whole doc callspieBoxLabelerObject). β¨switched::configure pieBoxLabelerObject ?options?β configures apieBoxLabelerobject. or, if you pass no options at all, it returns every option with its current value. mood. πΈswitched::cget pieBoxLabelerObject optionβ returns one option value for thepieBoxLabelerobject you specified. just the one. π
π OPTIONS π
-fontvalue β sets a font for the slice labels. if you don't specify one, the default font is system dependent. π-justifyvalue β how to justify labels within their own column. must be one ofleft,centerorright. defaults toleft. for example, if justification isright, all column labels' right edges are aligned. slay. π-offsetvalue β the distance between the pie graphics and the closest slice label. this value can be given in any of the forms described in the canvas COORDINATES manual section. π
π·οΈ TAGS π·οΈ
the labeler has one specific tag of its own (see the canvas manual page ITEM IDS AND TAGS section for the deets):
pieBoxLabeler(pieBoxLabelerObject)
π BUGS, IDEAS, FEEDBACK π
ngl, this document β and the package it describes β will undoubtedly contain bugs and other problems. like, obviously. so please report them in the category tkpiechart of the Tklib Trackers: http://core.tcl.tk/tklib/reportlist. also pls report any ideas for enhancements you may have for either the package and/or the documentation. we want them. π«Ά
π SEE ALSO π
canvasLabel, pie, piePeripheralLabeler
π₯ KEYWORDS π₯
canvas, labeler, pie, slice
π COPYRIGHT π
Copyright (c) 1995-2004 Jean-Luc Fontaine <jfontain@free.fr>
and that's the whole page, bestie β brought to you by tklib 6.6 β¨ go forth and label ur slices, u absolute icon ππ πΈ
π¦ where this page comes from
- debian bookworm: tklib 0.8~20230222-1
- debian trixie: tklib 0.9-1
- ubuntu jammy: tklib 0.7+20210111-1
- ubuntu noble: tklib 0.8~20230222-1
- ubuntu questing: tklib 0.9-1
- ubuntu resolute: tklib 0.9-1build1
- ubuntu stonking: tklib 0.9-1build1
- Copyright (c) 1995-2004 Jean-Luc Fontaine <jfontain@free\&.fr>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms