Can i use d3.js for creating interactive visualizations inside an android app?

后端 未结 5 1909
無奈伤痛
無奈伤痛 2020-12-24 13:21

I am trying to create an interactive visualization within an android app.

The data that will be visualized will be stored locally in a sqlite database and will be q

5条回答
  •  Happy的楠姐
    2020-12-24 14:13

    You can easily embed Javascript into an Android app using the WebView component or you can use PhoneGap or a similar platform. Unfortunately, before Android 3.0 the native android browser did not display svg and D3 is based on SVG, so it will not work in the android 2.3 (or below) browser. It does however work in the Firefox browser.

    Another option would be to use InfoVis Toolkit in a WebView or in phone gap. InfoVis Toolkit seems to work better on Android.

    I don't know of a comparable Android visualization platform, but D3, and it's predecessors Protovis, Flare, and Prefuse are all open source. You could try porting one of them to Android perhaps.

    Here is a related question: visualization tool for mobile (tablet)

提交回复
热议问题