A line graph is a type of chart which displays information as a series of data points called markers connected by straight line segments. It shows how something changes in value (as time goes by, or as something else happens).
Questions tagged [linegraph]
558 questions
3
votes
1 answer
Which is the best Line SMoothing Algo for android
I want to make a smoother line which I draw by getting the points on touch.
The line is a drawing, but with corners. I am using quad function to draw the curve, but the curve sometimes has corners in it when the points are near to each other. What…

Jawad Amjad
- 2,532
- 2
- 29
- 59
3
votes
2 answers
How do I plot a line graph with dots for each data point using MatPlotLib in Python?
My desired outcome is a graph that looks like this
ax.plot(df.x, df.y, 'b.-')
where a line is generated with a dot at every location there is a data point. But I also want specific colors like "lightsteelblue".
When I try plotting
ax.plot(df.x,…

Bojan Milinic
- 93
- 1
- 1
- 7
3
votes
1 answer
Can the line on a line graph use an input that is linked to the x-values shown on the x-axis?
I have data showing multiple people's records on multiple days. Each row also shows the week of the year that said day happened on. Some example data:
Date
Week of…

J. Mini
- 1,868
- 1
- 9
- 38
3
votes
0 answers
D3 single line graph mousemove is not working
I am trying to add the mouseover effect to my line graph. However, the hover circle that appears on the graph does not seem to follow my mouse and it stays still at the end of the line graph.
I followed the below guide to implement my mouseover but…

Taihuynh812
- 45
- 4
3
votes
0 answers
Ploty continuous color scale in line chart
Is it possible to set the line of a line chart as a continuous scale like Viridis? I did several attempts but my best result was a discrete scale based on a third variable. How can I initialize for example lifeExp as the values for a continuous…

Shidra
- 31
- 2
3
votes
2 answers
Labelling plots arranged with grid.arrange
I have attached multiple plots to one page using grid.arrange.
Is there a way to label each plot with "(a)","(b)" etc...
I have tried using geom_text but it does not seem compatible with my plots....
.... as you can see, geom_text has some strange…

Eliott Reed
- 351
- 1
- 4
- 12
3
votes
3 answers
Calculate time difference, if difference greater than an hour, mark as 'missing', plot gap in line graph in that area
I have a basic pandas dataframe in python, that takes in data and plots a line graph. Each data point involves a time. If everything runs well with the data file, ideally each time stamp is roughly 30 min different from each other. In some cases, no…

bd3
- 91
- 1
- 9
3
votes
0 answers
Maintaining edge attributes when converting to linegraph with python igraph
I am using the python-igraph library with Python 3. I am trying to code a community detection algorithm which involves converting a graph to its linegraph, using the function linegraph().
There are attributes associated with each edge in the…

Michal SD
- 31
- 2
3
votes
1 answer
D3 linegraph using JSON data from API
I am working on making a linegraph in D3 that displays data in JSON format that is retrieved from an API.
I found an example line graph project on D3's website and it seems relatively straight forward. The main difference between the example and my…

Nick Kinlen
- 1,356
- 4
- 30
- 58
3
votes
2 answers
Changing the Color of Twin Axis Label Text in Bokeh
On a standard Bokeh line graph, the color of y-axis label text can be set with the code:
graph.yaxis.major_label_text_color = "#1F77B4"
It is possible to add a second y-axis to the graph, yielding twin axes. The following code would achieve…

user10478
- 327
- 1
- 16
3
votes
1 answer
Line not appearing in d3.js linechart (only axes are visible)
I am trying to create a line graph in d3.js but only my axes are appearing; the line doesn't show.
Things that are working:1. My axes are labelled correctly 2. Looking at the elements of the page in Chrome it seems the x and y attributes for the…

Eshan
- 43
- 1
- 9
3
votes
3 answers
Remove redundant points for line plot
I am trying to plot large amounts of points using some library. The points are ordered by time and their values can be considered unpredictable.
My problem at the moment is that the sheer number of points makes the library take too long to render.…

nc3b
- 15,562
- 5
- 51
- 63
3
votes
2 answers
Multiple lines multiple error bars using ggplot2 in R
I have three csv files which are read into r as dataframes. I want to create a line plot which graphs the "means" columns and uses the "sd" column as an above and below error bar.
This code gives me a multiple lines on a plot but with only one…

5r9n
- 177
- 2
- 11
3
votes
2 answers
Draw line graph in Objective C with large number of data and show them in collection view
I have large volumes of data (items/row) stored in a file with extension .rec (just like .text) I need to show the vertices in a line graph supporting pinch zoom and dragging. I can draw the line graph with CoreGraphics. But it doesn't work well…

kallol
- 319
- 1
- 13
3
votes
1 answer
How to make line clickable on google line chart
I want to make a google line chart with a clickable lines but I seem to only be able to make the data points clickable. Is it possible to also make the line between the data points clickable?

Rob
- 53
- 3