D3.js in Action: Data visualization with JavaScript 2nd Edition Elijah Meeks download
D3.js in Action: Data visualization with JavaScript 2nd Edition Elijah Meeks download
https://textbookfull.com/product/d3-js-in-action-data-
visualization-with-javascript-2nd-edition-elijah-meeks/
https://textbookfull.com/product/d3-js-in-action-data-
visualization-with-javascript-second-edition-elijah-meeks/
https://textbookfull.com/product/data-visualization-
with-d3-js-1st-edition-teller-swizec/
https://textbookfull.com/product/learning-d3-js-data-
visualization-aendrew-rininsland/
https://textbookfull.com/product/fullstack-d3-and-data-
visualization-build-beautiful-data-visualizations-and-dashboards-
with-d3-amelia-wattenberger/
Data Visualization with D3 4 x Cookbook Nick Zhu
https://textbookfull.com/product/data-visualization-
with-d3-4-x-cookbook-nick-zhu/
https://textbookfull.com/product/interactive-data-visualization-
for-the-web-an-introduction-to-designing-with-d3-2nd-edition-
scott-murray/
https://textbookfull.com/product/source-code-analytics-with-
roslyn-and-javascript-data-visualization-mukherjee/
https://textbookfull.com/product/interactive-data-visualization-
for-the-web-an-introduction-to-designing-with-d3-1st-edition-
murray/
https://textbookfull.com/product/pro-d3-js-use-d3-js-to-create-
maintainable-modular-and-testable-charts-marcos-iglesias/
Elijah Meeks
SECOND EDITION
MANNING
Praise for the First Edition
One of the most comprehensive books about data visualization I have ever read.
—Andrea Mostosi
The Fool s.r.l.
This book is required reading for anyone looking to get using D3. A mandatory
introduction to a very complex and powerful library.
—Stephen Wakely
Thomson Reuters
Excellent guide which handholds the reader for fast-tracking D3.js expertise effectively.
—Prashanth Babu
NTT DATA
A remarkable exploration into the world of data viz possibilities with D3.
—Arun Noronha
Directworks
A must-have book.
—Arif Shaikh
Sony Pictures Entertainment
D3.js in Action
Second Edition
DATA VISUALIZATION WITH JAVASCRIPT
ELIJAH MEEKS
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: [email protected]
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.
ISBN 9781617294488
Printed in Canada
1 2 3 4 5 6 7 8 9 10 – TC – 22 21 20 19 18 17
contents
preface xi
acknowledgments xiii
about this book xiv
about the cover illustration xvii
1 An introduction to D3.js 3
1.1 What is D3.js? 4
1.2 How D3 works 4
Data visualization is more than charts 4 D3 is about selecting
■
v
1.6 Your first D3 app 39
Hello world with divs 40 Hello World with circles
■
41
A conversation with D3 42
1.7 Summary 44
Why learn D3? 45
2.2 Data-binding 60
Selections and binding 60 Accessing data with inline
■
5 Layouts 143
5.1 Histograms 144
Drawing a histogram 144 ■
Interactivity 146 ■
Drawing
violin plots 147
5.2 Pie charts 149
Drawing the pie layout 150 ■
Creating a ring chart 151
Transitioning 152
5.3 Stack layout 154
5.4 Plugins to add new layouts 158
Sankey diagram 158 ■
Word clouds 165
5.5 Summary 170
5.6 D3.js in the real world 171
Adam Pearce ■
Graphics Editor, New York Times 171
index 360
preface
When I wrote the first edition of D3.js in Action, I did it mostly as a way to learn the
library. I knew D3 well enough to do cool things with it, but like many people, I didn’t
know the breadth and depth of it, nor did I really understand the structure of layouts
and generators and its other aspects. I agreed to write the book as a sort of graduate
school in D3, to become an expert in the library, and to become better at data visual-
ization more generally. I came at the second edition from a different perspective. I
knew D3 as well as most anyone could, and the changes from V3 to V4, while signifi-
cant, were straightforward enough to explain. But in the last two and a half years, I’ve
been a professional software developer, and I better understand where D3 sits in an
ecosystem of applications and libraries. This time I didn’t set out to write a book to
learn D3; this time I set out to write a book to teach people how to use D3, not only on
its own but in reference to other libraries and to JavaScript.
One of the things I want to teach now is how to create impactful data visualization
using D3 rather than pushing your limits on how to generate the most complex charts.
That doesn’t mean I don’t get into the ambitious data visualization methods that D3
allows—I still explore how to create network data visualization and geospatial maps
with D3—but it does mean the code and the text better reflect the needs of people
who want to learn how to make effective data visualization more than they want to
learn how to use D3.
That’s why the second edition has sections on D3.js in the real world written by
experts who’ve used D3 for analysis, storytelling, and journalism. That’s also why I
pulled out the extraneous bits from the first edition that showed you how to use D3
like JQuery, and replaced those with more in-depth analysis of how to create hierar-
chical data visualization and how to integrate D3 with popular frameworks.
xi
xii PREFACE
The code is much cleaner in the second edition, which is as much a result of my
own experience as it is a result of the advances in JavaScript in the last couple years.
Because I’ve grown more professional in my practice doesn’t mean I’ve grown less
ambitious in how I use D3 and how I think people should use D3. This is still a long
book, and it has to be because it’s an exhaustive look at the ins and outs of an import-
ant library in an exciting and fast-growing field.
acknowledgments
I’d like to thank my wife, Hajra, who always inspires me.
I’d also like to thank Manning Publications for a new opportunity to approach this
topic. Everyone says you don’t make much money off technical books, but the success
of the first edition of D3.js in Action was instrumental in advancing my career. Getting a
chance to revisit my old code and my old text and update it for the new version of the
library and the changes in the industry has been a boon. In the process, I was lucky
enough to work with the same editor, Susanna Kline, who has been as sharp and
insightful as she was before, and any success of this edition is in large part due to her.
I’d also like to thank the rest of the team at Manning who made this process as smooth
as it could possibly be.
The following reviewers provided feedback on the manuscript at various stages of
its development, and I thank them for their time and effort: Jonathan Rioux, Claudio
Rodriguez, Felipe Vildoso-Castillo, Rohit Sharma, Scott McKissock, Iain Shigeoka,
George Gaines, Michael Haller, Giancarlo Massari, Prashanth Babu, Piotr Kopszak,
and Nat Luengnaruemitchai. Thanks also to technical editor James Womack and
technical proofreader Jon Borgman for making me better at code and gently cor-
recting me over and over again.
Last, I’d like to thank Netflix, for its great culture, for the coworkers who have
pushed me and made me better at the practical and professional aspects of software
development, and specifically for letting me take off for a month to rewrite this book.
xiii
about this book
People come to data visualization, and D3 particularly, from three different areas. The
first is traditional JavaScript development, where they assume D3 is a charting library
or, less commonly, a mapping library. The second is more traditional software devel-
opment, such as Java, where D3 is part of the transition into frontend or node develop-
ment. The last area is a trajectory that involves statistical analysis using R, Python, or
desktop apps.
For all these folks, D3 represents a transition into two major new areas: web develop-
ment and data visualization. I touch on aspects of both that may give readers more
grounding in what I expect to be new and strange fields. Someone who’s intimately
familiar with JavaScript may find that many of these subjects are already well understood,
and others who know data visualization may well feel the same way about several of the
general principles, such as graphical primitives.
Although I do provide an introduction to D3, the focus of this book is on a more
exhaustive explanation of key principles of the library. Whether you’re getting started
with D3 or looking to develop more advanced skills, this book provides you with the tools
you need to create whatever data visualization you can think of.
Roadmap
This book is split into three parts. The first three chapters focus on the fundamen-
tals of D3 and data visualization generally. You’ll see data-binding, loading data, and
creating graphical elements from data in a variety of different ways. It also deals
with scales, color, and other important aspects of data visualization. Some of the
core technologies used by D3, such as JavaScript, CSS, and SVG, are explained through-
out these chapters.
xiv
ABOUT THIS BOOK xv
The next four chapters use D3 in the ways we typically think of. Chapter 4 teaches
you how to create simple graphics from data, such as line charts, axes, and boxplots.
Chapter 5 gives an in-depth exploration of various traditional data visualization lay-
outs such as pie charts, violin plots, and histograms as well as more exotic charts such
as Sankey diagrams and word clouds. Chapter 6 is devoted to hierarchical data visual-
izations such as treemaps and dendrograms, suitable for nested data such as organiza-
tional charts or economic sectors of the stock market. Chapter 7 focuses on network
data visualization, which might seem exotic, but is being used more and more in a
variety of domains. Chapter 8 dives into the rich mapping capabilities in D3, and
includes using TopoJSON to do interesting geodata manipulation in the browser.
The last three chapters cover topics that can be considered deep dives into D3.
Chapter 9 focuses on integrating D3 into another framework, in this case the popular
React library. Chapter 10 teaches you about creating your own D3 layouts and compo-
nents. Chapter 11 is all about optimizing data visualization for large datasets. Even if
you don’t think you’ll ever use D3 in these ways, each of these chapters still touches on
key aspects of using D3.
Regardless of your level of experience with D3, I recommend you spend time with
chapter 10, which deals with the structure of layouts and components while showing
you how to build your own. Beginning to build modular, reusable components and
layouts will allow you to create not only effective data visualization, but also an effec-
tive career in visualizing data.
Code conventions
Initial code examples in chapters are complete, with later code examples that extend
an initial example only showing the code that has changed. It’s best to use the source
code and online examples alongside the text. The line lengths of some of the exam-
ples exceed the page width, and in cases like these, the ➥ marker is used to indicate
that a line has been wrapped for formatting.
All source code in listings or in text is in a fixed-width font like this to separate it
from ordinary text. Code annotations accompany many of the listings, highlighting
important concepts.
Software requirements
D3.js requires a browser to run, and you should have a local web server installed on
your computer to host your code. The environment I develop in is macOS, so several
of the screenshots or commands may not apply in a Windows environment.
Book forum
Purchase of D3.js in Action, Second Edition includes free access to a private web forum
run by Manning Publications where you can make comments about the book, ask
technical questions, and receive help from the author and from other users. To access
the forum, go to https://forums.manning.com/forums/d3js-in-action-second-edition.
You can also learn more about Manning’s forums and the rules of conduct at
https://forums.manning.com/forums/about.
Manning’s commitment to our readers is to provide a venue where a meaningful
dialogue between individual readers and between readers and the author can take
place. It’s not a commitment to any specific amount of participation on the part of the
author, whose contribution to the forum remains voluntary (and unpaid). We suggest
you try asking the author some challenging questions lest his interest stray! The forum
and the archives of previous discussions will be accessible from the publisher’s website
as long as the book is in print.
about the cover illustration
The figure on the cover of D3.js in Action, Second Edition is captioned “Habit of a Moor-
ish Pilgrim Returning from Mecca in 1586.” The illustration is taken from Thomas Jef-
ferys’ A Collection of the Dresses of Different Nations, Ancient and Modern (four volumes),
London, published between 1757 and 1772. The title page states that these are hand-
colored copperplate engravings, heightened with gum arabic. Thomas Jefferys (1719–
1771) was called “Geographer to King George III.” He was an English cartographer
who was the leading map supplier of his day. He engraved and printed maps for gov-
ernment and other official bodies and produced a wide range of commercial maps
and atlases, especially of North America. His work as a mapmaker sparked an interest
in local dress customs of the lands he surveyed and mapped, an interest that’s bril-
liantly displayed in this four-volume collection.
Fascination with faraway lands and travel for pleasure were relatively new phenom-
ena in the late eighteenth century, and collections such as this one were popular,
introducing both the tourist as well as the armchair traveler to the inhabitants of
other countries. The diversity of the drawings in Jefferys’ volumes speaks vividly of the
uniqueness and individuality of the world’s nations some 200 years ago. Dress codes
have changed since then, and the diversity by region and country, so rich at the time,
has faded away. It’s now often hard to tell the inhabitant of one continent from
another. Perhaps, trying to view it optimistically, we’ve traded a cultural and visual
diversity for a more varied personal life, or a more varied and interesting intellectual
and technical life.
At a time when it’s hard to tell one computer book from another, Manning cele-
brates the inventiveness and initiative of the computer business with book covers
based on the rich diversity of regional life of two centuries ago, brought back to life by
Jeffreys’ pictures.
xvii
Part 1
D3.js fundamentals
Object Model (DOM)
The principles of Scalable Vector Graphics (SVG)
1
Node and ES2015 functionality
Data-binding and selections with D3
Different data types and their data visualization
methods
D3 is behind nearly all the most innovative and exciting information visualization
on the web today. D3 stands for data-driven documents. It’s a brand name, but also a
class of applications that have been offered on the web in one form or another for
years. In my career, I’ve made many things that could be considered data-driven
documents. These include everything from one-off dynamic maps or social net-
work diagrams to robust visual explorations of time and place. You’ll be using D3
whether you’re building data visualization prototypes for research or big data dash-
boards at the top tech companies.
3
4 CHAPTER 1 An introduction to D3.js
Charts
Interactivity basics
(chapter 2)
Interactivity
Zoom
(chapters 5 and 7)
Optimization
(chapter 11)
Figure 1.1 A map of how to approach data visualization with D3.js that highlights the approach in this
book. Start at the top with data and then follow the path depending on the type of data and the needs
you’re addressing.
creation of vector graphics for traditional charting, but also the creation of geospatial
and network visualizations, as well as rich animation and interactivity. This broad-
based approach to data visualization, where a map or a network graph or a table is
another kind of representation of data, is the core of the D3.js library’s appeal for
application development.
6 CHAPTER 1 An introduction to D3.js
Figure 1.6 D3 includes a library of common data visualization layouts, such as the dendrogram (explained in
chapter 6), that let you represent data, such as this word tree.
Another Random Scribd Document
with Unrelated Content
the two contraries; which is done by the will. Now, God, as we know,
causes all things through his understanding, for his understanding is
his being; and, therefore, his science, as united with his will, must
be the cause of all things."[184]
It might be here objected that if, for the reason just alleged,
archetypal ideas are not to be considered a distinct principle of
creation, then neither can omnipotence be considered as a distinct
principle; for as archetypal ideas do not principiate anything unless
through free volition, so, also, omnipotence principiates nothing but
in consequence of the same volition; and, therefore, if archetypal
ideas on this account are not a distinct principle of things, on the
same account omnipotence cannot be taken as a distinct principle.
To this we answer that the assumed parity has no legs to stand on.
That archetypal ideas are not a distinct principle of creation was
proved above, not simply by arguing that they cannot principiate
anything independently of free volition, but by showing that it is not
from them, but from the volition alone, that the real principiation of
things begins. Now, this proof applies to ideas, but not to
omnipotence. In fact, ideas, even in God, must be conceived as
having a certain priority with respect to volitions; for it is true, even
in God, that nothing is willed which is not foreknown—nihil est
volitum, quin præcognitum. If, therefore, God's ideas were a distinct
principle of creation, there would be something in God, prior to his
will, which would entail the existence of created beings; which is
impossible to admit so long as we maintain that God's will must
remain free in its extrinsic operations. We cannot, therefore, admit,
without absurdity, that the archetypal ideas constitute a distinct
principle of things. But, as to divine omnipotence, no such absurdity
is to be feared; for God's omnipotence has no priority with respect to
God's will; and thus the above argument cannot be used to prove
that omnipotence is not a distinct principle of creation.
We conclude that the extrinsic principles, to which the first origin of
contingent beings is to be traced, are not fewer, and not more, than
three. Our Catholic readers will be satisfied, we hope, that this
conclusion has been fairly established on what they know to be
secure foundations. Infidels, of course, will object; for they will think
that the whole of our discussion has been based on hypothetical
grounds. In fact, we have supposed that there are "primitive"
beings, that they are "contingent," that they need "a creator," and
that the creator must be an "infinite being," a god. If a Comtist or a
materialist happens to read the preceding pages, he will surely say
that we have built nothing but a cob-house. But we do not care
much what may be objected by such a class of frivolous and
unreasonable philosophers. We know that their favorite theories
have been a hundred times exploded, and their futile objections a
hundred times answered. When a foe is defeated, what is the use of
prolonging the contest? And when noonday light is dazzling the
world, what need is there of lighting candles? Let them, therefore,
only open their eyes, if they really want light. There is no scarcity of
good philosophical works, which, if consulted by them in a spirit of
candor, will afford them all the light that a man can reasonably
desire for the full attainment of truth.
Yet the solidity of the ground on which we have taken our stand may
be established in a very few words.
That there are contingent beings is quite certain; for nothing which
necessarily exists is liable to change or modification. But all that
surrounds us in this world is liable to change and modification;
therefore, nothing that surrounds us in this world necessarily exists.
Accordingly, all that we see in this world exists contingently.
That contingent beings are either primitive or made up of primitive
beings is, again, a well-known fact; for all being which is not
primitive is a compound, and can be traced to its first physical
components—that is, to the first elements of its composition. But the
first elements of composition cannot possibly be made up of other
elements, and accordingly must be primitive beings. Therefore,
primitive beings exist everywhere, at least (if nowhere else) in all the
compounds of which they are the first physical components.
That every primitive contingent being must have had its origin from
without is a plain truth; for that which has no origin from without
must have the adequate reason of its existence from within; and,
therefore, it carries in its essence the necessity of its existence. But
evidently contingent and changeable beings do not carry within their
essence the necessity of their existence; therefore, contingent
beings must have had their origin from without.
That every such being must have come out of nothing is not less
evident; for a primitive being cannot possibly come out of pre-
existent beings as its material principles. It must, therefore, be
produced either out of God's substance or out of nothing. But not
out of God's substance, for divine substance is not susceptible of
contingent forms; therefore, out of nothing—that is, by creation
properly.
Lastly, that the Creator is an eternal, infinite being can be easily
proved, independently of many other arguments, by the following
general theorem, to which modern philosophers are invited to pay
close attention. The theorem is this: All efficient cause is infinitely
more perfect, and of an infinitely better nature, than any of its
effects. If this proposition be true, it immediately follows that the
Creator of the universe is infinitely more perfect than the whole
universe, and has a nature infinitely better, nobler, and higher than
that of any contingent being, and therefore is a necessary and
independent being, the supreme being—God. Let us, then,
demonstrate our theorem.
It is a known and incontrovertible truth that every efficient cause
eminently contains in itself (that is, possesses in an eminent degree)
all the perfection which it can efficiently communicate to any number
of effects; and it can be proved, moreover, that the efficiency of a
cause is never exhausted, and not even weakened, by its exertions,
however long continued and indefinitely multiplied. The earth, after
having for centuries exerted its attractive power and caused the fall
of innumerable bodies, has preserved to this day the same power
whole and undiminished, and is still acting, with its primitive energy,
on any number of bodies, just as it did at the time of its creation.
Our soul is not exhausted or weakened by its operations; but, after
having made any number of judgments, reasonings, or any other
mental actions, still retains the whole energy and perfection of its
faculties without waste, effeteness, or decay. A molecule of oxygen,
after having for ages, either free in the air or confined in water or in
other compounds, produced such a number of effects as bewilders
and beats all power of imagination, retains yet its efficient causality
as entire and unimpaired as if it were of quite recent creation. These
facts show that the efficient cause suffers no loss whatever by the
exertion of its power, and therefore is fully equal to the production of
an endless multitude of effects.
Some may say that this conclusion cannot be universal, as we see
that natural forces are very often exhausted by exertion. We answer
that, when natural forces are said to be exhausted, the efficient
powers from which those forces result remain as intact and as active
as before. We say, indeed, that a man or a horse is exhausted by
fatigue; that our brain, after hours of mental work, needs rest to
recover its lost energy, and many other such things; but, in all such
cases, what we call exhaustion is not a diminution of efficient power
in the agents from the concurrence of which the natural forces
result, but either the actual disappearance (by respiration,
perspiration, etc.) of a number of those agents, or a perturbance of
the arrangements and conditions necessary for their united
conspiration towards the production of a determinate effect. Natural
force, in the sense of the objection, is a combination of agents and
of efficient powers, which produce their effect by many concurrent
actions giving a different resultant under different conditions; and as
any given effect proximately depends on the resultant of such
actions, the same powers, though unaltered in themselves, must,
under different conditions, give rise to different effects. Take a car
and four horses. If the horses act all in the same direction, the car
will move easily enough; but if two of the horses act in one
direction, and two in the other, the result will be very different. Yet
the powers applied to the car are in both cases the same. Again,
take an army of fifty thousand men facing the enemy. If the men are
well arranged so as to present a good line of battle, the action of the
army will be strong; but if the men are disorderly scattered, the
action will be weak, though the men are the same and their powers
and exertions undiminished. Now, all bodies and all complex causes
are in the same case; which is evident from the fact that with all of
them a favorable change of conditions, all other things remaining the
same, is always attended by an increase of the effect. Therefore, the
so-called exhaustion of natural forces is not a diminution of the
efficient powers of which they are the result, but a state of things in
which the same active powers are exerted in a different manner, or
have to perform a different work, according to the different
conditions to which they are actually subjected. We therefore repeat
that efficient causes suffer no loss whatever by the exertion of their
efficient powers, and that consequently they are fully equal to the
production of an infinite multitude of effects; and since every
efficient cause, as we have premised, must contain within itself, in
an eminent manner, the whole perfection which it can communicate
to its effects, we are forced to conclude that the nature of every
efficient cause infinitely transcends in perfection the nature of its
effects.
The theorem could be further confirmed by considering that all the
acts produced by efficient causes of the natural order, either spiritual
or material, are mere accidents, whereas the causes themselves are
substances; and it is manifest that the nature of substance infinitely
transcends the nature of accident.
It might be confirmed, again, by another very simple consideration.
The efficient cause does not communicate any portion of itself to its
effect.[185] In fact, efficient causation is production; and production
is not a transfusion, translocation, or emanation of a pre-existing
thing, but the origination of a new entity which had no previous
formal existence. It follows that the efficient cause, while producing
an effect, retains its entire entity, and therefore is never exhausted.
Thus a syllogism is not a portion of the mind that makes it; and the
making of it leaves intact the substance and the faculty from which it
proceeds. Thus, also, the actual momentum of a falling body is not a
portion of the terrestrial power by which it is produced; the power
remains whole and undiminished in the substance of the earth, as
already remarked, always ready to produce any number of changes,
and always unchanged in itself. This is the reason why every efficient
cause infinitely transcends the nature of its effects.
Our theorem is, then, demonstrated both by facts and by intrinsic
reasons. We are confident that all honest philosophers, no matter
how much their intellectual vision may have been distorted by false
doctrines, will see their way to the right conclusion, and confess the
absolute necessity of an independent, self-existent, infinite Creator,
from whom all beauty, goodness, and perfection proceed, and to
whom all creatures—philosophers not excepted—owe allegiance,
honor, and glory.
TO BE CONTINUED.
FOOTNOTES:
[181] Entered according to Act of Congress, in the year 1874, by Rev. I. T. Hecker,
in the Office of the Librarian of Congress, at Washington, D. C.
[182] This argument could be employed against all other forms of pantheism; but
we must abstain at present from the discussion of particular systems, as we
cannot deal fairly with them within the narrow compass of a single article.
As for self-existent matter, we need only say that nothing which can receive new
determinations is self-existent; and since matter receives new determinations,
therefore matter is not self-existent. Hence the conception of eternal and
uncreated matter cannot be styled a philosophical opinion, but only a dream of
unreflecting or uneducated minds.
[183] The Aristotelic meaning of the word privation will be easily understood from
the following example: If a cylindrical piece of wax be made to assume a spherical
form, the sphericity will be educed, as the schools say, from the cylindrical wax,
not inasmuch as it is cylindrical, but inasmuch as it is non-spherical. Such a non-
sphericity is a privation, which is more than a negation, as it implies not only the
absence of sphericity, but also the presence of its contrary—that is, of the
cylindrical form. Privation is usually defined carentia formæ in subjecto apto. It is
a principle per accidens.
[184] We give the original text: Sic enim scientia Dei se habet ad omnes res
creatas, sicut scientia artificis se habet ad artificiata. Scientia autem artificis est
causa artificiatorum, eo quod artifex operatur per suum intellectum. Unde oportet
quod forma intellectus sit principium operationis, sicut calor est principium
calefactionis. Sed considerandum est, quod forma naturalis, in quantum est forma
manens in eo cui dat esse, non nominat principium actionis, sed secundum quod
habet inclinationem ad effectum. Et similiter forma intelligibilis non nominat
principium actionis secundum quod est tantum in intelligente, nisi adjungatur ei
inclinatio ad effectum, quæ est per voluntatem. Quum enim forma intelligibilis ad
opposita se habeat (quum eadem sit scientia oppositorum) non produceret
determinatum effectum, nisi determinaretur ad unum per appetitum, ut dicitur in
9. Metaph. Manifestum est autem quod Deus per intellectum suum causat res,
quum suum esse sit suum intelligere; unde necesse est quod sua scientia sit
causa rerum secundum quod habet voluntatem conjunctam (p. 1, q. 14, a. 8).
[185] Parents, however, communicate a portion of their substance to their
offspring. The reason is that parents are not only the efficient, but also the
material, cause of their offspring. As material causes, they supply the matter of
which the fœtus will be formed; but, as efficient causes, they only put the
conditions required by nature for the organization of this matter. The position of
such conditions is an accidental action as well as the subsequent organization.
Therefore, parents, as efficient causes, produce nothing but accidental acts. The
matter of which the fœtus is formed is, of course, all pre-existing.
DANTE'S PURGATORIO.
CANTO TWELFTH.
Paired, like two oxen treading under yoke,
That burdened soul and I as far had gone
As the loved Tutor let. But when he spoke
These words: "Now leave him! We must travel on,
For here 'tis good with spread of sail and stroke
Of oar, to push his boat as each best may;"
I made myself, as walking needs, erect,
But only in body; just it is to say
My thoughts were bowed, my spirit was deject.
Still I was moving, and with willing feet
Followed my Master; both began to show
How light we were, when thus he said: "'Tis meet
That, walking here, thou bend thine eyes below,
So to observe, and make the moments fleet,
Over what kind of bed thy footsteps go."
[186] Lucifer.
[187] Stile here means a sculptor's tool, and not a writer's style.
[188] This is the well-known church of S. Miniato, which every boy who has been
to Florence must well remember.
[189] Florence, in irony.
[190] The Angel, sitting at the gate of Purgatory, had described (as the readers of
the Ninth Canto may remember, v. 112) the letter P seven times with the point of
his sword on the forehead of Dante, in sign of the seven deadly sins,—Peccata—
one of which, and Dante's worst, the sin of pride, now vanishes from his soul as
the letter fades from his forehead.
THE EPIPHANY.
Let us, then, also follow the Magi; let us separate ourselves from our
barbarian customs, and make our distance therefrom great, that we
may see Christ, since they too, had they not been far from their own
country, would have missed seeing him. Let us depart from the
things of earth. For so the wise men, while they were in Persia, saw
but the star; but after they had departed from Persia, they beheld
the Sun of Righteousness. Or rather, they would not have seen so
much as the star, unless they had readily risen up from thence. Let
us, then, also rise up; though all men be troubled, let us run to the
house of the young Child; though kings, though nations, though
tyrants, interrupt this our path, let not our desire pass away; for so
shall we thoroughly repel all the dangers that beset us; since these
too, except they had seen the young Child, would not have escaped
their danger from the king. Before seeing the young Child, fears and
dangers and troubles pressed upon them from every side; but after
the adoration, it is calm and security; and no longer a star, but an
angel, receives them, having become priests from the act of
adoration; for we see that they offered gifts also.
Do thou, therefore, likewise leave the Jewish people, the troubled
city, the blood-thirsty tyrant, the pomps of the world, and hasten to
Bethlehem, where is the house of the Spiritual Bread;[191] for
though thou be a shepherd, and come hither, thou wilt behold the
young Child in an inn; though thou be a king, and approach not
here, thy purple robe will profit thee nothing; though thou be one of
the wise men, this will be no hindrance to thee; only let thy coming
be to honor and adore, not to spurn, the Son of God; only do this
with trembling and with joy, for it is possible for both of these to
concur in one.
But take heed that thou be not like Herod, and say, That I may come
and worship him, and, when thou art come, be minded to slay him.
For him do they resemble who partake of the mysteries unworthily;
it being said that such an one shall be guilty of the Body and Blood
of the Lord. Yes; for they have in themselves the tyrant who is
grieved at Christ's Kingdom—him that is more wicked than Herod of
old—even Mammon. For he would fain have the dominion, and
sends them that are his own to worship in appearance, but slaying
while they worship. Let us fear, then, lest at any time, while we have
the appearance of suppliants and worshippers, we should indeed
show forth the contrary.—S. John Chrysostom.
FOOTNOTES:
CHAPTER VIII.
SUMMER FRIENDS.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com