我可以使用d3.js为内部一个Android应用程序创建交互式可视化? [英] Can i use d3.js for creating interactive visualizations inside an android app?

查看:1361
本文介绍了我可以使用d3.js为内部一个Android应用程序创建交互式可视化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建在一个Android应用程序的交互可视化。

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 queried to generate visualizations.

我还没有决定是否要建立一个本机应用程序或Web应用程序。

I have not yet decided whether to build a native app or a web app.

似乎符合需求非常好,但我不知道如何

Based on my research d3.js seems to fit the needs very well but i am unsure about how to

在移动环境中使用它。

推荐答案

您可以方便地嵌入的Javascript到使用的WebView组件的An​​dr​​oid应用程序,也可以使用PhoneGap的或类似的平台。不幸的是,Android的3.0之前的原生Android浏览器不显示SVG和D3是基于SVG的,所以它不会在Android 2.3(或低于)浏览器上运行。它在Firefox浏览器但工作。

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.

另一种选择是使用 InfoVis工具包在web视图或手机的差距。 InfoVis工具包似乎在Android上工作得更好。

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

我不知道一个可比的Andr​​oid可视化平台,但D3,它是predecessors Protovis,喇叭,和prefuse都是开源的。您可以尝试移植其中之一到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)

这篇关于我可以使用d3.js为内部一个Android应用程序创建交互式可视化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