python自动化之路-Jquery(1)
2017-03-04 01:11
344 查看
实例:生成柱形图表。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div style="height: 500px;"> <div id="i1"></div> </div> </body> <script src="jquery-1.12.4.js"></script> <script src="highchart/highcharts.js"></script> <script> function createchart(){ $('#i1').highcharts({ chart: { type: 'bar' }, title: { text: 'Stacked bar chart' }, xAxis: { categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas'] }, yAxis: { min: 0, title: { text: 'Total fruit consumption' } }, legend: { reversed: true }, plotOptions: { series: { stacking: 'normal' } }, series: [{ name: 'John', data: [5, 3, 4, 7, 2] }, { name: 'Jane', data: [2, 2, 3, 2, 1] }, { name: 'Joe', data: [3, 4, 4, 2, 5] }] }); } setInterval("createchart()",7200); </script> </html>
highchart参考。。。
相关文章推荐
- python自动化之路-Jquery(2)
- python 自动化之路 day 01 人生若只如初见
- python自动化之路-day1
- python自动化之路-day5.1
- python自动化之路-day8
- python自动化之路-day7
- python之路 jquery
- python自动化之路-day9
- python 自动化之路 logging日志模块
- python自动化之路-day5
- python自动化之路-day8.1
- python自动化之路-day1.1
- python自动化之路-day3
- python 自动化之路 day 03
- python 自动化之路 day 07 面向对象基础
- python 自动化之路 day 面向对象基础
- python自动化之路-day2
- python 自动化之路 day 04.1 python内置函数
- python 自动化之路 day 08_2 网络编程
- python 自动化之路 day 09 进程、线程、协程篇