Chart Of Verses With Intertextual Connections - warwickfoster/qurantools GitHub Wiki

File: app/charts/chart_formulae_used_per_sura.php

Purpose

The provided HTML code snippet is a template for an interactive web page that displays a chart showing the number of formulae used in each sura of the Quran.

Features

  • Charting library Uses the Chart.js JavaScript library to create the chart.
  • Data filtering Allows users to filter the data by formula type, provenance (Meccan or Medinan), and whether to count occurrences per 100 words.
  • Sorting Enables users to sort the results by sura number or number of formulae.
  • Print and export options Provides options to print or export the chart.

Components

  • Header Includes page title, navigation links, and chart options.
  • Chart container Displays the generated chart.
  • Footer Displays copyright information and links.

Key Points

  • The code uses PHP variables to store filter and sorting parameters.
  • It includes conditional statements to generate the appropriate chart based on the selected filter options.
  • The provenance_footer.php file likely includes additional information about the provenance data.
  • The print_control.php file provides options for printing the chart.

Additional Notes

  • The code assumes the presence of JavaScript files and CSS styles for the chart and layout.
  • The specific values and labels used in the chart may vary depending on the data and filter settings.
  • The code may require further modifications to function properly with actual data.