About
-----
Flot is a Javascript plotting library for jQuery. Read more at the
website:
http://code.google.com/p/flot/
Take a look at the examples linked from above, they should give a good
impression of what Flot can do and the source code of the examples is
probably the fastest way to learn how to use Flot.
Installation
------------
Just include the Javascript file after you've included jQuery.
Generally, all browsers that support the HTML5 canvas tag are
supported.
For support for Internet Explorer < 9, you can use Excanvas, a canvas
emulator; this is used in the examples bundled with Flot. You just
include the excanvas script like this:
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="excanvas.min.js"></script><![endif]-->
If it's not working on your development IE 6.0, check that it has
support for VML which Excanvas is relying on. It appears that some
stripped down versions used for test environments on virtual machines
lack the VML support.
You can also try using Flashcanvas (see
http://code.google.com/p/flashcanvas/), which uses Flash to do the
emulation. Although Flash can be a bit slower to load than VML, if
you've got a lot of points, the Flash version can be much faster
overall. Flot contains some wrapper code for activating Excanvas which
Flashcanvas is compatible with.
You need at least jQuery 1.2.6, but try at least 1.3.2 for interactive
charts because of performance improvements in event handling.
Basic usage
-----------
Create a placeholder div to put the graph in:
<div id="placeholder"></div>
You need to set the width and height of this div, otherwise the plot
library doesn't know how to scale the graph. You can do it inline like
this:
<div id="placeholder" style="width:600px;height:300px"></div>
You can also do it with an external stylesheet. Make sure that the
placeholder isn't within something with a display:none CSS property -
in that case, Flot has trouble measuring label dimensions which
results in garbled looks and might have trouble measuring the
placeholder dimensions which is fatal (it'll throw an exception).
Then when the div is ready in the DOM, which is usually on document
ready, run the plot function:
$.plot($("#placeholder"), data, options);
Here, data is an array of data series and options is an object with
settings if you want to customize the plot. Take a look at the
examples for some ideas of what to put in or look at the reference
in the file "API.txt". Here's a quick example that'll draw a line from
(0, 0) to (1, 1):
$.plot($("#placeholder"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
The plot function immediately draws the chart and then returns a plot
object with a couple of methods.
What's with the name?
---------------------
First: it's pronounced with a short o, like "plot". Not like "flawed".
So "Flot" rhymes with "plot".
And if you look up "flot" in a Danish-to-English dictionary, some up
the words that come up are "good-looking", "attractive", "stylish",
"smart", "impressive", "extravagant". One of the main goals with Flot
is pretty looks.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该项目是一款基于Java的车辆保险报案系统设计源码,综合运用Java、JavaScript、CSS、HTML、PHP等多语言技术,包含499个文件,涵盖58个JAR包、54个PNG图片、43个JPG图片、JS、GIF、CSS、HTML、JAVA、DB等多种类型。系统分为前端和后台两部分,支持用户对车辆和案件进行管理,并具备接案员、Boss等角色的案件操作及权限分配功能。
资源推荐
资源详情
资源评论
收起资源包目录
基于Java的车辆保险报案系统设计源码 (500个子文件)
ReportAction.class 7KB
CarAaction.class 4KB
CaseEntity.class 3KB
CarDaoImpl.class 3KB
SysRoleEntity.class 3KB
LoginDaoImpl.class 2KB
SysAuthEntity.class 2KB
LoginAction.class 2KB
ReportDaoImpl.class 2KB
CustomerEntity.class 2KB
CarEntity.class 2KB
SysUserEntity.class 2KB
CarServerImpl.class 2KB
IsLoginFilter.class 2KB
RegistAction.class 1KB
LoginServerImpl.class 1KB
RegistDaoImpl.class 1KB
CharEncodingFilter.class 1KB
ReportServerImpl.class 1KB
LoggerUtil.class 1KB
Aspect.class 1KB
RegistServerImpl.class 945B
ReportTypeEntity.class 898B
MyQuartz.class 792B
CarDao.class 589B
CarServer.class 509B
LoginDao.class 383B
LoginServer.class 338B
ReportDao.class 330B
ReportServer.class 303B
RegistServer.class 191B
RegistDao.class 182B
.classpath 6KB
fancyzoom.coffee 3KB
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.css 118KB
bootstrap.min.css 98KB
jquery-ui.min.css 26KB
font-awesome.css 25KB
theme.css 21KB
font-awesome.min.css 20KB
bootstrap-theme.css 15KB
bootstrap-theme.min.css 13KB
premium.css 11KB
fullcalendar.css 11KB
login.css 10KB
popuo-box.css 7KB
style.css 6KB
laydate.css 6KB
laydate.css 6KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
laydate.css 3KB
jquery.treeview.css 3KB
style.css 2KB
jqueryslidemenu.css 2KB
isotope.css 1KB
screen.css 943B
fullcalendar.print.css 668B
screen.css 581B
elements.css 417B
fancyzoom.css 317B
layout.css 91B
styles1.css 0B
Thumbs.db 58KB
Thumbs.db 54KB
Thumbs.db 32KB
Thumbs.db 27KB
Thumbs.db 24KB
Thumbs.db 19KB
Thumbs.db 16KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 7KB
Thumbs.db 4KB
Thumbs.db 4KB
Thumbs.db 4KB
Thumbs.db 4KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
.DS_Store 6KB
共 500 条
- 1
- 2
- 3
- 4
- 5
资源评论
lly202406
- 粉丝: 2630
- 资源: 5447
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- exp4_2.c.sln
- [雷军]美妙的爱情......福的味道。.mp3
- 2023-04-06-项目笔记 - 第三百二十阶段 - 4.4.2.318全局变量的作用域-318 -2025.11.17
- 2023-04-06-项目笔记 - 第三百二十阶段 - 4.4.2.318全局变量的作用域-318 -2025.11.17
- java资源异步IO框架 Cindy
- java资源业务流程管理(BPM)和工作流系统 Activiti
- java资源高性能内存消息和事件驱动库 Chronicle
- 哋它亢技术应用2慕课自动化学习
- java资源高性能的JSON处理 Jackson
- java资源高性能的Java 3D引擎 Xith3D
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功