Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8621511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:50:16+00:00 2026-06-12T06:50:16+00:00

I am running into a problem with gRaphael javascript line chart library. I am

  • 0

I am running into a problem with gRaphael javascript line chart library.

I am building a line chart from a CSV file that has five columns (# of minutes, time, waiting time, in treatment, closed, in location).

Previously I have been able to draw the full chart without animation. It correctly had all four lines etc.

Now my code fails on the animation function. Here is the error:

Uncaught TypeError: Object # has no method ‘animate’

I assume that jQuery is somehow messing with animate function, and trying to take the reins of it.

        function animateChart(newX, newW, newInT, newC, newInL){
            var chart2 = paper.linechart(
                20, 20, // padding
                newX.length, 400, // dimensions
                newX, [newW, newInT, newC, newInL] // values
            );

            for (i = 0; i < chart.lines.length; i++){
                elem = chart.lines[i][0];
                elem.animate({ path: chart2.lines[i][0].getAttribute("d") }, 200);
            }

            chart2.remove();
        }

Full code:

http://pastebin.com/YmvkrmQ3

I have the following libraries loaded, in order:

  1. raphael-min.js
  2. g.raphael-min.js
  3. g.line.min.js
  4. jquery.js

Thanks in advance for any help.

UPDATE:
The problem is in the animate method. Even though I am calling the method on a path element, I get the error. I still don’t know why Raphael doesn’t recognize the path element as path element.

I tried disabling jQuery (and replacing it’s ajax function with vanilla javascript), but it didn’t help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:50:17+00:00Added an answer on June 12, 2026 at 6:50 am

    You probably have an SVG path element and not a Raphael path element. It’s probably the [0] at the end of elem = chart.lines[i][0];.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running into a problem inserting rows from a file with 13,000 rows into
I'm running into a problem that has me stumped and I was hoping someone
I've been running into a problem where using objects from two datacontexts that are
I'm running into a problem when trying to select records from my 2005 MS-SQL
I am running into a problem that just doesn't seem right. I've got a
I'm running into this problem when trying to call a SOAP Web Service from
My company is running into a problem with a web service that is written
i'm running into a problem in my maven build recently, that it downloads a
I am running into some problem, I created a type that I am using
I'm running into a problem starting other activities from mine. I know this must

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.