页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

版本 1 下一个 »

(本文档仅供参考)

问题

         

        希望在自助仪表盘中实现柱图颜色设置,请问如何在自主仪表盘中实现柱图颜色类似于电子表格做柱图的颜色设置:https://history.wiki.smartbi.com.cn/pages/viewpage.action?pageId=35750506

解决方案

         自助仪表盘的柱图是在series[{}]属性中的data[{}]进行设置的,如果有多少条数据就设置 "itemStyle": {"normal": {"color": "#FFAF00"}} 多少次,具有可参考如下设置:

         

          

           

{
	"series": [
		{
			"data": [
				{
					"itemStyle": {
						"normal": {
							"color": "#FFAF00"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#004151"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#00B7BF"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#F9334C"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#FFAF00"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#004151"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#00B7BF"
						}
					}
				},
				{
					"itemStyle": {
						"normal": {
							"color": "#F9334C"
						}
					}
				}
			]
		}
	]
}

      

  

Viewtracker License Missing

There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.

授权码细节

  • 无标签