JavaScript::D3 — Architecture

Architecture

JavaScript::D3 retains the established js-d3-* public API. Existing feature modules remain the owners of their visualization families; this avoids adding namespace layers that merely forward one routine to another.

JavaScript::D3                         public, compatibility-preserving API
├── Config                             D3 frontend loader configuration
├── Render                             output wrapper and rendering boundary
├── Charts                            charts and their data normalization
├── Plots / Plots3D                   2D and 3D plotting
├── Graph / Chess / Images / Gauge    specialized visualizations
├── Random                            geometry/data generators
└── CodeSnippets / CodeSnippets3D     current shared JavaScript catalog

Do not create a module merely to rename a routine. Extract a module only when it owns implementation, state, or a reusable rendering contract. The current feature modules are the appropriate boundaries until a cohesive portion of their implementation is physically moved.

Rendering has already crossed the new boundary: RenderSpec captures a visualization body and output settings, and Render owns Jupyter, complete HTML, HTML fragment, and raw-JavaScript wrappers. CodeSnippets::WrapIt delegates to it for backward compatibility.

When adding a visualization, place input normalization and option validation in its feature module and call Render::render once at the output edge.

JavaScript::D3 v0.3.8

Generation of JavaScript's D3 code for plots and charts.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

JSON::Fast:ver<0.19+>Hash::Merge:ver<2.0.0+>:api<2+>Statistics::Distributions:ver<0.1.+>Data::TypeSystem:ver<0.1.4+>FEN::Grammar:ver<0.0.6+>

Test Dependencies

Provides

  • JavaScript::D3
  • JavaScript::D3::Charts
  • JavaScript::D3::Chess
  • JavaScript::D3::CodeSnippets
  • JavaScript::D3::CodeSnippets3D
  • JavaScript::D3::Combination
  • JavaScript::D3::Config
  • JavaScript::D3::Gauge
  • JavaScript::D3::Graph
  • JavaScript::D3::Images
  • JavaScript::D3::Plots
  • JavaScript::D3::Plots3D
  • JavaScript::D3::Predicates
  • JavaScript::D3::Random
  • JavaScript::D3::Render
  • JavaScript::D3::Utilities

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.