From user-return-17690-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Aug 29 22:27:29 2011 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2F227346 for ; Mon, 29 Aug 2011 22:27:29 +0000 (UTC) Received: (qmail 52477 invoked by uid 500); 29 Aug 2011 22:27:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 52392 invoked by uid 500); 29 Aug 2011 22:27:27 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 52384 invoked by uid 99); 29 Aug 2011 22:27:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 22:27:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 22:27:22 +0000 Received: by gwj15 with SMTP id 15so7274757gwj.11 for ; Mon, 29 Aug 2011 15:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=runorg.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yZtpMKZHIZb6O5LU/iHlc5JOoAtpX2ba+zny26Aycfo=; b=UZhhSYEscQ/EW2PJfAq16c+XAo5RR+Jpd5dLKe7YcgKZaNBP5/48bDJ9FDOfQMc88B d/xoxqmzTPtBTWnBU3utg0NZIXqKe29+IjKKhdBttht1PRPtp6g/7o/JyoigMpergJYw 8LfY1iByzA6fu0hLeIdivfJTp3xXhiF1T4zKQ= MIME-Version: 1.0 Received: by 10.151.46.17 with SMTP id y17mr5678222ybj.312.1314656821080; Mon, 29 Aug 2011 15:27:01 -0700 (PDT) Received: by 10.151.46.16 with HTTP; Mon, 29 Aug 2011 15:27:01 -0700 (PDT) In-Reply-To: <4E5C09FF.7080401@gmail.com> References: <4E5C09FF.7080401@gmail.com> Date: Tue, 30 Aug 2011 00:27:01 +0200 Message-ID: Subject: Re: How do I add an external JS library to CouchDB? From: Victor Nicollet To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015174c3730d272e404abac64dc --0015174c3730d272e404abac64dc Content-Type: text/plain; charset=UTF-8 Hello Fred, Dygraph is intended to be run inside a browser, you cannot use it to graph data in a CouchDB list function. What you should do is have the list function output the data in a format that Dygraph can use in the browser. For instance, you could have your list function return CSV data, and provide Dygraph with the URL of the list. -- VN On 29 August 2011 23:51, Fred Smith wrote: > Hi, > > I am trying to add the dygraph js library to CouchDB, so I can graph > data in a list function. > I have downloaded the library, but I don't know where it should go. When > I try create a 'new Dygraph' I get: > error":"render_error","reason":"function raised error: (new > ReferenceError(\"Dygraph is not defined\ ...." > > I feel this is a dumb question, but how do I add an external JS library > to CouchDB? > > Thanks for the help, > Fred > > This is a sample from dygraph that won't work. > > > > > > >
> > > > > --0015174c3730d272e404abac64dc--