connord / cappgraph Goto Github PK
View Code? Open in Web Editor NEWThis is a simple and easy-to-use graphing library for the Cappuccino framework.
Home Page: http://connordenman.wordpress.com
This is a simple and easy-to-use graphing library for the Cappuccino framework.
Home Page: http://connordenman.wordpress.com
I am trying to use your library to create some plots. The first thing I have try is the following example:
@import <Foundation/CPObject.j>
@import "graph.j"
@implementation AppController : CPObject
{
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
contentView = [theWindow contentView];
var bounds = [contentView bounds],
height = CGRectGetHeight(bounds),
width = CGRectGetWidth(bounds);
var theGraph = [[Graph alloc] initWithFrame:CGRectMake(bounds)];
[theGraph setDelegate:self];
[contentView addSubview:theGraph];
[theWindow orderFront:self];
}
- (void)graphViewDidFinishLoading:(Graph) aGraph
{
CPLog.debug(_cmd);
// do something once the graph is loaded
[aGraph addPlot:{ title: @"The Title", data: [[1, 2], [2, 4]] }]; // just 2 points (makes a line) with a label
[aGraph refreshGraph]; // actually load available data into the graph
}
@end
I have created the project with : capp gen -t Application myproyect.
Then I have copied "graph.j" to my project root directory and all the content of your Resource folder to my project Resource folder.
'
When I run my application I got the error in the header: "TypeError: domWin.jQuery.plot.setData is not a function"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.