# Flot [![Build status](https://travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot)
## About ##
Flot is a Javascript plotting library for jQuery.
Read more at the website: <http://www.flotcharts.org/>
Take a look at the the examples in examples/index.html; 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]
[excanvas], a canvas emulator; this is used in the examples bundled
with Flot. You just include the excanvas script like this:
```html
<!--[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][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:
```html
<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:
```html
<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:
```js
$.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
[API reference](API.md). Here's a quick example that'll draw a line
from (0, 0) to (1, 1):
```js
$.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 of
the words that come up are "good-looking", "attractive", "stylish",
"smart", "impressive", "extravagant". One of the main goals with Flot
is pretty looks.
## Notes about the examples ##
In order to have a useful, functional example of time-series plots using time
zones, date.js from [timezone-js][timezone-js] (released under the Apache 2.0
license) and the [Olson][olson] time zone database (released to the public
domain) have been included in the examples directory. They are used in
examples/axes-time-zones/index.html.
[excanvas]: http://code.google.com/p/explorercanvas/
[flashcanvas]: http://code.google.com/p/flashcanvas/
[timezone-js]: https://github.com/mde/timezone-js
[olson]: http://ftp.iana.org/time-zones
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
一、项目简介 系统是一个基于JavaWeb的教材订购系统的设计与实现。教材订购系统的设计与实现是通过信息化技术与高校中的教材订购业务结合在一起,实现对教材的查询、订购、管理信息化、数据化、自动化的管理模式。能够方便教师查询已有的教材信息,在线申请需要的教材资料,为教学的顺利进行提供保证。本项目主要针对做计算机毕设或者项目实践学习的Java人群使用。 二、技术实现 1.开发平台:eclipse/IDEA 2.数据库:MySQL 三、系统功能 教材订购系统的设计与实现包括了管理员模块和用户模块,管理员模块中可以对教学中的已有的教材进行添加,对用户的教材订购申请进行管理,可以同意申请,并对已经购买的教材进行确认。可以按照教材的分类、名称和申请人统计教材订购数据。用户模块中包括了已有教材的查询,可以对已有的教材和未提供的教材进行申请,并可以查询到自己申请购买的教材的审核和购买状态。系统的完成为教材的查询、订购都带来了方便。
资源推荐
资源详情
资源评论
收起资源包目录
基于Javaweb的教材订购系统的设计与实现源码 (770个子文件)
africa 45KB
antarctica 15KB
asia 111KB
australasia 68KB
backward 4KB
dinggou_servlet.class 10KB
yonghu_servlet.class 10KB
jiaocai_servlet.class 9KB
yuandinggou_servlet.class 7KB
loginService.class 4KB
Tdinggou.class 3KB
DB.class 3KB
Tjiaocai.class 2KB
EncodingFilter.class 2KB
Tyonghu.class 2KB
TAdmin.class 1KB
.classpath 1KB
org.eclipse.wst.common.component 480B
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.min.css 120KB
stylesheet.css 19KB
main.css 15KB
style.css 11KB
all.css 7KB
bootstrap-table.css 7KB
screen.css 6KB
zTreeStyle.css 6KB
laydate.css 6KB
laydate.css 6KB
style.css 5KB
milk.css 5KB
datepicker.css 5KB
qunit.css 5KB
datepicker.css 5KB
login.css 4KB
datepicker.css 4KB
datepicker.css 4KB
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
datouwang.css 2KB
ui.css 2KB
style.css 2KB
jquery-ui.min.css 2KB
examples.css 2KB
cmxform.css 1014B
cmxformTemplate.css 993B
reset.css 790B
core.css 683B
site-demos.css 471B
screen.css 195B
WdatePicker.css 158B
WdatePicker.css 158B
论文.docx 41KB
开题报告.docx 26KB
.DS_Store 15KB
etcetera 3KB
europe 119KB
factory 393B
logo_marketo.gif 8KB
zTreeStandard.gif 5KB
tab-sprite.gif 5KB
button-submit.gif 4KB
back_green-fade.gif 2KB
login-sprite.gif 2KB
img.gif 2KB
img.gif 2KB
back_nav_blue.gif 2KB
tab_green.gif 2KB
list_top.gif 2KB
img.gif 2KB
img.gif 2KB
icons.gif 1KB
step3-24.gif 1KB
step1-24.gif 1KB
step2-24.gif 1KB
bg.gif 1KB
datePicker.gif 1KB
datePicker.gif 1KB
lable.gif 959B
arrow-down.gif 916B
arrow-up.gif 916B
arrow-right.gif 897B
arrow-left.gif 891B
toggle.gif 845B
blank.gif 799B
page.gif 664B
loading.gif 418B
loading.gif 381B
共 770 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- Endragon5842023-04-16没数据库啊
塞北的学
- 粉丝: 631
- 资源: 181
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功