Skip to content

Add documentation examples for ScatterPlot, MultipleColumnChart and StackedBarChart#480

Merged
palewire merged 1 commit intochekos:mainfrom
stiles:add-chart-documentation-examples
Oct 28, 2025
Merged

Add documentation examples for ScatterPlot, MultipleColumnChart and StackedBarChart#480
palewire merged 1 commit intochekos:mainfrom
stiles:add-chart-documentation-examples

Conversation

@stiles
Copy link
Copy Markdown
Contributor

@stiles stiles commented Oct 23, 2025

Summary

Adds documentation examples for three chart types as requested in #458.

Changes

  • ScatterPlot (docs/user-guide/charts/scatter-plots.md): Added life expectancy vs GDP example from Datawrapper docs, featuring:

    • Logarithmic x-axis
    • Dynamic bubble sizing by population
    • Text annotations for key years and countries
    • Custom tooltip with formatted numbers (thousands separator)
  • MultipleColumnChart (docs/user-guide/charts/multiple-column-charts.md): Added population growth example, featuring:

    • 4-column grid layout with custom panel titles
    • Text and range annotations
    • Color highlighting for specific years
  • StackedBarChart (docs/user-guide/charts/stacked-bar-charts.md): Added media trust example, featuring:

    • Diverging stacked bars
    • Custom color mapping
    • Percentage formatting

Testing

Manually tested all three examples - they run without errors or warnings

Verification Charts

I created test charts on Datawrapper to verify the examples work correctly:

All examples follow the same pattern as existing chart documentation (AreaChart, LineChart, etc.) and use real sample data from the repository's test fixtures.

Related Issue

Closes #458

multiple-column-charts stacked-bar-charts scatter-plots

…StackedBarChart

- Add life expectancy vs GDP example for ScatterPlot
- Add population growth example for MultipleColumnChart
- Add media trust example for StackedBarChart
- All examples drawn from Datawrapper's official docs
- Includes embedded iframes and working Python code (tested locally)

Closes chekos#458
@palewire
Copy link
Copy Markdown
Collaborator

Thanks for this. I'm traveling right now but will look to merge it in the coming days.

@palewire palewire merged commit ee0b58d into chekos:main Oct 28, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add example configuration for all chart types

2 participants