How ksobon/mandrill works
Mandrill is a Dynamo data-visualization plug-in: users prepare data and styles, create chart or annotation objects, assemble them into an HTML report, and display or print that report. The graph preserves chart families, CSV inputs, report/window handling, and PDF export. Several component implementations were not sampled, so their internal connections are omitted unless supported by an excerpt, the source index, or the README.
Main entry points: Mandrill_d3 Chart Models · Charts.cs HTML Compiler · Mandrill_LaunchWindow.cs Grasshopper Window · MandrillWindow.xaml.cs Report Window
Components 18
Dynamo Inputs
- CSV Data Inputs
Mandrill_Grasshopper/Components
Visual Components
- Chart Components
Mandrill_Grasshopper/Components - Scatter Plot Node
Mandrill/Nodes/Charts/ScatterPlots.cs - Text Note Node
Mandrill/Nodes/Html/Text.cs - Legend Node
Mandrill/Nodes/Legend/Legend.cs - Chart Utilities Nodes
Mandrill/Nodes/Charts/MiscNodes.cs
HTML Rendering
- Chart Models
Mandrill_d3 - Scatter Plot Model
Mandrill_d3/ScatterPlots/d3ScatterPlot.cs - Text Note Model
Mandrill_d3/TextNotes/TextNotes.cs - HTML Compiler
Mandrill_d3/Charts.cs - Render Utilities
Mandrill_d3/ChartsUtilities.cs
Report Delivery
- Report Creator
Mandrill_Grasshopper/Components/Report/Mandrill_CreateReport.cs - Grasshopper Window
Mandrill_Grasshopper/Components/Report/Mandrill_LaunchWindow.cs - Report Window
Mandrill_Grasshopper/Controls/MandrillWindow.xaml.cs - PDF Components
Mandrill_Grasshopper/Components/PDF - PDF Export
Mandrill/Nodes/Reports/Pdf.cs - Dynamo Report Window
Mandrill_UI/NodeModels/MandrillWindowNodeModel.cs
Other components
- Dynamo User
Connections 10
- Dynamo User → Chart Components: build charts
- Dynamo User → CSV Data Inputs: provide data
- Scatter Plot Node → Scatter Plot Model: creates model
Mandrill/Nodes/Charts/ScatterPlots.cs - Text Note Node → Text Note Model: creates note
Mandrill/Nodes/Html/Text.cs - Chart Models → HTML Compiler: compile report
Mandrill_d3/Charts.cs - HTML Compiler → Render Utilities: uses templates
Mandrill_d3/Charts.cs - Report Creator → Grasshopper Window: provide report
- Grasshopper Window → Report Window: launches window
Mandrill_Grasshopper/Components/Report/Mandrill_LaunchWindow.cs - Report Window → PDF Export: converts HTML
Mandrill_Grasshopper/Controls/MandrillWindow.xaml.cs - Dynamo Report Window → Chart Models: reads report
Mandrill_UI/NodeModels/MandrillWindowNodeModel.cs