Skip to main content

Chart

Chart generates a pie or bar chart from labeled data points. It is a visualization content type: it is not interactive and carries no score, so the absence of a grade is not a failure.

AI-generated configuration

SettingDescriptionPossible valuesDefault
Chart typeThe kind of chart rendered.Pie / BarInferred from the prompt
Number of data pointsHow many labeled values the chart contains.Any requested amount (no documented cap: the requested amount is generated exactly)1 to 8 when no amount is requested
Value per data pointThe numeric value of each data point.Positive numbers only (the library does not accept zero or negative values)Generated

Generated content

Per data point, the AI produces:

  • A label (the category name).
  • A positive value.
  • A distinct color.

Pie slices correspond proportionally to the values; bar heights are proportional to the values.

Rules and behavior

  • All values must be positive: the library does not accept zero or negative data.
  • The content is visualization-only — not interactive and not scored — so it has no Moodle grade integration.
  • Data points have no documented cap: a high requested amount (e.g. 25 data points) is generated in full, without trimming, and the chart must render without errors.

Example prompts

Without syllabus

A pie chart with one slice per requested category and its percentage:

I need an H5P pie chart for the Home Economics course showing the typical distribution of household spending: housing, food, transport, health, and leisure, with their percentages.

A bar chart comparing one value per sector:

Prepare an H5P bar chart for the Economics course comparing exports by sector: agricultural, industrial, mining, and services, with a value for each one.

A bar chart with a high exact data count that must be generated in full:

Make me an H5P bar chart for the International Economics course with the gross product of twenty-five countries, from largest to smallest.

With syllabus

A pie chart of the distribution or proportions described in unit 2 of the uploaded syllabus:

I need an H5P pie chart showing the distribution or proportions described in unit 2 of the syllabus I uploaded, with one slice per category and their percentages.

A bar chart comparing the categories or magnitudes presented in topic 3 of the document:

Prepare an H5P bar chart comparing the categories or magnitudes presented in topic 3 of the document I uploaded, with a value for each one.

A twenty-five-category bar chart drawn from the whole document, ordered by value:

Make me an H5P bar chart with twenty-five categories taken from the whole document I uploaded, ordered from the highest value to the lowest.