Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Getting values from two separate CSVs for manipulating charts?

    Heya,

    Hopefully I can explain my problem clearly.

    Currently, there is a program (MATLAB) on our server that spits out two files based on user input. A CSV containing the X-values of a chart, and a CSV containing the Y-values of a chart.

    I am kind of stumped on how to combine the X and Y values together from these two CSVs files so I can then create a graph based on these values.

    Even just being pointed in the right direction of what to research would be great.


    Additional info: We originally had it set so that Matlab would create the charts itself, but it would choke on the higher end values because the graphing function it uses is quite poor.

    Thanks for any help!

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    What has this to do with Javascript?

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Jul 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, I forgot to mention the JavaScript. I was trying to do this through JavaScript so I could hook it up with Google's Chart API.

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,650
    Thanks
    80
    Thanked 4,636 Times in 4,598 Posts
    This CAN be done via JavaScript.

    If you are still interested, reply again in this thread.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •