lee-leonardo / iOS-D3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Using D3 in iOS#

##Reason## D3 has a performance hit is because of CPU throttling. The CPU throttles typically when the CPU has to ‘animate’/bezier paths at least lots of them (GPU cannot used for WebViews would GPU even be performant for it anyway?).

The goal of this is to produce something pretty lightweight and can serve a bunch of purposes. I am going to be doing this is both UIWebView (pre-iOS8) and with WKWebView for (post-iOS8).

I am going to try to make this project reusable as possible. WKWebView is not well documented, and I believe having a good example (possible Framework in the future) will be beneficial to all.

##To avoid performance issues## According to this article, the performance his is because of redrawing. This can be avoided by using HTML rather than SVGs.

##Work used to create this##

##Honorary Mentions##

  • WebViewJavascriptBridge (Supports both WebKit and UIWebView).
  • Neunode, too focused on the 'server' for this project, but would love to play with it.

About


Languages

Language:JavaScript 92.8%Language:Objective-C 4.5%Language:CSS 2.7%