Skip to content
All library documents

Visualizing Financial Data with Heatmaps, Encodings, and Time

Article Quant Q&A · Author: vonjd

Summary

The discussion surveys ways to make financial and derivatives data easier to interpret. It recommends starting with clear plots such as scatterplots, payoff diagrams, and heatmaps, and cautions that complex graphics can obscure patterns or imply relationships the data does not support. Additional dimensions can be shown through color, size, width, or intensity, while animation can reveal how observations change over time. Examples include order-book depth displays, connected scatterplots for comparing asset histories, and methods that reorganize multivariate data, such as self-organizing maps and seriation. The discussion also mentions audio representations and 3D contours, alongside visualization tools for interactive and real-time exploration. These are suggestions and examples rather than a systematic comparison: the value of each approach depends on the question, data, and audience. The central practical guidance is to choose a visual form that clarifies the structure being studied and avoid adding complexity for its own sake.

Key ideas

  • Simple plots can communicate relationships more reliably than elaborate graphics.
  • Heatmaps can encode several data dimensions without relying on 3D space.
  • Color, size, width, and intensity can add variables to otherwise simple plots.
  • Animation and connected scatterplots can help show how relationships evolve over time.
  • Order-book displays and data-reordering methods offer specialized views of market structure and multivariate data.

Tags

Full text
# Innovative ways of visualizing financial data


# Innovative ways of visualizing financial data












Finance is drowning in a deluge of data. Humans are not very good at comprehending large amounts of data. One way out may be visualization.

Traditional ways of visualizing patterns, complexities and contexts are of course charts and for derivatives e.g. payoff diagrams, a more modern approach are heat maps.

My question: Do you know of any innovative (or experimental) ways of visualizing financial and/or derivatives data?

## Answer by Shane (score 66, accepted)

https://quant.stackexchange.com/a/551

Visualization should lead to truth and understanding. As such, I find that simple visualizations tend to be the best. My favorite visualization for showing relationships is the scatterplot. Once you start to even introduce a line plot, you are implying continuities between data that may not exist. And trying to introduce more advanced visualizations like network diagrams (ex) or complicated pie charts (ex) can lead to more confusion than understanding if misapplied.

A few thoughts:

- I think that you have already mentioned a few good ones. Heatmaps are good because they allow you to show three (or more) dimensional data without the added issues that arise when trying to create a 3D visualization. Payoff diagrams are simple but they accomplish their goal efficiently as a result.

- The FinViz website has a few nice examples of visualizations, including a simple bar chart, candlesticks, and heatmap.

- People often don't consider that it is possible to include more dimensions in a typical plot by changing the width, size, color, or intensity of a shape. This is a much better idea than trying to plot more than 2 dimensions spatially.

- The fourth real dimension is time, and time plays a very important role in financial data. One popular way to incorporate this as another dimension in a visualization is through video. A great example is gapminder, the software created by Hans Rosling, which made for some very compelling TED talks about global poverty. This was acquired by google and is now available as part of their web toolkit (also mentioned by Ben Hoffstein).

Visualization techniques from other fields are still very appropriate in finance, and the best starting point is Edward Tufte, especially "The Visual Display of Quantitative Information" and "Envisioning Information". You also can get a benefit from learning a visualization language. I recommend any of these three (in order of complexity):

- R with ggplot2, (plotly now provide an easy way to make ggplot graphes interactive)

- Protovis

- Processing

These each have a learning curve, but once you learn how to use them they all allow for exploratory data analysis in a way that can't be achieved with other tools.

There are also many great and innovative commercial tools. To mention a few that are all used by banks and hedge funds:

- Panopticon does an amazing job with real-time visualization.

- Tableau, Spotfire, and Qlikview all allow for interactive visualization of data using in-memory databases.

## Answer by Ben Hoffstein (score 26)

https://quant.stackexchange.com/a/556

The Google Motion Chart is a particularly elegant visualization for 'replaying' time series data. There is also an R package to interface with it.

## Answer by Meh (score 24)

https://quant.stackexchange.com/a/1365

Nanex has an interesting way of showing the order-book:

The following images show CME's emMni future (S&P 500) depth of book and trades. The images are rainbow (ROYGBIV) color coded by the relative size at each depth level. Red indicates a lot of size, violet indicates size approaching 0. Note that a full minute before each event, the depth starts cooling rapidly. The volume of contracts traded is represented at the bottom of the chart.

More info here: http://www.nanex.net/Research/EMini1/Emini1.html

## Answer by ZAxisMapping (score 13)

https://quant.stackexchange.com/a/563

Shane's advice is good. I think it's worth adding the following two techniques not already mentioned:

Self-Organizing Maps (SOMs)

Seriation (pdf pertaining to R package `seriation`, but great intro to the topic).

They are not explicit visualize techniques, per se. Instead, they are algos that transform underlying data in ways that aim to lead to greater/new insight on the underlying data. Thus, in my mind, the above approaches share the common objective with xy plots, contour plots, scatter-plot matrices, heat maps, etc.

For strict quantitative visualization, Tufte, as mentioned above, a great place to start. Personally, I've gotten more out of Wong's, "The Wall Street Journal Guide to Information Graphics" and Janert's "Data Analysis with Open Source Tools". However, keep in mind that each have different audiences and objectives in mind.

I also believe Processing (mentioned by Shane) has a very bright future in finance - it's been used heavily by multimedia artists primarily because of its relative ease and great flexibility.

