1
- import ApexCharts from './apexcharts.esm.js?ver=4.3 .0'
1
+ import ApexCharts from './apexcharts.esm.js?ver=4.4 .0'
2
2
3
3
// export function for Blazor to point to the window.blazor_apexchart. To be compatible with the most JS Interop calls the window will be return.
4
4
export function get_apexcharts ( ) {
@@ -275,6 +275,20 @@ window.blazor_apexchart = {
275
275
}
276
276
} ,
277
277
278
+ copyTooltipContent ( chartId ) {
279
+
280
+ var sourceId = "tooltip_source_" + chartId ;
281
+ var targetId = "tooltip_target_" + chartId ;
282
+
283
+ var sourceElement = document . getElementById ( sourceId ) ;
284
+ var targetElement = document . getElementById ( targetId ) ;
285
+
286
+ if ( sourceElement && targetElement ) {
287
+ targetElement . innerHTML = sourceElement . innerHTML ;
288
+ }
289
+
290
+ } ,
291
+
278
292
dotNetRefs : new Map ( ) ,
279
293
280
294
renderChart ( dotNetObject , container , options , events ) {
@@ -294,14 +308,19 @@ window.blazor_apexchart = {
294
308
seriesIndex : seriesIndex
295
309
} ;
296
310
297
- dotNetObject . invokeMethodAsync ( 'RazorTooltip' , selection ) ;
311
+ var targetId = "tooltip_target_" + w . globals . chartID ;
312
+ var el = document . getElementById ( targetId ) ;
298
313
299
- var sourceId = 'apex-tooltip-' + w . globals . chartID ;
300
- var source = document . getElementById ( sourceId ) ;
301
- if ( source ) {
302
- return source ;
314
+ if ( el === null ) {
315
+ el = document . createElement ( "DIV" ) ;
316
+ el . id = targetId ;
303
317
}
304
- return '...'
318
+
319
+ dotNetObject . invokeMethodAsync ( 'RazorTooltip' , selection ) ;
320
+
321
+ return el ;
322
+
323
+
305
324
} ;
306
325
}
307
326
0 commit comments