You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "pasch82-code (via GitHub)" <gi...@apache.org> on 2024/12/10 16:14:47 UTC
[I] [Feature] Detect missing timw points and choose weither connect line or not or with which timespan [echarts]
pasch82-code opened a new issue, #20573:
URL: https://github.com/apache/echarts/issues/20573
### What problem does this feature solve?
Seems like Echarts when there is 'line' mode is not able to understand a missing time point, it just connects the line.
const data = [
{ name: '2024-04-13', value: ['2024-04-13', '100'] },
{ name: '2024-04-15', value: ['2024-04-15', '400'] },
{ name: '2024-04-17', value: ['2024-04-17', '500'] },
{ name: '2024-04-18', value: ['2024-04-18', '600'] },
];
this data with line type:

this data with ‘bar’ type, naturally it will handle it correctly

some workaround:
Splitting the series:
const data1 = [
{ name: '2024-04-13', value: ['2024-04-13', '100'] },
{ name: '2024-04-15', value: ['2024-04-15', '400'] },
];
const data2 = [
{ name: '2024-04-17', value: ['2024-04-17', '500'] },
{ name: '2024-04-18', value: ['2024-04-18', '600'] },
{ name: '2024-04-21', value: ['2024-04-21', '100'] },
];

but then, the color is changing, i would like only one series color!
### What does the proposed API look like?
It would be nice to be able to choose whether or not to connect/disconnect the line.
It would be very nice to solve this similar to how Grafana solves this problem: https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/time-series/#disconnect-values (using never or with a Threshold )
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Feature] Line mode, detect missing time points and choose weither connect line or not or with which threshold [echarts]
Posted by "MatthiasMert (via GitHub)" <gi...@apache.org>.
MatthiasMert commented on issue #20573:
URL: https://github.com/apache/echarts/issues/20573#issuecomment-2536054344
You can achieve a similar effect by preprocessing your data and adding `null` values if your threshold is exceeded.
[Example](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=MYewdgzgLgBAJgQygmBeGBtAUDTByAJgAYCAWAWiIoEYBmPAGhj2qKLwF0Gd9izKapRs1ptO3XBkIkKVctQBswvKTFceUvrJoB2ZaQCs7dZOn851AJzKjxibxkDyxZcTtYOAbixZQkWFAAFgBOAKYQgSAANnBoMKxsMABUMApEyanpKWTeftAwAA5hRSDA4RChcAAiSCjoGF5YAGYgwTAAFFGhsACWYHChAB6oRJ4wfQODMAA88LUAdF1gAOZBMOTxYxNDANQ7AJQwAN48RaElZRAV1QsFAK4R7YjIGNuDHPs8eQE9ALah1DiYFCAHcYDUoKEnrVXv0hhwMEQPt5cN8YFA_qECEDQeCkFDnghYZMdtQEUj9ijxk0Ohj_tiNnSATAAHzokLhSIxQ4nXC4M4XcqVCEIeb3R4YQnE-GIjg7IJhCLROBMMB3KJRZE8AC-WF1AuCpSFN2QYoegWhL0Ji1CKyC8g-PiwIAKGPAcV5MEGAEFBj0IAAuY7ogCeBVCQbwTLw2vsId9_qDR1D4cjADcEFE7qE8DBYzwKsEeuEg9g-cceOWoGGI8won0c_Zy4SgwajVdhbUm3meBw9Z4gA)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org