echarts
echarts copied to clipboard
Not able to apply Gradient color fro line and area chart using Visual map.
One-line summary [问题简述]
Not able to apply Gradient color fro line and area chart using the Visual map when we use other dimensions value.
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:
- Browser version [浏览器类型和版本]:
- OS Version [操作系统类型和版本]:
Expected behaviour [期望结果]
ECharts option [ECharts配置项]
option = {
color: ['#3398DB'],
tooltip : {
trigger: 'axis',
axisPointer : { // 坐标轴指示器,坐标轴触发有效
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
grid: {
},
xAxis : [
{
type : 'category',
data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
}
],
yAxis : [
{
type : 'value'
}
],
visualMap : {
type:'continuous' ,
dimension:3,
min:1431.300048828125,
max:312181.2958227396
},
series : [
{
name:'直接访问',
type:'line',
areaStyle : {
},
barWidth: '60%',
data:[
[
'Mon',
600,
"(null)",
218988.90747070312
],
[
'Tue',
200,
"ColonialVoice",
309959.78592163324
],
[
'Wed',
700,
"Distinguish",
312181.2958227396
],
[
'Thu',
447.2999954223633,
"dsf",
1431.300048828125
],
[
'Fri',
800,
"SuperiorCard",
283519.5154128969
],
[
'Sat',
459,
"Vista",
275109.86544007063
]
],
}
]
};
Other comments [其他信息]
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.