# Visualization in Go - Plotting Stock Information

DevFeed: [Visualization in Go - Plotting Stock Information](<https://devfeed.tech/articles/visualization-in-go-plotting-stock-information-22179.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2022/01/visualizations-in-go.html>)

Published: 2022-01-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [plotting](<https://devfeed.tech/topics/plotting.md>), [Data visualization](<https://devfeed.tech/topics/data-visualization.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [building](<https://devfeed.tech/tags/building.md>), [csv](<https://devfeed.tech/tags/csv.md>), [finance](<https://devfeed.tech/tags/finance.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [html](<https://devfeed.tech/tags/html.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [plotting](<https://devfeed.tech/tags/plotting.md>), [programming](<https://devfeed.tech/tags/programming.md>), [stock](<https://devfeed.tech/tags/stock.md>), [visualization](<https://devfeed.tech/tags/visualization.md>)

## AI overview

The excerpt describes building an interactive stock chart in Go with Plotly, since the author found Go's Gonum plotting capabilities static. Historical prices come from a Yahoo! Finance CSV: the example parses dates with a custom csvutil time handler, decodes selected fields into typed rows, and collects values into output columns. For development, the author recommends testing against a downloaded CSV to shorten the cycle and reduce repeated API requests. The excerpt then begins showing how to construct the CSV fetch URL, but omits code and some details.

## Source excerpt

Introduction You'd like to visualize some stock data using Go, but after looking at the Go ecosystem you see very little in charting. You find gonum, which has some plotting capabilities, but it generates static charts. It's 2022, and you'd like to have interactive features such as zooming, panning, and more. You turn to the HTML landscape, and see many more options and decide to take this path. After a short survey, you decide to use plotly.