Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Home
                    • CalcMe
                    • Commands
                    • Statistics
                    • Statistics

                    Pie chart

                    Reading time: 1min

                    Pie charts are another common tool for categorical data when we want to show the proportion that each category occupies out of the whole.

                    Syntax

                    pie_chart(Statistics_data)
                    

                    Description

                    It draws a pie chart for a data sample.

                    Options

                    Option Description Format Default value
                    clockwise When set to true, input data values are plotted in clockwise order. If false, values are plotted counterclockwise. Boolean. false
                    color Sets the color for the outline of pie slices. RGB list of values {r,g,b} where r, g, and b are integers between 0-255. Alternatively, one of the following strings: black, white, red, green, blue, cyan, magenta, yellow, brown, orange, pink, grey, dark_grey, light_grey, or one of the HTML colors, by name (e.g. html_indigo rather than 4b0082). {66,66,66}
                    fill_color Sets the color for the interior of each pie slice. Each new color is plotted in the order that it appears, and if fewer colors than data values are provided, the list wraps around. A list of colors {color1,color2,...} where each color follows the format described in the color option. auto (a predetermined color scheme)
                    labels Provides labels for each pie slice, displayed next to the slices. These replace the default labels. A list of Strings. auto (each slice is labelled with its value)
                    pie_radius Sets the radius of the whole pie chart. Positive Float 1
                    starting_angle An angle in radians that indicates at which angle to start plotting the first pie slice. Degrees can be used if they are followed by the degree symbol. Float. auto (zero)
                    title Title of the pie chart, to be shown above it. String. "" (empty string)

                    Was this article helpful?

                    Yes
                    No
                    Give feedback about this article

                    Related Articles

                    • Statistics
                    • Histogram
                    • Bernoulli variable
                    • Kurtosis

                    Pie chart

                    Syntax Description Options

                    Making people’s STEM work more meaningful

                    MathType

                    • MathType for Office Tools
                    • MathType for Mac
                    • MathType for Microsoft 365
                    • MathType for Google Workspace
                    • MathType for LMS
                    • MathType for XML Editors
                    • Arabic notation
                    • Our products accessibility
                    • MathType is online

                    WirisQuizzes

                    Learning Lemur

                    Solutions for Education

                    • Blackboard Learn
                    • Brightspace by D2L
                    • Canvas
                    • Google Classroom
                    • Moodle
                    • Schoology

                    Solutions for Publishing Houses

                    Solutions for Technical Writers

                    Solutions for Chemistry

                    Integrations

                    • HTML Editors
                    • MathType in WordPress

                    Pricing

                    Company

                    Careers

                    Blog

                    Contact Us

                    Buy Now

                    Plugin Downloads

                    © Wiris 2025

                    • Cookie Preferences
                    • Cookie Policy
                    • Terms of Use
                    • Privacy Policy / GDPR
                    • Student Data Privacy
                    • Compliance
                    • Powered by Helpjuice
                    Expand