Questions tagged [rgraph]

RGraph is an javascript charts library that uses the HTML5 canvas and SVG tags to draw charts with and supports many different types of visualisation.

RGraph is a free javascript charts library that uses the HTML5 canvas and SVG tags to draw charts with JavaScript and supports many different types of visualisation.

Bar, Line, Pie, Scatter, Rose, Gantt, Horizontal Bar charts and more are all catered for - all of which are very quick to render in the browser. There are over 50 different types of charts that are possible using both SVG and canvas.

There are integration APIs for AJAX, CSV files, Google Sheets and lots of documentation about integrating with server-side scripts.

136 questions
1
vote
1 answer

Using RGraph to poll data from a Postgres DB and update using AJAX/JSON

I'm a bit out of depth on this one so I hope someone has some insight. :) I'm attempting to update a div using AJAX. The AJAX call sends a dropdown selection's value to a PHP file, which will be performing a pgsql query to grab some data. I've read…
psosuna
  • 113
  • 1
  • 5
1
vote
2 answers

Reading values from page in javascript

I'm new to JavaScript and HTML in general so I may have some silly questions... I'm using Flask to display a graph with some values from a sensor on a Raspberry pi3. The sensor is connected through a serial port. I want to pass the values I'm…
1
vote
1 answer

select from database in the chart is not updating values php

I have a problem using mysql database and php when creating a chart. Here is my code:
Aline
  • 11
  • 1
1
vote
0 answers

RGraph - How to make this line graph update correctly and be side scrolling

I am trying to get a dynamically updating side scrolling line graph to work in rgraph. It updates once every second via an ajax call to a php script that outputs data in this format: …
user794846
  • 1,881
  • 5
  • 29
  • 72
1
vote
0 answers

Why does cairo_ps exported R plots do show text in Word just as symbols?

I need to import high quality R plots into Microsoft Word which later needs to be transformed into a pdf (thesis). At first I tried high resolution PNGs, but the printout was really blurry. png(height=2500, width=2750, filename="correlations3.png",…
Conny
  • 41
  • 6
1
vote
1 answer

RGraph on canvas duplicates on touch in Android WebView

I am using Rgraph to draw some graphs on canvas these html pages are loaded in an android webview using PhoneGap.. everything works fine untill i touch a graphs it redraws that graph on top of the page. i have srached alot found…
AddyProg
  • 2,960
  • 13
  • 59
  • 110
1
vote
1 answer

rgraph is not formulating y axis correctly

I have a large grouped chart and the y axis will not formulate properly. I have tried getting rid of zeros, and double checking for syntax typos and cannot seem to figure it out. Basically the y-axis ticks are 0 0 1 1 thats…
1
vote
1 answer

Rgraph show key when cliking line

I want to display a tooltip when I click a line graph, along with the usual tooltip with the value. Is there any way to link from the canvas to the key area?!
RBrazao
  • 49
  • 1
  • 6
1
vote
1 answer

Rgraph bar colours in bar-chart

I had to implement bar chart for my school surveys project and I think I almost finished but nothing can be perfect and here's my question. I implemented this code http://www.rgraph.net/docs/bar.html via this tutorial…
1
vote
1 answer

How do I send data to an element with a certain ID using JavaScript?

I am using WebSockets to receive a packet of data that needs to be sent to two different canvases with IDs called magnitude1 and magnitude2. There are graphs being drawn on these canvases, and I am looking to refresh the graphs with new data…
rafafan2010
  • 1,559
  • 2
  • 14
  • 23
1
vote
1 answer

RGraph and IE 8 wont render graph correctly

I am trying to make a simple pie chart on a report page i am working on. My Client uses IE8 for all of their systems. RGraph provides the best available graphing in my opinion and its the graphing tool that my boss requires me to use. So no…
DWolf
  • 703
  • 1
  • 7
  • 20
1
vote
2 answers

Get Label text value into javascript variable

I am very new to javascript but unfortunately it is what I have to use for a thermometer chart that I'm using. I need to get the value of an ASP label text and then store that into a javascript variable which will be used to set the chart value. For…
cal5barton
  • 1,606
  • 1
  • 14
  • 29
1
vote
1 answer

RGraph: Line Graph. How to make labels on X axis two lined?

I am trying to make the labels on the x-axis two lined but its cut off. Here is my code
hol
  • 8,255
  • 5
  • 33
  • 59
1
vote
1 answer

Facing issue in rendering Rgraph in IE8 using jquery inside the parent html

I have 2 html one calling other. using jquery.ready the second JSP actually has the code of graph. everything works fine in Firefox , Chrome, safari. and IE9 but things are not working on in IE8 using the ready method of jquery is i access the …
0
votes
1 answer

How can I use dates as values and along the X axis in RGraph?

I'm trying out the horizontal bar RGraph demo with this code and it works great: var data = [1, 40, 30]; var hbar = new RGraph.HBar('myCanvas', data); hbar.Set('chart.labels', ['Richard', 'Alex', 'Nick']); hbar.Set('chart.background.barcolor1',…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
1
2
3
8 9