Colours - warwickfoster/qurantools GitHub Wiki

File: app/charts/chart_formulaic_density.php

Purpose

The chart presents the formulaic density of each sura in the Quran, based on a specified formula type and provenance. Formulaic density is the number of formulas per 100 words in a sura.

Key Features

  • Formula Type Users can choose between root, lemma, and any formula type.
  • Provenance Users can filter the results by Mecca or Medina suras.
  • Sorting Results can be sorted by sura number or density.
  • Legend The chart includes a legend to indicate the meaning of the colors used for Mecca and Medina suras.

Data Visualization

  • The chart is a bar chart, with each sura represented by a bar.
  • The height of each bar corresponds to the formulaic density of the sura.
  • The bars are colored differently for Mecca and Medina suras.

Usage

  • To view the formulaic density of all suras, select "All Suras" in the provenance filter.
  • To filter by Mecca or Medina suras, select the corresponding option in the provenance filter.
  • To sort the results by density, click on the "Density" option in the sorting dropdown menu.

Additional Notes

  • The chart is interactive, allowing users to hover over each bar to display the sura number, name, and density.
  • The chart can be exported as an image or PDF file.

Benefits

  • Provides insights into the linguistic complexity of the Quran.
  • Helps identify suras with high or low formulaic density.
  • Can be used for comparative analysis between suras or between Mecca and Medina suras.