# How to Plot Line Graph from CSV Row Data

**URL:** <https://discourse.julialang.org/t/how-to-plot-line-graph-from-csv-row-data/94875>\
**Category:** General Usage\
**Tags:** question, plotting\
**Created:** [February 19, 2023, 2:03pm UTC](https://discourse.julialang.org/t/how-to-plot-line-graph-from-csv-row-data/94875 "2023-02-19T14:03:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [February 19, 2023, 2:03pm UTC](https://discourse.julialang.org/t/how-to-plot-line-graph-from-csv-row-data/94875/1 "2023-02-19T14:03:00Z")

</div>

Hi all,

I have this CSV:

![Capture d’écran_2023-02-19_20-51-44](https://global.discourse-cdn.com/julialang/original/3X/e/9/e9be53155bfbbc0533918db0fbe34b731f15d0d3.png)

I want to plot a line graph, with x-tick is the year “2018 2019 2020 2021”

From Revenue till Total Equity. So there will be 5 different lines inside one plot.

1. For the y-tick can it be made / formatted into B(in billion) for every tick? so y=1 will be for 1 Billion, instead of 1 unit.

I have this code for starter:

```julia
using CSV, Dates, DataFrames, Plots, Plots.PlotMeasures

fileadhi = "./csv/IDX-Stocks/ADHI Income Statement.csv"

plot(...)
plot!(...)

```

what should I fill for the plot?

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [February 19, 2023, 3:39pm UTC](https://discourse.julialang.org/t/how-to-plot-line-graph-from-csv-row-data/94875/2 "2023-02-19T15:39:49Z")

</div>

Is this a homework question? Reading the [CSV.jl](https://csv.juliadata.org/stable/) documentation is a good place to start. As is [this](https://dataframes.juliadata.org/stable/man/importing_and_exporting/) tutorial on DataFrames.jl.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 19, 2023, 4:19pm UTC](https://discourse.julialang.org/t/how-to-plot-line-graph-from-csv-row-data/94875/3 "2023-02-19T16:19:26Z")

</div>

You’ve asked quite a few very similar questions over the past week, it’s probably worth you spending a bit of thing reading the Julia manual to get a solid understanding of functions, methods, variables and similar building blocks, then the DataFrames docs and tutorials for basic data manipulation and the Plots docs. This will likely serve you better than asking here for every single plot you want to do and debugging things line by line with people on the forum.

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [February 20, 2023, 10:44am UTC](https://discourse.julialang.org/t/how-to-plot-line-graph-from-csv-row-data/94875/4 "2023-02-20T10:44:31Z")

</div>

Yes I just want a quick help if anyone willing to answer. You are right, better try to solve it till stuck then.
