chart_rhyme_number_of_patterns - warwickfoster/qurantools GitHub Wiki

File: app/charts/chart_rhyme_number_of_patterns.php

Purpose

This chart displays the number of different verse ending patterns (rhymes) in each sura of the Quran.

Key Features

  • Sorts suras by the number of different rhyme patterns in descending order.
  • Differentiates between Meccan and Medinan suras.
  • Shows a link to a detailed analysis of rhyme patterns for each sura.

Technical Details

  • Uses the FusionCharts JavaScript library for visualization.
  • Data is retrieved from the SURA-DATA and QURAN-VERSE-ENDINGS tables in the database.
  • The chart type is a 2D column chart.
  • The chart title and axis labels are set dynamically based on the configuration.

Usage

  • The chart can be accessed at chart_rhyme_number_of_patterns.php.
  • Users can sort the suras by different criteria using the dropdown menu.
  • Clicking on a bar will take users to a detailed analysis of rhyme patterns for that sura.

Additional Features

  • A mini mode is available for simplified viewing.
  • A legend is displayed to indicate the color coding for Meccan and Medinan suras.

Benefits

  • Provides a visual representation of the number of rhyme patterns in the Quran.
  • Facilitates understanding the diversity of rhyme patterns across different suras.
  • Enables users to explore further the analysis of rhyme patterns in individual suras.