# Plotting time series and data from Quandl

**URL:** <https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235>\
**Category:** Visualization\
**Tags:** package, plotting, pyplot, juliabox\
**Created:** [February 22, 2017, 2:35pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235 "2017-02-22T14:35:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Tersigni](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Andrea\_Tersigni](https://discourse.julialang.org/u/Andrea_Tersigni)\
**Post date:** [February 22, 2017, 2:35pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235/1 "2017-02-22T14:35:08Z")

</div>

Hello, I’m new and I’m learning how to get time series from Quandl and work with them.  
I just managed to get the time series with only dates and closing prices and I would like to plot it. I read all PyPlot and Plots package documentations but I couldn’t find anything. Can someone give me a hint on the code or something to read?

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 22, 2017, 2:36pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235/2 "2017-02-22T14:36:41Z")

</div>

What is Quandl and what format are the data in?Please give working code.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [February 22, 2017, 4:54pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235/3 "2017-02-22T16:54:08Z")

</div>

The TimeSeries package has a Plots recipe

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [February 22, 2017, 6:35pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235/4 "2017-02-22T18:35:45Z")

</div>

So you can simply

```julia
using Quandl, Plots
ohlcv = quandl("GOOG/NASDAQ_QQQ")
plot(ohlcv["Volume"])

```

You may need to run `Pkg.checkout("TimeSeries")` first, as the recipe may only be on the master branch.

---

<div class="post-metadata">

**Author:** ![Andrea\_Tersigni](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Andrea\_Tersigni](https://discourse.julialang.org/u/Andrea_Tersigni)\
**Post date:** [February 24, 2017, 5:35pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235/5 "2017-02-24T17:35:47Z")

</div>

thank you!

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [February 24, 2017, 10:55pm UTC](https://discourse.julialang.org/t/plotting-time-series-and-data-from-quandl/2235/6 "2017-02-24T22:55:42Z")

</div>

I have also just submitted a PR to allow candlestick plots of ohlc data.

> <https://github.com/JuliaStats/TimeSeries.jl/pull/306>
>
> I implemented support for candlestick and Heikin-Ashi candlestick plots for OHLC… data using the links given by @milktrader here: https://github.com/JuliaPlots/StatPlots.jl/issues/37
> OHLC appears to constitute quite a lot of the data currently associated with TimeSeries.
> The recipe looks in the colnames for “open” “low” “high” and “close” (ignoring case) and throws an error if it does not find them. There are possibly better ways of doing this but this code (the extract\_ohlc function) is straightforward to adapt.
> 
> I thought this would take me an hour but turned out I was really wrong :-)
> I think it is best if the documentation is adapted by one of you who work with this data type. It should be straightforward from the examples given below.

```julia
plot(ohlcv[30:80], seriestype = :candlestick)

```

 ![](https://global.discourse-cdn.com/julialang/original/3X/a/2/a2222d2e0db9abf9f9125da146b98ecdf73c9c37.png)
