Chart Verbs - warwickfoster/qurantools GitHub Wiki

File: app/charts/chart_average_word_length.php

Purpose

This chart displays the average word length for each sura in the Quran.

Data

  • The data is obtained from the QURAN-DATA table, which contains the rendered Arabic text of each sura.
  • The average word length is calculated for each sura using the CHAR_LENGTH() function.

Chart Type

  • Column chart

Chart Features

  • X-axis Sura
  • Y-axis Average Word Length
  • Color
    • Meccan Suras Red
    • Medinan Suras Green
  • Chart Controls
    • Provenance filter (all suras, Meccan suras, Medinan suras)
    • Sort by (sura, average word length)

Navigation

  • The chart can be expanded to a larger view by clicking on the expand icon in the top right corner.
  • The navigation controls allow users to filter the data by provenance and sort it by different criteria.

Provenance Legend

  • The provenance legend displays the color coding used to indicate the provenance of each sura.

Additional Features

  • Print control
  • Footer

Usage

This chart can be used to understand the linguistic features of the Quran, such as the average word length used by the Prophet Muhammad (peace be upon him).

Benefits

  • Provides insights into the vocabulary and grammar of the Quran.
  • Can be used to compare the linguistic styles of different suras.
  • Can be used as a teaching tool to help students understand the language of the Quran.