Page 1 of 1

\documentclass{article}
\usepackage{pgf-pie}
\usepackage{xcolor}

\begin{document}

\begin{figure}[h]
    \centering
    \begin{tikzpicture}
        \pie[text=legend,
            color={blue!20, red!50, green!50, orange!50}]
            {40/A, 30/B, 20/C, 10/D}
    \end{tikzpicture}
    \caption{Example Pie Chart with Custom Colors}
    \label{fig:pie_chart_colors}
\end{figure}
\end{document}


Leave a comment if you like this content أترك تعليقا إن أعجبك المحتوى

Class: Figures
Views:  246




0 Comments, Latest

No comments yet. Be the first to Comment

Most viewed courses: