colors绘图区报表的颜色值
来源:互联网 发布:快手字幕软件 编辑:程序博客网 时间:2024/06/08 08:57
转自:http://blog.csdn.net/myjlvzlp/article/details/8544666
colors绘图区报表的颜色值
实例1:默认颜色的设置
- Highcharts.setOptions({
- colors: ['#058DC7', '#50B432', '#ED561B','#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']
- });
- var chart = new Highcharts.Chart({
- chart: {
- renderTo: 'container',
- width : 500,
- height : 400,
- defaultSeriesType: 'pie'
- },
- series: [{
- data: [29.9, 71.5, 106.4, 129.2,144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
- }]
- });
Highcharts.setOptions({ colors: ['#058DC7', '#50B432', '#ED561B','#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']});var chart = new Highcharts.Chart({ chart: { renderTo: 'container', width : 500, height : 400, defaultSeriesType: 'pie' }, series: [{ data: [29.9, 71.5, 106.4, 129.2,144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }]});
运行如图所示:
实例2:自定义颜色的设置
- Highcharts.setOptions({
- colors: ['#ff0000']
- });
- var chart = newHighcharts.Chart({
- chart: {
- renderTo: 'container',
- width : 500,
- height : 400,
- borderWidth : 1,
- defaultSeriesType: 'column'
- },
- series: [{
- data: [29.9, 71.5, 106.4, 129.2,144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
- }]
- });
Highcharts.setOptions({ colors: ['#ff0000']});var chart = newHighcharts.Chart({ chart: { renderTo: 'container', width : 500, height : 400, borderWidth : 1, defaultSeriesType: 'column' }, series: [{ data: [29.9, 71.5, 106.4, 129.2,144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }]});
运行如下:
0 0
- colors绘图区报表的颜色值
- R实战:【绘图】R中的颜色Chart of R Colors
- Colors 颜色值 对照表
- Android colors资源文件常用的颜色
- android开发常用的colors颜色
- Sort Colors 颜色排序(只有3类值的排序)
- 把colors.xml文件里配置的颜色值转成string
- highcharts报表插件之colors参数的使用
- Media.Colors颜色板
- Sort Colors 颜色排序
- android colors颜色大全
- 【Modern OpenGL】颜色 Colors
- [leetcode 75] Sort Colors-----------只有三种颜色的排序
- colors颜色的长度 (来自刘汝佳紫书) dp+dp+dp
- 如何设置水晶报表的背景颜色
- 常用颜色大全colors.xml
- Android 颜色大全 colors.xml
- Sort Colors 排序颜色 @LeetCode
- 求两个单向链表的交点
- linux内存管理各文件简介
- 摄影测量与遥感专业、大地测量与测量工程专业学术期刊论文推荐发表
- C++中读写文件过程中异常处理机制
- Java.util.timer的实现——初步解析
- colors绘图区报表的颜色值
- Lucene学习之Facet
- 服务器中部署asp.net WebService
- 整合spring4和hibernate4出现问题———"hibernate.dialect” not set
- android仿新浪微博随便看看
- C#中M的N次方显示
- 单例模式
- IOS-IOS8小计
- 使用Jquery动态选中Select控件选项