[Bug] How to make the hierarchy of emphasis in series above the axisPointer, while the axisPointer is above the series.areaStyle

未关闭
#21,549 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
typescript

调研方向

首先,在一个最小的 Apache ECharts 示例中复现所提供的 axisPointer 和 line-series 配置;issue 中没有指定 repository 文件或 test。检查强调 series、axisPointer 和 areaStyle 的渲染顺序,然后记录或验证能够产生所要求层级的配置;如果已有的渲染 test 覆盖此行为,则添加 regression test。

由索引模型根据 Issue 内容生成。

描述

bug en pending
Version

5.4.3

Link to Minimal Reproduction

see code

Steps to Reproduce

axisPointer: {
type: 'line',
lineStyle: {
color: colorMap['fill-4-bg'],
width: 2,
type: 'solid',
},
},
series: [
{
type: 'line',
smooth: true,
symbol: 'none',
symbolSize: 0,
emphasis: {
symbolSize: 10,
itemStyle: {
color: colorMap['main-1-cl'],
borderWidth: 2,
borderColor: colorMap['main-1-cl'],
},
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: colorMap['main-1-cl'] },
{ offset: 1, color: 'transparent' },
],
},
},
},
]

Current Behavior

How to make the hierarchy of emphasis in series above the axisPointer, while the axisPointer is above the series.areaStyle

Expected Behavior

How to make the hierarchy of emphasis in series above the axisPointer, while the axisPointer is above the series.areaStyle

Environment
- OS:macOS
- Browser:Chrome 145
- Framework:vue 2
Any additional comments?
Version

5.4.3

Link to Minimal Reproduction

see code

Steps to Reproduce

axisPointer: {
type: 'line',
lineStyle: {
color: colorMap['fill-4-bg'],
width: 2,
type: 'solid',
},
},
series: [
{
type: 'line',
smooth: true,
symbol: 'none',
symbolSize: 0,
emphasis: {
symbolSize: 10,
itemStyle: {
color: colorMap['main-1-cl'],
borderWidth: 2,
borderColor: colorMap['main-1-cl'],
},
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: colorMap['main-1-cl'] },
{ offset: 1, color: 'transparent' },
],
},
},
},
]

How to make the hierarchy of emphasis in series above the axisPointer, while the axisPointer is above the series.areaStyle

Current Behavior

How to make the hierarchy of emphasis in series above the axisPointer, while the axisPointer is above the series.areaStyle

Expected Behavior

How to make the hierarchy of emphasis in series above the axisPointer, while the axisPointer is above the series.areaStyle

Environment
- OS:macOS
- Browser:Chrome 145
- Framework:vue 2
Any additional comments?

No response

主要语言
TypeScript
星标
67.7k
派生
19.9k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/echarts 的其他 Issue

查看 apache/echarts 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。