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
36
votes
2 answers

Calling Javascript using UIWebView

I am trying to call a javascript in a html page using the function - View did load function { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths…
learner2010
  • 4,157
  • 5
  • 43
  • 68
7
votes
4 answers

ggplot2 time series plot with colour coded wind direction arrows

Good afternoon, I am trying to produce a time-series plot with arrows showing wind direction and coloured to show wind speed strength. Ultimately I am trying to get a plot something like this (just an example picture I found online): I have managed…
Achak
  • 1,286
  • 2
  • 18
  • 36
6
votes
2 answers

RGraph reload the previous graph when i reload the page and i click the body of the page

i use that for clear the graphs: for (var i=0; i< document.getElementsByTagName('canvas').length; i++) { RGraph.Clear(document.getElementsByTagName('canvas')[i]); } when i reload the page the previous appear and the new graph is placed over the…
2
votes
0 answers

Memory-Leak using RGraph.Line in a one page besed App

I actually using RGraph.line to show a curve in one of page in a web app. And every thing is good as far. the switch between pages is based on literal template. The problem occures when the page is left, the Rgraph.line remains in Heap. I tried…
Amin Ben
  • 53
  • 10
2
votes
1 answer

A graph with multiple scales/Y-axes

I have a line graph that I would like to have two different Y-axes (this is usually accomplished by having one set of labels on the left, and one on the right). So I can have two different types of related data on the same graph, but with different…
Bobb Fwed
  • 317
  • 3
  • 6
2
votes
1 answer

Different color on specific point on RGraph line chart

I'm trying to specify a color in a point with highlightStyle: 'halo', and tickmarksStyle: ['circle'] defined. Graph: I want to change the color of those points to red if they surpass that blue line. The condition is no big deal but can't seem to…
CaldeiraG
  • 152
  • 2
  • 14
2
votes
1 answer

Creating Overlapping Bar Plot with R

I am super new to R coding and I'm trying to create some simple bar graphs for a presentation. I took two data sets and overlapped them using par(new=TRUE) but for some reason, the bars that I want to overlap are just slightly underneath the bars I…
2
votes
1 answer

How to integrate Rgraph with PHP and MySQL?

I'm having a problem integrating Rgraph with PHP and MySQL data. I followed instructions from the Rgraph site. On the Rgraph site, the example uses array data but my case does not use array. I want to display how many pegawai attended for a…
2
votes
2 answers

How can i barplot a dataframe contains character an numeric in R?

I have this data frame product Total AF064 21 AF065 24 AF066 1 AF067 13 AF068 6 AF069 3 AF070 5 AF071 1 AF072 3 AF073 3 AF074 5 AF075 2 AF076 28 AF077 0 AF078 3 AF079 10 AF080 0 AF081 13 AF082 0 AF083 3 AF084 …
user3292755
  • 383
  • 2
  • 9
  • 25
1
vote
1 answer

RGraph : Uncaught TypeError: (intermediate value).draw(...).responsive is not a function

I want to add a responsive for my Chart using RGraph Library, the problem is every time I'm using a responsive() method (from the library) https://www.rgraph.net/canvas/responsive.html this error message always shows up, and the chart won't render…
Reihandio
  • 45
  • 5
1
vote
1 answer

RGraph, Multiple Graphs with data from a PHP/MySQL source

iam trying to show multiple Graphs in one diagram. The datasource is a MySQL database which is connected via PHP. My Problem: I cant figure out how to add the data to the RGraph Script. I managed to show one graph via PHP, bt i cant add a seconde…
1
vote
1 answer

rGraph y label generated wrong when data is 1

id: 'bar_active', data: [0,1,0,0,0], I have a bar graph generated using rgraph and passing data into it. My data pass is '[0,1,0,0,0]'. When this graph is generated the Y Label is generated incorrectly. I am expecting to get 1 only in the Y label…
guradio
  • 15,524
  • 4
  • 36
  • 57
1
vote
1 answer

Why are RGraph labels not showing?

I have a simple mock-up of a chart using RGraph.net and I can't work out why the month labels for the columns, and the "GBP" label for the axis are not showing. I have put the code into https://jsfiddle.net/Abeeee/kcwqn850/32/ var chart = new…
user1432181
  • 918
  • 1
  • 9
  • 24
1
vote
1 answer

How to fix labels clashing problem in RGraph pie chart?

I'm creating RGraph pie chart in which labels are clashing. Though I am using labels.sticks property to fix this issue but it has no effect on the output. Here's my code to draw pie chart:
Sachin
  • 1,646
  • 3
  • 22
  • 59
1
vote
2 answers

RGraph with missing data points

I want to plot an area fill line chart with multiple series, using javascript & RGraph, for a period between two dates, but I do not have data points for every date; how do I do this with RGraph? I cannot miss out dates in the data I pass to RGraph…
user1432181
  • 918
  • 1
  • 9
  • 24
1
2 3
8 9