pullmonkey / open_flash_chart Goto Github PK
View Code? Open in Web Editor NEWThe ruby on rails plugin for teethgrinder's Open Flash Chart (version 2)
Home Page: http://pullmonkey.com/projects/open_flash_chart2/
License: MIT License
The ruby on rails plugin for teethgrinder's Open Flash Chart (version 2)
Home Page: http://pullmonkey.com/projects/open_flash_chart2/
License: MIT License
Hi - this is a fantastic plugin!
I am having a problem with horizontal bar graphs. If I set all starting values to zero, the mouseover tooltip gets confused and jumps around oddly. If I stack all of the bar values so there are no overlaps, the mouseover works fine. I think this is a bug in the SWF maybe?
thanks!
The following json should show two 3d bars (Energy and Water Efficient) with values 253, 400 and 48, 400. But I see two bars labelled (Energey and Water Efficieny, which is correct), with values 253,48 and 400,400.
Is my assumption correct or is this json being rendered incorrectly?
{"title":{"text":"Eco points by category"},"colours":"#38E081","elements":[{"text":"Energy","colours":"#38E081","font-size":3,"type":"bar_3d","values":[253,400],"grid-colour":"#000000"},{"text":"Water Efficieny","colours":"#38E081","font-size":3,"type":"bar_3d","values":[48,400],"grid-colour":"#000000"}],"y_axis":{"steps":100,"max":500,"min":0},"grid-colour":"#000000","bg_colour":"#ffffff","x_axis":{"labels":{"labels":["Energy","Water Efficieny"]}}}
Hi,
I doing code migration to rails 4, In older code we have used open_flash_chart plugin.
But I tried to use it rails 4.In rails everything mark to gem.I tried to install as gem but it shows the following
Could not find gem 'open_flash_chart' in https://github.com/pullmonkey/open_flash_chart (at master@8f0b61a).
Source does not contain any versions of 'open_flash_chart'
Kindly help me resolve this issue.
I am creating a horizontal bar graph and setting the values - here is my pseudocode
loop...
b.append_value(v)
labels << lable corresponding to value v
end loop
After all the values are built, I want to set custom labels for the Y axis.
y.set_labels( labels )
The labels show up in reverse order to the values I set. So I have to set labels like this...
y.set_labels( labels.reverse )
Possibly this is a bug?
Has documented in the readme, the plugin breaks if JSON gem is loaded.
I confirm the patch below works for me.
http://github.com/klochner/open_flash_chart/commit/00cf531387880af8c49ed5118737f0492b437f75
Hello,
I experienced a problem with scatter points. If the mouse is on the plot the dots appear, but they suddenly disappear if the mouse goes out.
If the mouse is out nothing appear at all.
If I go on the supposed point location the point comes out with the correct label.
I tried with all sfw files I could download, from both this repository and teethgrinder) and I tried all combination of tips, no tips, and kind of data.
I also copied and pasted the example code and it behaves not like in your example page, but like my disappearing ones.
Any suggestions?
Thanks a lot
Gianluca
Hi, great job.
You should add to readme that is you need to copy the contents of the 'assets' folder of the plugin to the 'public' folder of redmine, this way will be very easy to deploy your plugin.
Thanks
YAxis labels seem to be pretty buggy in general.. but specifically:
I can't figure out how to get even simple labels (step) to work on the y-axis with a color other than #FFFFFF. My graphs are using black as the background color, so the labels just won't show up.
I've tried hacking it in several different ways but with no positive result. Some help would be appreciated!
Hi,
Thanks a ton for this wonderful plugin.
How do we change the default background color :(
I see PHP example on ofc site but did not find any method here.
Also, I am comfirtable referring to rdocs. Why we don't have rdoc for ofc.
Ninad
This should be really easy but I can't figure it out.
In the open flash chart documentation there is a function "set_default_dot_style"
I have some ruby code, but what do I pass to set_default_dot_style?
line = ScatterLine.new "#000000", 3
line.set_default_dot_style ???
chart.add_element line
Thanks for creating this great plugin!
When one tries to render more than one graph js loading function override each other.
I'm trying to render the multiple lines example but the only line I'm seeing is the "Line.new".
LineDot and LineHollow can't be seen.
Is there any way to make it possible?
I am using the latest version of open_flash_chart on Ubuntu 10, ff 3.5.9. I am loading graphs dynamically using the technique mentioned here http://pullmonkey.com/2008/09/23/open-flash-chart-ii-javascript-part-3/comment-page-2/#comment-11768. and I notice everytime I do that, there is big cpu spike in firefox, obviously because of swfobject. Has anyone else seen this?
Heads up: If you want the graph to display in Rails 3.0, your template must use <%= @graph.html_safe %>
Hello,
I found this http://teethgrinder.co.uk/open-flash-chart-2/x-axis-date.php
instructions for using dates for labels, but don't know how to do this with the rails plugin
x = XAxis.new
x.set_labels( ["a", "b"])
and the result is strangely (includes labels twice)
..
"x_axis":{"labels":{"labels":["a","b"]}},
..
x.set_labels expects an array of label strings, not sure how to set the label text format to #date:l jS, M Y#
Do you have an example on a line chart with dates for x axis from unix dates?
thank you !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.