Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

jonbrown21/Horizontal-Graph-Controller

Repository files navigation

Web Graph Controller

A complete collection of subclasses and controller classes to make any WebView a custom iTunes style horizontal graph. You can style this graph with CSS all transitions and animations are done via CSS3. No images required.

These graphs are generated by CSS & CSS SVG code only all values are passed via Javascript to a webview in your Cocoa project.

ScreenShot

GraphController

A subclass of WebView that calculates the sum of the NSTableView and feeds that as int variables into the WebView where CSS3 take the data and dynamically draw the graph.

ScreenShot

Sample Application - iTunes Graph Style

Included is a Sample Application that shows you how to connect all the pieces and allows you to play with the data in the tableview and see it drawn in the graph view below. Enjoy!

Swift?

Interested in seeing this expand, improve and move to Swift? Pull / Push requests appreciated

Attribution

https://github.com/githiro - For the CSS SVG Graph Code