admin管理员组文章数量:1302319
I am using highchart's column chart in my application.
I am having column chart. When user select's a column in the chart , the selected column should shown with different border color and different width.
Here is the code snippet
$(function () {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column'
},
xAxis: {
categories: [
'Jan', 'Feb', 'Mar',
'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep',
'Oct', 'Nov', 'Dec'
]
},
plotOptions: {
series: {
allowPointSelect: true,
marker: {
states: {
select: { lineWidth: 10 }
}
}
}
},
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
]
}]
});
});
Code snippet
When I select the column the color changes to grey. I want them be to be remain same.
I am using highchart's column chart in my application.
I am having column chart. When user select's a column in the chart , the selected column should shown with different border color and different width.
Here is the code snippet
$(function () {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column'
},
xAxis: {
categories: [
'Jan', 'Feb', 'Mar',
'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep',
'Oct', 'Nov', 'Dec'
]
},
plotOptions: {
series: {
allowPointSelect: true,
marker: {
states: {
select: { lineWidth: 10 }
}
}
}
},
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
]
}]
});
});
Code snippet
When I select the column the color changes to grey. I want them be to be remain same.
Share Improve this question edited Jan 17, 2014 at 19:37 Jaak Kütt 2,6564 gold badges33 silver badges40 bronze badges asked Feb 26, 2013 at 9:26 syed imtysyed imty 1,0281 gold badge10 silver badges27 bronze badges 2- +1. You mean multi select , right? – AliRıza Adıyahşi Commented Feb 26, 2013 at 10:13
- No multi select. Just single select. When user select a column, the selected column should be highlighted with different border size and different border color. Hope i am clear. – syed imty Commented Feb 26, 2013 at 10:43
1 Answer
Reset to default 8you mean something like this:
plotOptions: {
series: {
allowPointSelect: true,
states: {
select: {
color: null,
borderWidth:5,
borderColor:'Blue'
}
}
}
},
DEMO
本文标签: javascriptDifferent border for selected column in highchartsStack Overflow
版权声明:本文标题:javascript - Different border for selected column in highcharts - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741710855a2393831.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论