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.
133
questions
0
votes
1
answer
30
views
is there any property in rgraph to give space between the label and graph?
How to add space in between the graph and the label(Apr 5)?
0
votes
0
answers
26
views
I have added multiple labels for my vertical lines in my plotly graph and the points I specified for the label location is connected by a line?
This is the code I used for producing the graph:
plot1 <- plot_ly(ukdf, x = ~date, y = ~weeklyincidence,
name = "Weekly Incidence/100k",
type = "...
0
votes
0
answers
11
views
How can I see the label value in my graph?
Why my labelvalue doesn't appear with .draw() and appear whith .grow(), i want to see the label value whith draw() not grow, I don't understand why.
This is my code :
<script>
RGraph.AJAX....
0
votes
0
answers
18
views
how to put text above and under side legend color bar in ggraph [duplicate]
I'm using gggraph for create a circular plot. I want the legend with those 2 texts up and under.
I've tried with the next code, but I got the labels in the side, not above or under the legend.
p + ...
2
votes
0
answers
29
views
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 ...
0
votes
1
answer
88
views
How to display y axis label in multiple lines in RGraph?
Hi I am using RGraph in Angular 7 application. in the y axis i am showing names. instead of showing in one line i want to show in multiple lines. yaxisLabelsAngle: 25 is not working.
0
votes
1
answer
75
views
How to set Bar width In Rgraph?
I am not able to set bars width if there is only 1 or 2 bars in chart.
I am using Rgraph in my angular 7 app. I am unable to set marginInner property value based on the number of bars.
Is there any ...
0
votes
1
answer
22
views
how to give space between bar and it's label?
I am using RGraph in Angular7 and i want to apply space between bar and it's label
0
votes
0
answers
21
views
how to draw the line in middle of every bar
Is there any chart available as below in RGraph or Swimlane ngx charts.
if it is not available Please let me know how to do it.
Big thanks in advance.
1
vote
1
answer
69
views
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 ...
-1
votes
1
answer
34
views
Unable to clear the 3d chart items after redrawing in RGraph
I am using RGraph.net to draw 3d charts in our angular 7 application.
i have to draw a 3d column chart based on user actions(like click event). when user selected 5 i can draw the chart and it has 3 ...
0
votes
1
answer
72
views
RGraph Pie Chart Doesn't Refresh Value
I try to get data from the API and refresh the Pie chart on an Electron application page, but I can't refresh the value of the chart. The values on the chart never change. I tried this method with ...
0
votes
1
answer
53
views
RGraph - custom-HTML in labels
Is it possible to insert custom HTML-code as a xaxisLabel of a bar - graph?
Like
xaxisLabels: ['<i class="fa fas fa-check fa-2x"></i>']
In the result, the closing-Tag (</i>...
0
votes
1
answer
33
views
Get XAxisLabel value on clicking on it
Hi I am using RGraph in my angular 7 application.
all working as expected. But i need a feature as below.
I want to get the value of xaxislabel on clicking on it.
Please let me know if anyone has ...
0
votes
1
answer
47
views
change bar values without redrawing the whole chart
Is it possible to change bar values in an already generated Graph dynamically and animate them (like css-transitions on height/width) without redrawing the whole chart?
0
votes
1
answer
84
views
How to show or hide a data point on RGraph Line chart using checkbox?
I'm trying to show/hide a data point on an Rgraph line chart using the canvas method based on a checkbox. The javascript for creating the chart is here. I cannot add the full code here as it is too ...
0
votes
2
answers
372
views
How do I get all my labels from x-axis shown on R for a barplot?
This is my first time using RStudio, and I've tried to find the the answer to my solution along with tinkering around with the code but I haven't been able to figure it out. I've even looked here and ...
0
votes
1
answer
35
views
unable to click when horizontal bar value is 0 in RGraph
I am using RGraph in my Angular 7 application.
while using horizontal bar graph i am unable to click when the bar value is zero.
i have tried tooltipsHotspotYonly: true and tooltipsHotspotXonly: true
...
0
votes
1
answer
44
views
Cannot enter array values into graph
I am using Rgraph to general a line chart.
I am trying to enter values into the chart with Javascript.
here is the routine..
function update_day_temp(newval){
var newval = '6,5,7,3,7,...
0
votes
1
answer
100
views
Problem with X-axis position when Y values are negative
I have a problem with displaying the X-axis at the bottom of a Scatter-type graph when my Y values are negative. The X-Axis keeps showing at the top edge of the canvas (while the X labels are ...
0
votes
2
answers
81
views
How to get label index on click in RGraph
I am using RGraph in our angular 7 application.
and able to show the 3d graphs and all.
I have a requirement to get index when user clicks on x axis labels.
Some times not able to update the graph ...
0
votes
0
answers
55
views
Rgraph svg chart in Appcelerator does not fire the click event
I recently updated Rgraph in my Appcelerator project, and I got a problem: the onclick function does not work. Here is a sample code:
head:
<pre class="code">
<...
0
votes
1
answer
34
views
Rgraph line chart spline creating ghost chart
Trying to figure out what is happening here. When I first load the page with the graphs on it I get the following:
However after I refresh it I get the following:
here is the code that is being ...
0
votes
1
answer
37
views
RGraph bar labelsAbove in the center of Bar to avoid Webview cutting it
I'm using a Webview in Xamarin to draw an RGraph.Bar.
The user can press a "+" button to manipulate the Graph then Graph is refreshed. The thing is for some reason the Webview is cutting off ...
0
votes
1
answer
257
views
How to add horizontal intercept on secondary axis in ggplot2
I have a plot with two y-axes, I need to add a hline using values on secondary y-axis.
Here is an example link:
OR is plotted on secondary y-axis. I want to add a hline at OR=1
OR is plotted on ...
0
votes
1
answer
37
views
Start Pie chart at an angle
I am trying to start a Pie Chart at an angle PI.
I saw some documentation on it but it always start at PI/2. What am I doing wrong?
"var grafica = new RGraph.SVG.Pie({
id: 'cc',
data: data,
...
1
vote
1
answer
105
views
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 ...
0
votes
1
answer
65
views
textAccessible labels RGraph Bar not plotted correctly in hidden nav tab
I am creating Horizontal Bar Graphs on a HTML5 webpage using JS RGraph. The text of the labels turns out very blurry unless you set the textAccessible attribute to true. This attribute uses absolute ...
0
votes
1
answer
34
views
How to synchronize the x-axis to the changes in the window
I'm trying to make something that will change the size of the graph in sync with changing the size of the window.
And I actually tried writing it, and to some extent I was successful.
I thought I ...
0
votes
1
answer
81
views
X axis title is disappearing after first time, when reloading rGrpah chart on same div
I am using rGraph to draw the chart. it is working fine for the first time. when trying to generate the graph with different input data for the second time, without refreshing the page. The graph is ...
0
votes
1
answer
72
views
Dynamically panning and zooming rGraph line chart using the mouse
I am trying to avoid spending a lot of time to find out rGraph is incapable of doing what I need.
I need to be able to use my mouse to zoom and or pan the x and y axis. I also need to be able to ...
0
votes
1
answer
216
views
Redraw RGraph SVG SemiCircular Chart
I have a webapplication with some SVG SemiCircular RGraph charts. The initial drawing of these SVG graphs goes well. Some of these charts I want to update on the fly with a new value. I saw in the ...
2
votes
1
answer
55
views
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 ...
0
votes
1
answer
262
views
How do I redraw an RGraph SVG line plot?
I have a simple web server embedded on a microcontroller. One of the web pages allows the user to plot captured data (in CSV format). The page first loads all of the data and presents it to the user,...
-1
votes
1
answer
45
views
How to combine multiple query's into one?
I am running a line graph on RGraph framework, and I am using a SELECT COUNT statement for rejected, accepted, approved etc.....counting how many items was rejected or accepted etc and then dumping ...
1
vote
1
answer
40
views
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 ...
0
votes
1
answer
1k
views
Error "geom_point requires the following missing aesthetics: y" when using geom_point
I need to plot a few columns from my dataframe. Generally speaking, in this chart, I need the values of the three selected columns to be plotted as one row, where X will represent the Release column, ...
0
votes
2
answers
116
views
rgraph SVG getting 0 width and height
$("#sparepartconsumption svg").attr("width", '800px');
$("#sparepartconsumption svg").attr("height", '500px');
console.log(datax)
console.log(datay)
var bar = new RGraph.SVG.HBar({
id: '...
0
votes
1
answer
149
views
RGraph hide line plus labels with a click on key element
So, I have a graph like this:
What I'm trying to achieve is to hide the lines plus the labels with it when I click the key referring that line.
I found this on the docs and I tried doing this:
$(...
0
votes
0
answers
33
views
Getting a popup first instead of the chart
When I load my web page to generate an RGraph scatter plot chart I get the following popup instead:
Once I click [OK] it loads the chart. I get the same popup when trying to load an RGraph line chart....
1
vote
1
answer
213
views
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://...
0
votes
1
answer
106
views
RGraph waterfall chart: Get rid of lines connecting bars
I created a waterfall using RGraph as seen in the image below. Everything looks great except there are these thin lines connecting each bar. I have circled them in red in the image. How can I get rid ...
0
votes
1
answer
127
views
Scatter Plot with Mirrored X-Axis
I am using RGraph version 5.00, trying to make a scatter plot that looks like this,
https://i.stack.imgur.com/lsPB8.png
This is my best effort, thus far,
https://i.stack.imgur.com/LKIYH.png
How ...
2
votes
1
answer
169
views
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....
1
vote
1
answer
203
views
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:
<...
0
votes
1
answer
69
views
RGraph V5 Upgrade - error getting context
I had a working 3d chart using version 2107-10-1 that used images for the y axis.
I'm now trying to use the version 5 libraries but I'm getting an error:
"Cannot read property 'getContext' of null ...
0
votes
0
answers
57
views
charts disappear on-click? I am using dynamic feature
I am using two different charts on the same page, so when I click on any chart of them the Gauge chart disappear.
var gauge1 = new RGraph.Gauge({
id: 'gauge',
min:0,
...
0
votes
1
answer
163
views
Add additional column in SVG rgraph to display values of bar graph
I have a hbar bar looking like:
I wanted to add additional column at the end to display bar values.
I want to add 2 columns to display number 2 and 3 on the first row.
I want my graph to look like ...
1
vote
2
answers
368
views
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?
...
0
votes
1
answer
55
views
Rgraph: How to show average on top of stacked bar?
I am using Rgraph and I want to show average at the top of each stacked bar graph.
How can we do that?