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
0
votes
1 answer

Text position on RGraph

Is there any option which allows me to change x-axis labels position? As you can see on attached screen it is overlaping the chart area. I am trying to use labelsOffsety but it is doesn't work. Maybe I'm doing something wrong?
Rudobrody
  • 1
  • 2
0
votes
1 answer

Why does RGraph.js complain about negative values when I have more than a multiple of eight groups?

I am using RGraph to make a stacked bar graph based on this example. When I have more than sixteen groups, I get this error: Error: attribute width: A negative value is not valid. ("-0.882352941176471") I have also tried increasing the number…
jtmaher2
  • 482
  • 5
  • 19
0
votes
1 answer

Saving canvas graph image in to my own folder

I want to capture canvas R Graph image and save that image into my own folder. I am using following code for plotting R Graph: var drawXChartGraph = function () { var line1 = new RGraph.Line({ id: 'cvs', data: [ …
0
votes
1 answer

line graph rounding off the scale values (rgraph)

my line graph is not displaying decimal values instead it is rounding off the decimal values on y axis var line1 = new RGraph.Line({ id: 'cvs', data: [ [5.85, 5.86, 5.87, 5.88, 5.89, 5.90, 5.91, 5.92, 5.93, 5.94] …
0
votes
0 answers

fetch array in javascript from cs file

here is the example //need to import values of data from .cs file data = [12,36,40] new RGraph.Bar({ id: 'cvs', data: data, options: { textAccessible: true, scaleZerostart: true, …
0
votes
1 answer

RGraph Line Charts X Axis label to be grouped by Month on Year

Can I have X Axis labels to Show Month(names) be grouped on Year in a Line chart. Image attached to this post : X Axis Month-names grouped by Year Thanks in advance.
0
votes
2 answers

How to get single quoted string array in JSON output?

I have the model class to return a JSON output with two array values, one array containing int values and another with single quotes words. class RGraph{ int[] data; String[] labels; // getters and setters } When I return the RGraph…
Lucky
  • 16,787
  • 19
  • 117
  • 151
0
votes
1 answer

Vertical progress Bar using rgraph

I am using Vertical progress bar from rgraph charts. My output is What i am trying to do is adjust scale in multiple of 10 wrt numticks. So if my numticks are 6, scale should to 0,10,20,30...60 How can i do this? Is there any other…
niteshd22
  • 510
  • 4
  • 15
0
votes
1 answer

How do you avoid labels overlapping in a Pie chart?

I would like to avoid this situation of overlapping text labels in a Pie chart that I'm drawing: Is there a 'recognised' way to do it? ie a particular text placement algorithm? And if not, then how to do it efficiently? EDIT: So that it looks…
Richard
  • 4,809
  • 3
  • 27
  • 46
0
votes
1 answer

Reproducing Excel Graphics with some annotations in R?

I'm performing Descriptive analysis in Excel these days. But being a R learner i want to reproduce (approx.) the Excel graphics in R by using R's own coding, packages, etc. Here is an example of data: and Excel Graph is Being a beginner at…
0
votes
1 answer

rgraph problems with labelsAbove not appearing in second graph creation

I create a Hbar with labelsAbove in a canvas object. Then i remove the canvas object (in fact the parrent object changes innerHTML deleting the canvas). When i create a new canvas and a ne Hbar, all works well except the labelsAbove. They never…
user1774309
  • 447
  • 1
  • 3
  • 14
0
votes
1 answer

RGraph (javascript) tooltips not working on bar chart

I have created this function that is passing in an array of numbers for the frequencies and an array of the alphabet as alphabet. function buildGraph(frequencies, alphabet) { RGraph.Reset(document.getElementById('myCanvas')) //Bar Graph…
jtuckwitz
  • 3
  • 2
0
votes
1 answer

How to manage hight of canvas in RGraph Rose chart?

I am using RGraph library for my assessment site. It is working well but canvas height is creating an issue with the layout of graph. See the image below, it results in a good output but gets cropped from the bottom and that's why the fourth…
Keyur Patel
  • 1,099
  • 7
  • 17
0
votes
1 answer

Ajax call with Rgraph not triggered

I have the following weird problem. I have an HTML page that has some RGraph gauges, which I want to update at regular intervals using Ajax. The relevant code looks like this: var update = function(){ $.ajax({ url : "update.php", …
0
votes
2 answers

How to refresh the canvas after x seconds

I want to refresh my canvas after every x seconds without refreshing the whole page.