Skip to content

Is that possible to support legend's position control? #19

@Explorer-cc

Description

@Explorer-cc

In the following links, the legend's position modified is not user-friendly:

And I found that:

\def\pgfpie@legend#1{%
\coordinate[xshift=0.8cm,
yshift={(\the\pgfpie@sliceLength*0.5+1)*0.5cm}] (pgfpie@legendpos) at
(current bounding box.east);
\scope[node distance=0.5cm]
\foreach \pgfpie@p/\pgfpie@t [count=\pgfpie@i from 0] in {#1}
{
\pgfpie@findColor{\pgfpie@i}
\node[draw, fill={\pgfpie@thecolor}, \pgfpie@style, below of={pgfpie@legendpos}, label={0:{\pgfpie@t\pgfpie@ifnumberinlegend{~\pgfpie@legendnumbertext{\pgfpie@p}}{}}}] (pgfpie@legendpos) {};
}
\endscope
}

The anchor of legend is pinned down above.

Is that possible to support flexible legend's position control by just options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions