Skip to content

Does flot support radar charts ? #217

Open
dnschnur opened this Issue Sep 28, 2012 · 9 comments

1 participant

@dnschnur
Flot member

Original author: pll...@gmail.com (March 18, 2009 21:28:47)

I did not find any info on this. Does flot handle radar charts ?
See attachment for a a sample.

Original issue: http://code.google.com/p/flot/issues/detail?id=138

@dnschnur
Flot member

From olau%iol...@gtempaccount.com on March 22, 2009 00:41:52
No. Not at the moment, and I'm not aware of anyone working on it.

@dnschnur
Flot member

From unde...@live.com.au on July 14, 2010 06:56:18
I know its over a year later but there is an plugin here to do this:

http://www.jumware.com/Includes/jquery/Flot/Examples/spider.html - Example

http://www.jumware.com/Includes/jquery/Flot/Doc/JQuery.Flot.spider.html - API

http://www.jumware.com/Includes/jquery/Flot/JS/Index.html - Source (See Spider)

@dnschnur
Flot member

From mark.hep...@gmail.com on September 14, 2010 00:32:33
I've just had a look at the jumware plugin; it's not too bad, but please be aware that (as I understand things) its behaviour is not actually correct. It scales each leg independently, so if you add just one series it will just make a uniform circle, and even with multiple series relative positioning is meaningless.

I've attached a small patch to alter this so each leg uses the same scale, and also added the options of manually specifying the minimum and maximums (see legMin and legMax in the options), rather than the default of using a percentage of the data min/max.

Unfortunately I can't find any way of contacting the developer.

@dnschnur
Flot member

From juergenm...@gmail.com on September 14, 2010 19:04:26
Hello Mark,
you found the developer :-)
Bad news first, the plugin works as designed. The idea was to have legs which show totally different KPIs like number of Injuries, Costs, Energyconsumption in a chart like this.
Good news now, I can see the reason why you want to change this behaviour.
One option could be to add a property which switches from "scale by leg" to "scale by everything"
If you want, contact me at pumrs@web.de

@dnschnur
Flot member

From juergenm...@gmail.com on September 14, 2010 20:08:42
Please take a new look to
http://www.jumware.com/Includes/jquery/Flot/Examples/spider.html
In userdefined tab is a new selectbox to switch between scaling for each leg to same scale for all legs.
In Q&U-design (quick and ugly) I added a new property in spider called scaleMode (options.series.spider.scaleMode)
Optional values are "leg" or "all"
Because of Q&U its only tested shortly, so please report any bug.

@dnschnur
Flot member

From jvand...@gmail.com on October 07, 2010 15:20:28
the "spider" functionality doesn't seem to work under firefox 3.6.10, though loads fine under chrome, "radar" works fine under either...
Also I can't find a method to set a min and max value for the legs (either under an scale mode of leg or all) this is an issue cause depending on the data the scale changes drastically, and no scale values appear to even indicate what numbers are being shown.

@dnschnur
Flot member

From juergenm...@gmail.com on October 07, 2010 20:36:09
Spider works fine under firefox 3.6.10 now.
There was a bug in definition of a variable which was ignored in previous versions.
Min/max for legs will follow later, not sure right now how this should look like (one for all, one for each leg or ??)

@dnschnur
Flot member

From miguelc...@gmail.com on July 09, 2012 14:34:15
I'm currently working with the plugin and I the highlighting behavior is not what I expected when set to area. I think it should fill the area applying the opacity option. However, that value is hardwired and has no effect when highlight mode is set to area. So I've change it using the vode shown here: http://www.peppertop.com/blog/wp-content/uploads/2008/07/colortorgba.js
(just for simplicity, it is not big deal translating from rgb to rgba).
I attach the modified file.

@dnschnur
Flot member

From richardh...@gmail.com on August 14, 2012 19:15:51
Miquel,

I noticed the same issue when expecting to see the area. I'm attempting to use your colortorgba solution, but so far I don't see a change. Is there something else I have to do than merely replacing the package's spider.js with yours?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.