diff --git a/demo/examples/tooltip-updates.html b/demo/examples/tooltip-updates.html new file mode 100644 index 0000000..04eeeed --- /dev/null +++ b/demo/examples/tooltip-updates.html @@ -0,0 +1,102 @@ + + + Yagr:: Dynamic Updates + + + + + +

Tooltip updates

+
+
+
+ + +
+
+
+ +
+ + + + diff --git a/src/YagrCore/utils/series.ts b/src/YagrCore/utils/series.ts index b70b758..97f5ea1 100644 --- a/src/YagrCore/utils/series.ts +++ b/src/YagrCore/utils/series.ts @@ -136,4 +136,7 @@ export const overrideSeriesInUpdate = (dest: Series, source: Series) => { dest.lineColor = source.lineColor ?? dest.lineColor; dest.lineWidth = source.lineWidth ?? dest.lineWidth; dest.stroke = source.stroke ?? dest.stroke; + dest.getFocusedColor = source.getFocusedColor ?? dest.getFocusedColor; + dest.formatter = source.formatter ?? dest.formatter; + dest.paths = source.paths ?? dest.paths; };