I need to create a graph as shown in the image below. I have the values for the upper limit, lower limit and the average for each question. Can anyone suggest a plugin in Ruby on Rails to create such a graph shown in the image?
Edit:
I am finding it difficult to find something which does clear the area from the X-axis(Question axis) to the lower limit. Can anyone help me with this?
Google has a URL based chart API that and it looks like some of the chart types available will match what you are looking for:
Chart Gallery:
http://code.google.com/apis/chart/docs/gallery/chart_gall.html
Getting Started Guide:
http://code.google.com/apis/chart/docs/making_charts.html
Do you mind if the output is in flash?
PullMonkey is a pretty nice plugin if it's not a problem to you http://pullmonkey.com/projects/open_flash_chart
Related
I need suggestion about building network graph. I am novice in building this kind of graph. Previously, I have used gephi 0.9.1 which allow user to add parameter e.g degree range between 20 - 30 by using slide bar or checked box, but it version 0.9.2 there is no slide bar or check box. So how can I add the value for my filter parameter. Do I have to write some code to generate the graph.
Besides the above issue, It seems like gephi itself does not allow to import huge data like 25 millions of edges. Do I have to used additional plugin or software to manipulate the data or just separate the data and build the graph separately and then just combine them later. Are there any tutorial or books available. I have read the gephi mannual and tried some tutorial video on youtube before, but it seems insufficient for my solutions.
Thanks for you guys suggestions and help in advance
Here is it how the filters in version 0.9.2 look for me. As you see there is still a slider at the bottom of the Filters pane.
I am working on a project in which i have a database created using mysql and php. I want to advance it by connecting an image to it. every object in my database is going to be linked to a certain part of the image that will be highlighted.
I am not really sure how to do this.
As of right now, i have a search feature on my database that gives me the result.
I am willing to try any programming language that would make this easier.
My database has about maybe 1000 entries. They are all numbers that correspond to a certain location on my image.
My image is basically a map.
I'm not entirely sure what you are trying to do, but if you want to plot a graph you can use the HTML 5 canvas as some JavaScript. Or better yet, use tool that already exists like Google Charts. Maybe a scatter plot is what you're looking for?
I am looking for a quite specific tool for generating charts, within Ruby on Rails application. I have done a research and couldn't find a solution that suits me.
Maybe you've bumped upon it and could just point me to it with a link? :)
My requirements for a solution are:
it has to feature basic chart types
like Pie, Bar, Stacked Bar, Line.
it has to have basic configuration of
a chart like legend, axis
description.
it has to be able to generate and save chart into image file without
actually rendering it in a browser
being a Ruby library would be nice,
but it is not obligatory
not being Gruff Graphing Library, I
am looking for something more up to
date, with less issues.
If you are aware about something, please post a link - it'll take you just a few seconds.
I think, that it is what you're looking for.
http://highcharts.com/
https://github.com/loudpixel/highcharts-rails
I've made a number of useful charts with the Google Chart API. There are a few gems: googlecharts, gchartrb. I haven't used them but they look like a good first cut.
As to not displaying it you can just make the call and save the result. No need to render, just make the call, get the URL, and fetch the file.
The only one that has satisfied all these conditions:
I have been able to make it works without need of install weird dependencies
Not has an HTML context requirement (all JS libraries)
Not depends on GCharts (net traffic dependency)
Exports to static graphic format
is gerbilcharts
Chartkick!!!
It's super nice. =)
It's been a long time since I asked this question and I see new people coming and posting new answers, which his great. This small post of mine turned out to be a small compendium of available libraries.
I decided to add my two cents. Nowadays whenever I am dealing with charts I usually use Highcharts. Highcharts is a very pleasant library by itself, but additionally there is incredible gem highcharts_on_rails which facilitates creating charts using DSL written in Ruby.
If you found this question and you're looking for options, consider highcharts_on_rails.
This might be able to do what you want:
Gruff
You can use rchart for plotting various chart.
I am using openflashchart
http://pullmonkey.com/projects/open_flash_chart2/
you can save generated json data in database and render when needed
I am looking for a rails flash graph/chart plugin, for drawing
bar chart,
stacked bar chart,
pie chart,
stacked area chart,
and line graphs
which support the below criteria,
1. Customizable tool tip. For eg: when i am drawing a stacked area graph, i want to display all the y axix values for that x axis point as tool tip.
2. Graph should support on click event
3. The graph should be able to send as an image through inline attachment.
4. Column graph, that should be able to display the value above the bar.
5. Should be able to turn off the animation
6. We can draw two y axis
Any help is highly appreciated.
Thanks in advance.
Nithy"
EDIT: I am willing to purchase a commercial license if its servers the purpose.
I don't know which ones will have all the features that you want but I was playing with charts a while ago and this is a list of some possibilities:
Ziya(http://ziya.liquidrail.com/) - Rails plugin
AmCharts (http://www.amcharts.com/) - The one I ended up using because of flexibility - No rails plugin but it is quite simple to deploy using with rails XML support (I guess it does export images and has all the features you want though it might take a little while to understand and make full use of it)
Fusion Charts (http://www.fusioncharts.com/) - Seems to be a good option if you are willing to inve$t some money on it
Gruff (http://nubyonrails.com/pages/gruff) - Also rails plugin - I don't remember anymore why I decided against it but I think it was because of the lack of animation
OpenFlash (http://openflashchart.com/) - I liked this one though I just used as a proof of concept
I also did try the Timeplot (http://www.simile-widgets.org/timeplot/) that is totally javascript because I had a problem with the amount of points it was required for my charts and the flash-based solutions had several limitations on that. Though I gave it up because of deployment time contraints.
Hope it helps.
Check out Highcharts http://www.highcharts.com/
Cheers,
I also heavily use AmCharts in conjonction with the Ambling Rails plugin.
If you go this way, know that you will pass time in the AmCharts reference documentation for fine-tuning the parameters of your charts. But it's worthwhile considering the results it give.
I have need to produce LINE, BAR, and PIE charts in Rails. I have found several that do all these. However the one caveat is that I can never find a solution that does all as well as XY-SCATTER. I've looked at Gruff,Scruffy,Gnuplot, etc. and none of them do "everything". Can anyone recommend a local (i.e. doesn't require network connectivity) library that can accommodate? GoogleCharts isn't an option as some of this will occur on closed networks.
Best.
If you don't mind commercial solutions, take a look at ChartDirector.
Open Flash Chart Plugin for Ruby on Rails - Graphs
FusionCharts is pretty good if you don't have a problem with Flash.
Have you checked Google charts? I'm not a web developer myself but it seems that, although not implemented in Rails, you can call the chart API and display the generated image.
Looking at the available chart types, it can give you all the types you want.
Edit: A search turned up this google-chart-on-rails wrapper.