## Answer by vonjd (score 11)

https://quant.stackexchange.com/a/21930

Although quite simple connected scatterplots can give interesting new insights on how time series perform together:

http://steveharoz.com/research/connected_scatterplot/

As an example: Gold vs. S&P 500 from 1970 till today:

The green point marks 1970, the red point is today. Every point is a year, moving vertically upwards means rise in the S&P 500 without gold changing, moving horizontally to the right vice versa. The diagonal line would be perfect correlation.

On the given website are many example to play with and there is an accompanying paper which can be downloaded (pdf) free of charge.

## Answer by Jagra (score 9)

https://quant.stackexchange.com/a/8495

And then music...

Victor Neiderhoffer, in a 2001 interview:

> The market plays music all the time. The problem is you never know how the music of the market is going to end. But a good framework is that it will end on the tonic. Consonance to dissonance back to consonance. And whenever there's tremendous dissonance, strident moves in one direction, a good working hypothesis is that at the end, you'll find consonance again.

Mean reversion?

A 2007 New Yorker article on Neiderhoffer discussed some more of his music and markets ideas:

> In “The Education of a Speculator,” he devotes an entire chapter to this notion, comparing the market’s movements to some of his favorite pieces of classical music, and juxtaposing pages of sheet music with stock charts. “When the markets are moving in my favor in a nice, gentle way—never below my initial price—I often think of the ‘Trout Quintet,’ ” he writes. “Another frequent work I hear in the market is Haydn’s Symphony No. 94. . . . Right after lunch, or before a holiday, the markets have a tendency to meander up and down in a five-point range above and below the opening. The pattern is similar to the twinkling C-major fifths of Haydn’s symphony.”

At some point, Neiderhoffer developed a means of "playing" audio of market moves for his trading desk. (I'll try to find a link to the source, its been a while since I saw it.

More interestingly...

I have a colleague, that creates audio files of fractal market structures. He can play an entire day's tick by tick volatility. It just provides a different way to experience the data. Such things, like the things this great question has evoked from the community, may shift the way we think about things and keep us fresh.

If anyone wants to listen to some short clips, contact me by my email, posted in my profile, and I'll send a few.

## Answer by Pasi Tuomainen (score 9)

https://quant.stackexchange.com/a/9870

To me, coloring by data value is a great way to bring applications alive.

If traditional ways are not enough, probably taking 3D in use would be a way:

And of course 2D heatmap is a very handy for sure.

I'm developing data visualization software components with 3D technologies, so definitely all feedback and ideas are welcome :-)

## Answer by bill_080 (score 8)

https://quant.stackexchange.com/a/555

Here are a few recent examples:

https://stackoverflow.com/questions/4951193/find-largest-5-value-less-than-1-lowest-5-values

http://tables2graphs.com/doku.php?id=04_regression_coefficients#figure_6

http://tables2graphs.com/doku.php?id=03_descriptive_statistics#figure_5

http://chartporn.org/category/innovative/

## Answer by mano Siluvairajah (score 6)

https://quant.stackexchange.com/a/1355

There are many price driven financial data finsualization concepts are available such as candle stick stock charts. However, there is an advanced charting concept, Mano Stick which is supply & demand driven charting concept. Mano Stick is a multidimentional charting concept which is able to display price information along with volume information to show trend changes in early statge.

Visit http://www.manostick.com/share-price-analysis.html. And see mano Stick at http://www.manostick.com/Images/MS-volume.png "manostick"

## Answer by Solar Anamnesis (score 2)

https://quant.stackexchange.com/a/16991

Great question, I love to visualize data! A visualization is really the most efficient way to display a large amount of information to be processed by the human brain IMO. Depending on what exactly you are trying to plot and visualize, I would suggest trying the javascript API for WebGL called Three.js. Examples of Three.js are here: http://threejs.org/examples/

For example, I have created the following 3D Contour graphs with Three.js displaying a specific indicator (LPPL) for a time series here: https://lpplmarketwatch.com/3d-contour-examples/

I have brainstormed ways, unsuccessfully, to visualize the millions of traders interacting in a network - buying and selling, shorting, etc... It would be cool if anyone had any ideas on how to visualize a network with millions of nodes interacting in a trading exchange with Three.js -- perhaps with Bitcoin for a practical example, since I imagine most trade information is confidential or expensive.

## Answer by pyCthon (score 1)

https://quant.stackexchange.com/a/2544

download gnuplot better then matlab , R and has almost every thing you will need It can also do everything mentioned in the other posts, and even visualize data in real time, at no cost as its open source and offers output to almost any format you want even LaTex for your thesis.

## Answer by zcopley (score 1)

https://quant.stackexchange.com/a/9244

BitListen -- "Realtime Bitcoin transaction and trade visualizer" is pretty neat.

## Answer by vonjd (score 1)

https://quant.stackexchange.com/a/65461

LOESS diagrams show the payoff structure of any investment vehicle in relation to a benchmark (i.e. "underlying"). Even complicated trading strategies of (hedge) funds or ETFs become accessible this way:

I published a blog post with some background information, fully documented R-code and many examples: Financial X-Rays: Dissect any Price Series with a simple Payoff Diagram

## Answer by Rustam (score 0)

https://quant.stackexchange.com/a/9248

Chernoff faces are also a good and undervalued idea http://en.wikipedia.org/wiki/Chernoff_face. It is applicable to multivariate statistical data, which, I beleive, occur frequently in world of finance/

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.