highcharts绘制3D图表
来源:互联网 发布:汇编怎么写网络程序 编辑:程序博客网 时间:2024/06/04 18:49
最近做项目中需求要求
3D
图表展现,开始比较懵逼,后来网上找的了highcharts
图表,之前都是用的百度的echarts
做平面图
一、基本介绍
- 1、3d官网案例
- 2、参数的配置
- 3、官方的其他案例
二、绘制一个饼图的
1、效果图如下
2、具体代码
<!DOCTYPE HTML><html><head> <meta charset="utf-8"> <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="https://img.hcharts.cn/jquery/jquery-1.8.3.min.js"></script> <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script> <!--3d图表需要的2d就不需要--> <script src="https://img.hcharts.cn/highcharts/highcharts-3d.js"></script> <!-- <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script> --> <!-- <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script> --> <!-- 颜色的可以不引入,单独自己设置颜色 --> <!-- <script src="https://img.hcharts.cn/highcharts/themes/sand-signika.js"></script> --></head><body> <div id="container" style="height: 400px;width:400px;"></div> <script> $(function () { $('#container').highcharts({ chart: { backgroundColor:'#e5e5e5', type: 'pie', options3d: { enabled: true, alpha: 45, beta: 0 } }, // 设置导出按钮 exporting:{ // 不显示出来 enabled:false }, title: { text: '2014年某网站不同浏览器访问量占比' }, tooltip: { pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', depth: 35, dataLabels: { enabled: true, format: '{point.name}' } } }, // 版权 credits:{ enabled:false }, series: [{ type: 'pie', name: '浏览器占比', data: [ { name:'Firefox', y:25.0, id:'fox', color:'#630', // 文字提示 dataLabels:{ enabled:false } }, ['IE', 26.8], { name: 'Chrome', y: 12.8, sliced: true, selected: true }, ['Safari', 8.5], ['Opera', 6.2], ['Others', 0.7] ] }] }); }); </script></body></html>
阅读全文
0 0
- highcharts绘制3D图表
- 基于Highcharts的图表绘制
- Highcharts 3D图表标志线标签偏移问题
- html js highcharts绘制圆饼图表
- Highcharts使用CSV格式数据绘制图表
- Highcharts使用表格数据绘制图表
- html js highcharts绘制圆饼图表
- 在Flex Chart 中绘制3D图表
- 在Flex Chart 中绘制3D图表
- Matplotlib绘制点图,条形图和3D图表
- highcharts项目笔记-通过Ajax json数据绘制图表
- HighCharts图表
- Android实现图表绘制和展示(2D和3D)
- 移动开发|绘制饼图、柱状图、2d、3d统计图表
- HighCharts 3D环形图
- 简单3D图表
- 使用amCharts绘制统计图表(柱状图、折线图、3D图)
- 图表控件TeeChart干货分享(绘制2D、3D实时曲线---VC++示例源代码--网络首发)
- linux系统中的定时任务及延时任务
- Java获取数组组件类型及Array API简单示例
- 利用Matlab绘制图像中的某一行或者某一列的灰度曲线
- 数据库左右外连接与mapper.xml注意问题
- 0 导读
- highcharts绘制3D图表
- 栈和队列的应用相关习题及详解 ——数据结构
- 笑脸图
- SVN仓库迁移
- Android studio升级3.0,提示“Error:Cannot choose between the following configurations of project”错误
- web前端架构师的能力问题
- kafka是什么
- FastLink
- android中创建数据库