且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JQuery的好散点图插件(包括示例图片)?

更新时间:2022-10-15 23:34:32

FLOT 是一个非常好的图表插件。它并不特别支持散点图(就我所知),但它确实支持点图。查看使用情况页面,查看关于如何使用它创建的示例分散。


I'm looking for a solid graphing plugin for JQuery that can give me an attractive scatterplot for use on my site. I really don't need a lot of fancy functionality -- just the ability to plot points on a graph based on the X-axis and Y-axis values I give it.

The only somewhat peculiar requirement I have is that the dots have the ability to be different colors. In addition to tracking the item's "State" on the X-Axis, and it's "Input Time" on the Y-Axix, I want to represent it's "Status" (not to be confused with "State") by the actual color of the dot. Incidentally, there are 5 States, and 5 Statuses.

I found a couple of promising ones in a quick Google search, but didn't see the ability to specify the color of the dot (I found one that let me change the size, however). Any suggestions anyone has would be greatly appreciated.

Below is kind of what I'm going for, but I think the dots would be arranged more cleanly in 5 distinct columns (based on the 5 States). But it might help with visualization.

alt text http://i50.tinypic.com/14jrwv7.jpg

Thanks.

FLOT is a really nice charting plugin. It doesn't specifically support scatter charts (to my knowledge) but it does support point charts. Check out the usage page for some examples on how it has been used to create scatters.