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

  • Home
  • SEARCH
  • 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 8344853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:30:06+00:00 2026-06-09T06:30:06+00:00

I’m trying to feed a Scatter plot written in JavaScript with two dimensions with

  • 0

I’m trying to feed a Scatter plot written in JavaScript with two dimensions with decimal values. I’m taking these values from a MySQL db and I’m feeding the graph with them using Php. My db has almost 150000 entries, which corresponds to 150000 pairs of decimal inputs in the graph. After running my code, the graph is not visualised. I got the output from my Php code and pasted it into the JavaScript code, it shows something is wrong, but it doesn’t say what (I’m using Dreamweaver). If I use only 3 pairs of decimal inputs for the graph, everything is visualised normally.

My question is: is there a limit on how many values can you visualise in Scatter plots?

I’m now using the scatter plot from the Highcharts library. I also tried the Scatter plot from the Google Chart Tools API, but I get the same outcomes.

My code, feeding the graph in JS using Php is:

data: [<?php 
                for($j=0;$j<$i1;$j++)
                {
                    if($females[$j]['Hour']=="00")
                        $females[$j]['Hour']="0";
                    echo "[".$females[$j]['Hour'].".".$females[$j]['Min'].",".$females[$j]['Sent']."]";
                    if(($j+1)!=$i1)
                    {
                        echo ",";
                    }
                }

            ?>]}, 

What works is:

 data: [[0.3,-0.1623],[0.4,-0.1840],[0.5,-0.1555]]},

Thank you.

  • 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-09T06:30:07+00:00Added an answer on June 9, 2026 at 6:30 am

    Is there a limit on how many values can you visualise in Scatter plots?

    Sure: The size of the plot. Once you have filled the full area, there is no need to draw further points. Just reduce the amoutn of data to draw, e.g. by outputting only every fifth value. You can also use some algorithms to compute the average values and only display them.

    Next, there is the dynamic drawing. Especially on older clients it will last much longer to draw all points. Drawing the chart serverside and shipping an image to the client should work better, especially if the chart does not need to be interactive.

    Also, you would carry the whole data set to the client. There are bandwith limitations. How many GigaBytes does your file count?

    Conclusion: 150000 points is far too much.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,

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.