Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

What's the best way to incorporate a d3 chart into UI5 application?

$
0
0

Hi folks,

 

I'm on a project which requires to incorporate a d3.js based chart into a UI5 application.( sap.viz library doesn't fullfill )

 

I'm thinking maybe to extend a sap.ui.core.Control.

 

But here comes some problems:

 

1. how to implement the renderer function?

renderManager has the write() method, but this method is to write html strings. But I'll use d3's method to draw the svg elements.

How can I do that?

 

2. how to achieve responsive ?

I'm not sure how to auto adjust my chart size to the actual device size.

 

3. how to refresh my chart when data changes

my chart will receive some data from outside. how to refresh my chart when data changes?

 

Regards,

Aaron.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>