We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
地图散点图,为了给每个markpoint设置不同的字体颜色,在data中的label.normal.textStyle.color设置颜色,以前版本是好的,更新版本后,颜色设置失效
每个markpoint中字体设置为正确颜色
option = { backgroundColor: '#404a59', title: { text: '全国主要城市空气质量', subtext: 'data from PM25.in', sublink: 'http://www.pm25.in', left: 'center', textStyle: { color: '#fff' } }, tooltip : { trigger: 'item' }, legend: { orient: 'vertical', y: 'bottom', x:'right', data:['pm2.5'], textStyle: { color: '#fff' } }, geo: { map: 'china', label: { emphasis: { show: false } }, roam: true, itemStyle: { normal: { areaColor: '#323c48', borderColor: '#111' }, emphasis: { areaColor: '#2a333d' } } }, series : [ { name: 'pm2.5', type: 'scatter', coordinateSystem: 'geo', markPoint: { data: [{ value: 'drwe', coord: [119.867413, 32.891544], itemStyle: { normal: { color: 'blue', shadowColor: 'rgba(0, 0, 0, 0.5)', shadowBlur: 10, opacity: 0.9 } }, label: { normal: { show: true, formatter: '{c}', textStyle: { fontFamily: 'Monaco', color: 'red' } }, emphasis: { show: true, textStyle: { fontFamily: 'Monaco', fontSize: 16 } } }, }], symbol: 'pin', itemStyle: { normal: { color: '#fff', shadowColor: 'rgba(0, 0, 0, 0.5)', shadowBlur: 10, opacity: 0.9 } } }, // data: convertData(data), symbolSize: function (val) { return val[2] / 10; }, itemStyle: { normal: { color: '#ddb926' } } } ] };
The text was updated successfully, but these errors were encountered:
并没有像更新记录里说的那样,可以兼容以前的写法。
Sorry, something went wrong.
可以把 textStyle 层级去掉:
normal: { show: true, formatter: '{c}', fontFamily: 'Monaco', color: 'red' }, emphasis: { show: true, fontFamily: 'Monaco', fontSize: 16 }
这个地方的兼容被落调了,会补上。
c6a94be
No branches or pull requests
One-line summary [问题简述]
地图散点图,为了给每个markpoint设置不同的字体颜色,在data中的label.normal.textStyle.color设置颜色,以前版本是好的,更新版本后,颜色设置失效
Version & Environment [版本及环境]
Expected behaviour [期望结果]
每个markpoint中字体设置为正确颜色
ECharts option [ECharts配置项]
Other comments [其他信息]
The text was updated successfully, but these errors were encountered: