Remove large series models from reactive data in plots (#6961)

* remove series object from highlights

* remove series models from legend reactive data

* drawing all annotations at once is way faster

* fix multi annotations

* lots of reactive things depending on config

* make annotation lookup faster

* lint

* readd perf test

* address PR comments

* fix highlight typo

---------

Co-authored-by: Jesse Mazzella <ozyx@users.noreply.github.com>
Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
Scott Bell
2023-09-06 18:32:36 +02:00
committed by GitHub
parent 0be106f29e
commit 8e917b2679
6 changed files with 265 additions and 180 deletions

View File

@ -45,7 +45,7 @@
:key="`${seriesObject.keyString}-${seriesIndex}-collapsed`"
:highlights="highlights"
:value-to-show-when-collapsed="valueToShowWhenCollapsed"
:series-object="seriesObject"
:series-key-string="seriesObject.keyString"
@legendHoverChanged="legendHoverChanged"
/>
</div>
@ -72,7 +72,7 @@
<plot-legend-item-expanded
v-for="(seriesObject, seriesIndex) in seriesModels"
:key="`${seriesObject.keyString}-${seriesIndex}-expanded`"
:series-object="seriesObject"
:series-key-string="seriesObject.keyString"
:highlights="highlights"
@legendHoverChanged="legendHoverChanged"
/>