VChart
VChart copied to clipboard
[Bug] curveType monotone can't be applied to the part having invalid data
Version
1.12.1
Link to Minimal Reproduction
use the spec in doc website
Steps to Reproduce
Use the spec
const spec = {
"type": "line",
"data": {
"values": [
{
"Date": "2024-07-24",
"Avg. Mood": 6
},
{
"Date": "2024-08-23",
"Avg. Mood": 1
},
{
"Date": "2024-08-25",
"Avg. Mood": 5.5
},
{
"Date": "2024-08-27",
"Avg. Mood": 4
},
{
"Date": "2024-08-28",
"Avg. Mood": 9
},
{
"Date": "2024-09-30",
"Avg. Mood": null
},
{
"Date": "2024-10-01",
"Avg. Mood": 3
}
]
},
"xField": "Date",
"yField": "Avg. Mood",
"axes": [
{
"orient": "left",
"min": 0,
"max": 10
}
],
"line": {
"style": {
"curveType": "monotone"
}
},
"invalidType": "link"
}
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
Current Behavior
When we have the null value on 2024-09-30, there is no monotone curve between 2024-08-28 and 2024-10-01
Expected Behavior
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
duplicated with #2790
fixed in 1.13.4