DEV Community

Build a Revenue and Stock Price Combo Chart with Python (opens in new tab)

Discussed on DEV

Financial charts often combine metrics that live on completely different scales. For example: company revenue measured in billions of dollars, stock prices measured in tens or hundreds of dollars. I wanted to recreate the infographic style seen on Visual Capitalist using pure Python and SVG. The chart combines: annual revenue as bars, monthly stock prices as a line, a secondary axis, a clipped gradient area inside the revenue columns. One of the most interesting parts is the clipping effect. ...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help