Creating a line graph can be accomplished using various tools, each with its own strengths and applications. Below are some key insights and methods from the discussions on how to create a line graph effectively.
Using Excel for Line Graphs
Excel is one of the most popular tools for creating line graphs due to its accessibility and ease of use. To create a line graph in Excel, you need to organize your data in columns or rows, select the data, and then choose the 'Insert' tab to find the 'Line Chart' option [2:1]. If you're having issues with axis settings, ensure that you are selecting the correct chart type (e.g., scatter plot with lines) to match your data setup
[3:2]. For date-based data, you might need to use functions like
COUNTIF
or pivot tables to count occurrences before plotting [4:1].
Illustrator and Animation Tools
For those looking to create more customized or animated line graphs, Illustrator can be used in conjunction with other software. You can plot your data using a tool like Python or Excel, export it as an SVG, and then import it into Illustrator for further customization [1:2]. For animations, After Effects can be used to animate the SVG graphics created in Illustrator
[1:1].
Alternative Tools
Other tools mentioned include R, Mathematica, and Google Sheets. R is recommended for discrete experimental data, while Mathematica is favored for plotting real functions [5:1]. Google Sheets offers a free alternative to Excel and is capable of creating basic line graphs
[5:7].
Manual Methods and Tips
If you prefer a manual approach, you can draw your graph by turning on grid snapping in Illustrator, drawing axes, and plotting data points manually [1:4]. This method is more labor-intensive but allows for complete control over the appearance of your graph.
Choosing the Right Tool
The choice of tool often depends on the complexity of the graph and the intended use. For simple and quick graphs, Excel or Google Sheets are sufficient. For more complex or animated graphs, combining Illustrator with After Effects or using specialized software like R or Mathematica may be necessary.
Im working on a video right now where i'll be showing off and working closley with a line graph that shows an exponential curve. (see png below).
I have the .csv file of the chart data and am now wondering what the best way is of handling this. Ive tried to create the chart in illustrator via the Line Graph Tool which works until i want to customize the value axis. It wont let me go past 2'147'483 and i need to be able to go to about 15 million. Is there a way to resolve this?
In general im wondering how im going to handle this whole thing. In the Video i want the chart to kinda "grow" as i voice over it. So ill be saying like "in year 24 youll be at 1 million" and as soon as i say "in year 42 youll already be at xxx" the chart would need to grow/expand and with that both the value and category axis. What would be the best approach for this. What im thinking is illustrator into after effects and then do the growing/ expanding there somehow (i dont know how).
I hope that makes sense.
Plot with the option of your choice (Python, Excel...) and export as SVG, then you can do whatever you want in Illustrator later.
It’s been a while but I think you can just copy/paste from Excel into AI and it’ll paste as vectors. Then just Overlord to AE after cleaning it up.
Gotcha. Once i have the SVG though how would i animate it in after effects. I need the chart to have y values lower than 1 million at the start and then animate it expanding to higher values. As well as having the x values go on. If that makes sense. Something like is seen in the following video: https://www.youtube.com/watch?v=_zAzIJ7VvDo
I always make my graphs from scratch, but if the scale can't go past some number you could just divide everything by 1000 and put a "$ in 1000s" as the axis label.
And if you label the axis as US Dollars you don't need to put the $ sign on the numbers.
how do you make your graphs from scratch?
I turn on a grid of 10 units per inch and turn on snapping. I draw the axis and put tick marks on the axis on the grid. I make the scale something that's easy to remember, like each inch = 100, and then that makes each unit of the grid 10.
Then I just plot the data. If you have thousands of data points that might be too tedious, but my datasets normally don't have more than 100 observations. I tried using the built in tool, but I never liked the results.
You could do all that in After Effects, but I'd be inclined to fake the graph. Plot it in Excel or whatever, export an image and draw it in Illustrator as artwork, then manipulate in AE.
just copy and paste from excel to illustrator. abstract and divide as much as possible.
Why don’t you just use Excel?
Hello,
I'm new to Excel and never used the diagram functionality before.
I'm trying to set up an Y-axis with a range of 0 to 800 in increments of 100.
The X-axis I want to set with a range of 0 to 100.
Then I have 10 cells of data I want to insert, and have it show up as a line. However, my Y-axis seems to work but the X-axis becomes 0 to 10 roughly with increments of 1, and the line in the diagram is following my Y-axis data cells.
Or my data (the cells which I want to show in the line) becomes the X-axis.
What am I missing? It feels like a super simple thing to do in Excel, set Y and X with two different ranges, then have it read data from cells and input it as dots with a line... :)
I think there should be an image included in the post, the X-axis is currently the data I want to show up in the line. Please help me before I pull out my hair at work...
Are you using a scatter chart or a line chart? It sounds like you are using a line chart, and what you want is a scatter chart with lines.
I've tried both to no success.
What does no success look like in this context? There are two types of line scatter chart, one of which kind of looks like what I think you want based on your description.
I think I may have a solution. Do you have 2 or 3 columns?
/u/Kiromana - Your post was submitted successfully.
Solution Verified
to close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
I want to create a line graph with 4 lines with U (V) being in the x-axis and I (qA) being in the y-axis.
You use scatter plot.
+1 point op indicated your solution solved their issue but failed to give you points.
Thanks!
You have awarded 1 point to any1m0use
^(I am a bot - please contact the mods with any questions. | ) ^(Keep me alive)
Thanks, this worked
The first link is a line chart with missing values across the y.
The second is a scatter plot.
Thanks, this is exactly what I wanted to do
Hi, I'm trying to create a line graph in excel displaying the number of people who completed an application based on a range of dates. Am I missing something?
See very simplified example below, any help is much appreciated!
Name | Date |
---|---|
Sam Apple | 01/02/2025 |
Bianca Mash Potato | 02/03/2025 |
Alexander Wiener | 03/04/2025 |
James Picasso | 03/05/2025 |
Bianca Munch Munch | 03/21/2025 |
David Prince | 02/03/2025 |
/u/ThisIs4Work7616 - Your post was submitted successfully.
Solution Verified
to close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
You have to have a table that has the dates with the count of names with that date. You can make one manually with the countif function or a pivot table.
Thank you!
What tool should I use to make a line graph?
I have my first lab report due soon and am struggling with my graph — I’ve already visualized it and sketched it on a piece of paper but I don’t know what website or online tool to use to actually make it.
Excel is super easy. I figured out how to do it with google.
I’m trying. It’s just hard putting in the data and getting your graph to match up with it.
use excel
Do you not have excel?
If not you can try Google sheets but Microsoft office is widely used my actual companies so you should learn basics like how to make graphs.
Excel, Matlab, word. Lots of options.
Excel or R if we’re talking discrete experimental data.
Mathematica I love for plotting real functions.
Hi there just wanted to know what type of graph should I draw in this situation like should I draw
Line of best fit or slightly smooth curve or connect the dots
For example, i will use the points p1 p2 p3 p4
So here, you take ruler and then connect p1 with p2 then remove your ruler and go to p2 and connect p2 with p3 then remove your ruler and go to p3 then take p3 with p4. Dont just draw one line through all of them you have to take each two points together until you’ve done all the points
If you dont understand you can check out a youtube video
Thanks for posting on r/IGCSE!
Please ensure that your post follows our community rules.
Important Rules:
Violating any of these guidelines may lead to a temporary or permanent ban.
Join our Discord server for study discussions and support: https://discord.gg/IGCSE
Explore our Resource Repository: https://r-igcse.study/
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
It should be a straight line Atlesst 3 points joining together
So is it like a line of best fit?
Yes you can watch yt videos to understand better
Hey guys, I have to use RStudio for my thesis, but I'm very new to the program and I unfortunately do not know much. I have a dataset with 8000 banks as rows, and corresponding financial data for these banks as columns. Examples of these columns are: NIM2010, NIM2011 ... NIM2019, and ROAA2010, ROAA2011 ... ROAA2019.
I want to make a line graph with a line for both NIM and ROAA, with the values on the y-axis and the years (2010-2019) on the x-axis. I essentially want to show how the two variables have developed over the years. Any help on this would be greatly appreciated!
Look up ggplot for the graph.. It'll do what you want.
You'll need a date variable for the x axis. You should be able to use mutate for that.
Import your data as object df and then run dput(head(df)) and post or dm me the output (the first 6 rows), and I'll get you started
Why you "have" to use R? My non-programmer colleagues at the lab always do their basic graphs on excel, and only when something complex is needed I do some R. The plot you described seems very simple and maybe you can try something more user-friendly.
Hello,
I am trying to generate a line graph that shows a species of animal over several sample periods. I am also trying to include error bars. I have run code in the past that gets the job done (minus the error bars but this time, it only gives me points without lines. I have been banging my head against a wall for a few hours now and simply cannot find a solution to this. I am not sure if it's because I have missing values (the blank/missing values are days that we took a sample on, but were not able to retrieve a usable unit if that makes sense, we didn't use 0's there)
I want to make something like this with error bars: Species over time.
Here is the code that I am trying to run, but it pretty much just keeps giving me plots without any lines or if they have lines, they are pointed vertically.
​
snap %>%
pivot_longer(!c(1:7),
names_to = "SppSex",
values_to = "count") %>%
ggplot(aes(Date, count, color = SppSex)) +
stat_summary(geom = "line") +
stat_summary(geom = "point") +
facet_wrap(~SppSex) +
theme_bw()+
scale_y_discrete(breaks = 1:14)+
theme(panel.grid.major = element_blank())+
theme(text = element_text(size = 20))+
labs(y = "Number of Each Thrips Species Observed", x = "Weeks")
​
Here is an example of the data that I am basically trying to run. I've included a few lines just because it's a massive set.
Thank you so much and I hope it this makes sense!
Without being able to replicate your issue, try adding a group
aesthetic, group = grouping_var
along side your color aesthetic.
Ah, sorry about that! I didn't realize I left out the reprex, but I'll try this first! Thanks!
I'm working on a reporting system for my clients and I want something visual to show how their conversions are changing every week.
Right now I'm just showing them the numbers and how they compare to the previous week but I want to have that data automatically add points to a line graph every week when I add the updated conversions so that they can visualize it.
there's also a bunch of other shit that I want to eventually do but this is the first step lol.
Any help is appreciated!
Thanks in advance.
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
The best way to do that is to drop the second reference in your chart data source. So for example, if you data source is say ($A$2:$A$434), when you reference that in your chart, just use ($A$2:$A)... That will keep updating the chart as more data gets populated in your reference sheet. Hope it helps!
Edit: Spelling and grammar
For work I would like to track the amount of times someone of my team did a specific task in a specific time period (one year) and have a visual representation of it.
I have a sign-off list with names and dates. I would like to create a line graph, where every name has a separate line and where the dates are on the x-axis.
Everyone starts at 0 and when a name (e.g. Bob) appears on the list it gets bumped to 1. When the next date appears with a different name (e.g. Lisa) Bob remains stationary on 1 and Lisa will join Bob on 1.
At the end of the year I would like to have a visual representation of the person who did the task the most and the least. (Like a race or contest) I tried a pivot table and pivot chart but I'm struggling to get it to work.
Here's how you can do it without pivot stuff - make a table with one column for the date and one column for each person, then do a countif like =COUNTIFS(data_Dates, "<=" & dateInThisRow, data_Names, personForThisColumn)
(FYI you can make a quick dates column with e.g. =SEQUENCE(numDaysToShow) + startDate
where startDate
is either another cell with your desired start date or the date function like DATE(2025, 1, 1)
You can also do it with a pivot table - what you're looking for is (outside of pivot tables) called a cumulative sum. To make a pivot table do it:
/u/LionHeartGames - Your post was submitted successfully.
Solution Verified
to close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
|Fewer Letters|More Letters| |-------|---------|---| |COUNTIFS|Excel 2007+: Counts the number of cells within a range that meet multiple criteria| |DATE|Returns the serial number of a particular date| |SEQUENCE|Office 365+: Generates a list of sequential numbers in an array, such as 1, 2, 3, 4|
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
^(Beep-boop, I am a helper bot. Please do not verify me as a solution.)
^([Thread #44689 for this sub, first seen 7th Aug 2025, 12:33])
^[FAQ] ^([Full list]) ^[Contact] ^([Source code])
You could create a table with columns Date and Name where you enter data, and then have a range where you list all dates from the starting date to the ending date and a column for each unique Name from the original table. Use a formula for each cell under each unique Name to count how many records are in the original table for that Name that are less than or equal to the Date in the current row. That would give you a rolling total, which you could then show in a line chart.
Another way of doing it would be to maintain it all in 1 table: every row has a Date and 2 columns for each Name - 1 column for entering the number of tasks on that Date (0 or 1), and 1 column for calculating the rolling total of 0s and 1s for that Name.
how to create a line graph
Creating a Line Graph: Key Steps
Gather Your Data:
Choose a Tool:
Input Your Data:
Select the Data:
Insert the Line Graph:
Customize Your Graph:
Review and Save:
Tips:
Recommendation: If you're new to graphing, starting with Google Sheets is user-friendly and accessible. It offers templates and easy customization options.
Get more comprehensive results summarized by our most cutting edge AI model. Plus deep Youtube search.