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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]