Questions tagged [linechart]

A line chart or line graph is a type of chart, which displays information as a series of data points connected by straight line segments.

A line chart or line graph is a type of chart, which displays information as a series of data points connected by straight line segments. It is a basic type of chart common in many fields. It is an extension of a scatter graph, and is created by connecting a series of points that represent individual measurements with line segments.

2022 questions
51
votes
7 answers

MPAndroidChart hide background grid

I'm using MPAndroidChart - LineChart in my android application. I want to remove gridlines from the background . How can I remove gridlines from the background? Library: MPAndroidChart on GitHub EDIT: I created my own custom LineChart using this…
Metehan Toksoy
  • 1,885
  • 3
  • 22
  • 39
41
votes
7 answers

ChartJS - Different color per data point

Is there a way to set a different color to a datapoint in a Line Chart if its above a certain value? I found this example for dxChart - https://stackoverflow.com/a/24928967/949195 - and now looking for something similar for ChartJS
Xander
  • 955
  • 1
  • 11
  • 15
30
votes
1 answer

Missing legend with ggplot2 and geom_line

How does one get a legend to display when plotting lines in ggplot? I've been trying all evening but have been unsuccessful. p <- ggplot(output, aes(lambda), legend=TRUE) + geom_line(aes(y=train.err), colour="red", label="r") + …
MrEvil
  • 7,785
  • 7
  • 36
  • 36
26
votes
3 answers

Group data and plot multiple lines

I'd like to plot multiple lines in R for this dataset: (x = Year, y = Value) School_ID Year Value A 1998 5 B 1998 10 C 1999 15 A 2000 7 B 2005 15 Each school has data for…
dani
  • 4,880
  • 8
  • 55
  • 95
24
votes
2 answers

Combining Bar and Line chart (double axis) in ggplot2

I have double-y-axis chart made in Excel. In Excel it requires only basic skills. What I'd like to do is to replicate this chart using the ggplot2 library in R. I have already done this, but I need to plot Response on 2nd-y-axis. I enclose…
AK47
  • 1,318
  • 4
  • 17
  • 30
20
votes
5 answers

Graphael line chart

Is there a good tutorial for Graphael (special line charts), I currently trying to implement such a graph with grafael http://www.highcharts.com/demo/?example=line-time-series&theme=default unfortunately there is no documentation.
Rhabarber
  • 201
  • 1
  • 2
  • 3
20
votes
4 answers

Zoom Google Line chart

I am trying to create a line chart with the Google Visualization API. I want to enable zooming. Documents say that the 'explorer' option is useful. But when I try to use the 'explorer' option, the chart is shown but zoom does not work. This is my…
alinaish
  • 456
  • 2
  • 7
  • 18
19
votes
4 answers

Remove point labels from Line chart using MPAndroidChart library

I am working on designing a Line chart using the MPAndroidChart library. in that chart, the "points labels" should be removed or suppressed, and once we click that point circle the marker should be displayed. However, right now it displays the point…
karuppiah
  • 522
  • 1
  • 5
  • 19
19
votes
1 answer

Two chart types (bar and line) in same SSRS chart

How can SSRS 2005 represent two chart types (i.e., bar and line) on the same chart? I am trying to create a graph that looks like the professionally crafted image below: The chart would have one series represented as bar graphs and then two other…
18
votes
6 answers

How to add an on click event to my Line chart using Chart.js

I am trying to add an on click event to my Line chart using Chart.js. I already have my tool tips enabled to show the information from my line charts, but I would also like to add an on click method that will let me know where the user clicked on…
MadsterMaddness
  • 725
  • 3
  • 12
  • 35
17
votes
10 answers

How to set String value of xAxis in MPAndroidChart?

I want to make Line Chart Graph, but i have problem to show value string in xAxis, im used Library Github from MPAndroidChart to LineChart. Please help me how to add String Value and actually to much question i want ask private void…
Megi Fernanda
  • 263
  • 1
  • 4
  • 15
17
votes
1 answer

D3.JS time-series line chart with real-time data, panning and zooming

FIDDLE <<<< this has more up to date code than in the question. I am trying to create a real-time (live-updating) time-series chart in d3, that can also be panned (in X) and zoomed. Ideally the functionality that I want is if the the right-most…
rex
  • 3,133
  • 6
  • 35
  • 62
17
votes
1 answer

Tooltips for multiple lines Google Line Chart

I am wondering if anyone knows how you would go about adding tooltips to multiple lines of data with Google Line Charts using DataTable, addColumn and addRow? I've seen it done using other methods, but that is quite hard in my project and I feel…
Leakim
  • 626
  • 1
  • 10
  • 19
16
votes
4 answers

How to set tooltips to display percentages to match axis in Google Visualization Line Chart?

The tooltips can be set to display percentages using the following code: var formatter = new google.visualization.NumberFormat({ fractionDigits: 2, suffix: '%' }); formatter.format(data, 1); // Apply formatter to first column. Is…
B Seven
  • 44,484
  • 66
  • 240
  • 385
16
votes
4 answers

Adding trendlines to existing chart Chart.js

from hours I've been looking for a solution to add trendlines to an existing chart built with Chart.js I think we can only add logarithmic trendline on Chart.js ? I don't want to draw a trendline from scratch, but add 2 trendlines based on existing…
Blue Agency
  • 608
  • 2
  • 7
  • 14
1
2 3
99 100