当前位置:网站首页>highcharts设置柱状图宽度、渐变、圆角、柱子上方数据
highcharts设置柱状图宽度、渐变、圆角、柱子上方数据
2022-06-11 19:04:00 【hyduan200】
highcharts官网:链接
实现效果

实现代码
plotOptions: {
series: {
// 渐变
color: {
// 注意!!!如果是柱状图请使用color,如果是面积图请使用fillColor
linearGradient: {
x1: 0,
y1: 0,
x2: 0,
y2: 1
},
stops: [
[0, '#49bdff'],
[0.2, '#3B5BDF'],
[0.8, '#303642'],
[1, '#303642']
}
}
// 圆角
borderRadius: 4
}
column: {
cursor: 'pointer',
pointPadding: 0.2,
borderWidth: 0,
//pointWidth: 30,
maxPointWidth: 100 // 设置最大宽度
dataLabels:{
//柱状图数据标签
enabled:true, //是否显示数据标签
color:'#49bdff', //数据标签字体颜色
formatter: function() {
//格式化输出显示
return (this.y) + %;
},
}
}
}
边栏推荐
- Record the phpstudy configuration php8.0 and php8.1 extension redis
- 己方坦克发射子弹
- MySQL in-depth and complete learning - stage 1 - overview of learning
- Use canvas to add text watermark to the page
- Why is ti's GPMC parallel port more often used to connect FPGA and ADC? I give three reasons
- Add your favorite background music
- [solution] codeforces round 798 (Div. 2)
- Niu Ke's questions -- two sorting methods
- 一款自适应的聊天网站-匿名在线聊天室PHP源码
- 记录一下phpstudy配置php8.0和php8.1扩展redis
猜你喜欢

使用图像处理技术和卷积神经网络(CNN)的作物病害检测

Uni app Muke hot search project (I) production of tabbar

视觉SLAM十四讲笔记-10-2

Key contents that wwdc22 developers need to pay attention to

On the translation of rich text storage database format
Complete in-depth learning of MySQL from 0 to 1 -- phase 2 -- basics

cf:G. Count the Trains【sortedset + bisect + 模拟维持严格递减序列】

动态爆炸效果

视觉SLAM十四讲笔记-10-1

基于华为云图像识别标签实战
随机推荐
求数据库设计毕业信息管理
Niu Ke's question -- finding the least common multiple
【Multisim仿真】利用运算放大器产生锯齿波
cf:C. Restoring the Duration of Tasks【找规律】
2022成年礼,致每一位高考学子
Niuke brush questions part8
实现可以继续上局
Replace the backbone of target detection (take the fast RCNN as an example)
Cf:e. price maximization [sort + take mod + double pointer + pair]
Cf:f. shifting string [string rearrangement in specified order + grouping into rings (cutting connected components) + minimum same moving cycle of each group + minimum common multiple]
【题解】Codeforces Round #798 (Div. 2)
[Multisim Simulation] using operational amplifier to generate sawtooth wave
给你一个项目,你将如何开展性能测试工作?
Leetcode: sword finger offer 56 - ii Number of occurrences of numbers in the array II [simple sort]
一款自适应的聊天网站-匿名在线聊天室PHP源码
《经济学人》:WTO MC12重启 数字经济成为全球经济复苏和增长的核心引擎
Kubernetes binary installation (v1.20.15) (VIII) deploying network plug-ins
Visual slam lecture notes-10-2
Project management of workflow and business service on SAP BTP
cf:F. Shifting String【字符串按指定顺序重排 + 分组成环(切割联通分量) + 各组最小相同移动周期 + 最小公倍数】