pie chart مخطط قطاعي

📅 April 02, 2024   |   👁️ Views: 108


📘 About this Course

📄 What you'll find on this page:

• The Course PDF is embedded below — you can read and scroll through it directly without leaving the page.

• A direct download button is available at the bottom for offline access.

• You'll also discover related exams, courses, and exercises tailored to the same subject and level.

• The complete LaTeX source code is included below for learning or customization.

📄 ماذا ستجد في هذه الصفحة:

• ملف الدرس بصيغة PDF معروض أدناه — يمكنك تصفحه والاطلاع عليه مباشرة دون الحاجة لتحميله.

• يتوفر زر تحميل مباشر في أسفل الصفحة للاحتفاظ بالملف على جهازك.

• ستجد أيضًا مجموعة من الامتحانات والدروس والتمارين المرتبطة بنفس الدرس لتعزيز فهمك.

• تم تضمين الكود الكامل بلغة LaTeX أسفل الصفحة لمن يرغب في التعديل عليه أو التعلم منه واستخدامه.

latex Course for figures PDF preview

\documentclass[fontsize=16pt]{scrbook}
\usepackage[left=1.00cm, right=1.00cm, top=1.00cm, bottom=1.00cm]{geometry}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}

\usepackage{fontspec}
\usepackage{polyglossia}

\setmainlanguage{english}
\setotherlanguage{arabic}


\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\makeatletter
\renewcommand{\@makecaption}[2]{%
    \begin{center}
        \RTL{
        \textbf{\textarabic{وثيقة}~\arabic{figure}}~: #2%
    }
    \end{center}
}
\makeatother

\begin{document}

    \begin{figure}
        \centering
        \begin{tikzpicture}
            % Define data and colors
            \def\data{
                10/18/{\textarabic{فلاحة}}/red!20,
                20/36/{\textarabic{صناعة}}/green!45,
                30/54/{\textarabic{خدمات}}/green!20,
                40/72/{\textarabic{ضرائب}}/blue!30
            }
            \def\prevangle{0}
            \def\nextangle{0}
            \foreach \percent/\angle/\name/\col in \data {
                \global\edef\nextangle{\angle+\prevangle}
                \draw[fill=\col] (\prevangle:2) arc (\prevangle:\nextangle:2) -- (0,0) ;
                \global\edef\prevangle{\angle+\prevangle}
                \node[font=\tiny] at ({0.5*\nextangle}:1.5) {\percent\%};
            }
            \draw (-2,0) -- (2,0);
            %legend
            \coordinate (legendpos) at (3.5,0); % Define coordinate
            \foreach \percent/\angle/\name/\col in \data {
                \draw[fill=\col] (legendpos) rectangle ++(0.25,0.25);
                \node[right] at ($(legendpos) + (0.2,0.12)$) {\begin{Arabic}\name\end{Arabic}}; 
                \coordinate (legendpos) at ($(legendpos) + (0,0.5)$); 
            }
        \end{tikzpicture}
        \caption{\textarabic{الناتج الداخلي الخام لسنة 2024}}
    \end{figure}

\end{document}

\documentclass[fontsize=16pt]{scrbook}
\usepackage[left=1.00cm, right=1.00cm, top=1.00cm, bottom=1.00cm]{geometry}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}

\usepackage{fontspec}
\usepackage{polyglossia}

\setmainlanguage{english}
\setotherlanguage{arabic}


\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\makeatletter
\renewcommand{\@makecaption}[2]{%
    \begin{center}
        \RTL{
        \textbf{\textarabic{وثيقة}~\arabic{figure}}~: #2%
    }
    \end{center}
}
\makeatother

\begin{document}

    \begin{figure}
        \centering
        \begin{tikzpicture}
            % Define data and colors
            \def\data{
                10/18/{\textarabic{فلاحة}}/red!20,
                20/36/{\textarabic{صناعة}}/green!45,
                30/54/{\textarabic{خدمات}}/green!20,
                40/72/{\textarabic{ضرائب}}/blue!30
            }
            \def\prevangle{0}
            \def\nextangle{0}
            \foreach \percent/\angle/\name/\col in \data {
                \global\edef\nextangle{\angle+\prevangle}
                \draw[fill=\col] (\prevangle:2) arc (\prevangle:\nextangle:2) -- (0,0) ;
                \global\edef\prevangle{\angle+\prevangle}
                \node[font=\tiny] at ({0.5*\nextangle}:1.5) {\percent\%};
            }
            \draw (-2,0) -- (2,0);
            %legend
            \coordinate (legendpos) at (3.5,0); % Define coordinate
            \foreach \percent/\angle/\name/\col in \data {
                \draw[fill=\col] (legendpos) rectangle ++(0.25,0.25);
                \node[right] at ($(legendpos) + (0.2,0.12)$) {\begin{Arabic}\name\end{Arabic}};
                \coordinate (legendpos) at ($(legendpos) + (0,0.5)$);
            }
        \end{tikzpicture}
        \caption{\textarabic{الناتج الداخلي الخام لسنة 2024}}
    \end{figure}

\end{document}


Explore more latex content for figures:

Related Courses, Exams, and Exercises


Frequently Asked Questions

What will I learn by the end of this course?
You will gain a solid understanding of Figures Statisitiques and be able to apply it in exams and real‑world problems.

What topics are covered in this course?
The course "Figures Statisitiques" covers key concepts of latex for figures. Designed to help students master the curriculum.

Is this course suitable for beginners?
Yes, the material is structured to be accessible while providing depth for advanced learners.

Are there exercises or practice problems?
Exercises are included to help you practice.

Does this course include solutions?
Solutions are available separately.


Download latex Course PDF (figures)

📥 Download pie chart مخطط قطاعي (PDF)