Coder Social home page Coder Social logo

cappgraph's People

Contributors

connord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

guniorobot

cappgraph's Issues

TypeError: domWin.jQuery.plot.setData is not a function

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.