leeoniya / uPlot

📈 A small, fast chart for time series, lines, areas, ohlc & bars
MIT License
8.79k stars 388 forks source link

update Echarts to 5.0 #317

Closed leeoniya closed 3 years ago

leeoniya commented 4 years ago

it's recently received some pretty drastic perf optimizations:

https://github.com/apache/incubator-echarts/pulls?q=is%3Apr+is%3Aclosed+%5BPerformance%5D+in%3Atitle

cc @pissang when you have a PR ready

pissang commented 3 years ago

Sorry, I forgot about this PR. Thanks for finishing it!

leeoniya commented 3 years ago

no problem, is there any way to disable series focusing when the cursor moves?

pissang commented 3 years ago

Do you mean the line will flicker when the cursor moves? I think it's because the highlighted series has a consistent issue because of LTTB sampling. The only way now to fix it now is to fix the z-order of each line series, so the highlighted line won't be brought to the front.

series: [{
  name: 'CPU',
  z: 0
}, {
  name: 'RAM',
  z: 1
}, {
  name: 'TCP Out',
  z: 2
}]
leeoniya commented 3 years ago

yeah, that helps for sure, though it still looks like it changes colors when the tooltip is active, which also looks like flickering.

pissang commented 3 years ago

Turning off the color highlight seems can be an enhancement in the next version.