Pie Chart

Pie Chart
Loading the math board and drawing, please wait…
2020-07-30 19:21
This example demonstrates how to construct a pie chart using GeoGebra commands such as Intersect, Point, Circle, Rotate, etc. A pie chart is a statistical chart used to show the proportion of different categories. The core mathematical concepts involved include angles, circles, and statistics. Suitable for students at the junior high school level and above to learn data visualization and statistical analysis.

GeoGebra Commands & Parameters

  1. Intersect(xAxis, yAxis) → A
  2. Point(xAxis) → B
  3. Circle(A, B) → h
  4. Rotate(B, (a * g°), A) → B'
  5. Angle(B, A, B') → α
  6. Rotate(B', (b * g°), A) → B''
  7. Angle(B', A, B'') → β
  8. Rotate(B'', (c * g°), A) → B'''
  9. Angle(B'', A, B''') → γ
  10. Rotate(B''', (d * g°), A) → C
  11. Angle(B''', A, C) → δ
  12. CircleSector(A, B, B') → k
  13. CircleSector(A, C, B) → p
  14. CircleSector(A, B', B'') → q
  15. CircleSector(A, B'', B''') → r
  16. CircleSector(A, B''', C) → s
  17. TableText({{A1, A2, A3, A4, A5, A6}, {C1, C2, C3, C4, C5, C6}}, "|_cccccc") → text1
  18. TableText({{A7, B7}, {A8, B8}, {A9, B9}, {A10, B10}, {A11, B11}, {A12, B12}}, "|_cc") → text7
  19. Textfield(w) → InputBox1
  20. TableText({{If[w > 4, ("" * B1), ""], If[w > 5, ("" * C1), ""], If[w > 6, ("" * D1), ""]}, {If[w > 7, ("" * B2), ""], If[w > 8, ("" * C2), ""], If[w > 9, ("" * D2), ""]}, {If[w > 10, ("" * B3), ""], If[w > 11, ("" * C3), ""], If[w > 12, ("" * D3), ""]}, {If[w > 13, ("" * B4), ""], If[w > 14, ("" * C4), ""], If[w > 15, ("" * D4), ""]}, {If[w > 16, ("" * B5), ""], If[w > 17, ("" * C5), ""], If[w > 18, ("" * D5), ""]}, {If[w > 19, ("" * B6), ""], If[w > 20, ("" * C6), ""], If[w > 21, ("" * D6), ""]}}, "|_ccc") → text2
  21. Textfield(a) → InputBox2
  22. Textfield(b) → InputBox3
  23. Textfield(c) → InputBox4
  24. Textfield(d) → InputBox5
  25. Textfield(e) → InputBox6