🤔 双轴折线图怎么使用图表标注
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
我在双轴折线图中添加如下配置,
annotations: [
{
type: 'line',
id: 'line',
/** 起始位置 */
start: [10, 'min', 'min'],
/** 结束位置 */
end: [10, 'max', 'max'],
text: {
content: '中位线',
position: 'right',
offsetY: 18,
style: {
textAlign: 'right',
},
},
style: {
lineWidth: 0.5,
lineDash: [4, 4],
},
},
],
然后导致图标报错,
我在单轴折线图使用这个配置是能够正常显示。
请问双轴折线图该怎么使用图标标注?
Contributor guide
Research direction
Start by reproducing the dual-axis line chart with the supplied annotations configuration, then compare it with the working single-axis example. Identify why the annotation causes an error in the dual-axis case; done means the chart renders and the median-line annotation is displayed correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100