DataGraph Community
  • Articles
  • Forums
  • News
  • Home

Community Forums

Forums/Technical Support/Support Desk/CSV import question

CSV import question

csvimport
  • 2 months, 2 weeks ago kenneth a. goldberg
    Participant

    I love the effortless csv-file drag-and-drop importing feature. It works great, but there’s one issue that could be improved. Suppose I drag in a CSV file, with fields, A, B, C. I set up nice plots, etc. Later, I re-generate the CSV file with new data, and the same fields A, B, C. What is the best way to import and seamlessly overwrite the original A, B, C, so the graphs simply update?

    Currently when I drag the new (replacement) CSV file into DataGraph, new A, B, C fields will be created right alongside the old ones. I end up temporarily naming the old fields A_old, B_old, C_old, importing the new file, and then manually switching the graph dependencies to the new A, B, C before deleting the _old data. Thank you.

    2 months, 2 weeks ago dgteam
    Moderator

    Try dragging and dropping the updated file directly on the existing group object.  If the column names are the same, DataGraph should do just what you are asking for!

    This was introduced a couple of versions ago, so if you are on an older version you may need to update.

    Let us know if that works for you.

     

    2 months, 2 weeks ago kenneth a. goldberg
    Participant

    Wonderful! Works like a charm. Thank you!

    2 months, 2 weeks ago jordan
    Participant

    If you end up with giant DG files like I do with lots of columns of data, sometimes you can miss drop the csv, so what I do is select the columns in the data table and drop the csv on to the data table and it works well with a big drop area.

    1 week ago mikiz
    Participant

    Hi there,

    I was looking for something similar for .xlsx files. Is there anything or the solution is to export xlsx to csv and follow the nice procedure?

    thanks

    6 days, 8 hours ago dgteam
    Moderator

    You can do the same for .xlsx files directly, no need to covert to csv.  I just ran a test to double check that it was working properly and had no problems.

    When you drag and drop an excel file icon onto the column definitions list, DataGraph creates an overall group that is named based on the file name.  If the file contains multiple sheets they will be  subgroups.

    For example, here I imported an excel file called “Populationtest”.  It had two tabs in the file, “Continents” and “Test”.  I had no problem modifying the data and reimporting by dropping on the “Populationtest” group object.  The data was updated properly.

    PopTest

     

    5 days, 21 hours ago mikiz
    Participant

    thank you so much.

    It is exactly what I need.

    michele

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Log In

Search Forums

Recent Topics

  • Multivariable Fit by donal botkin
    3 hours, 38 minutes ago
  • Axis Title by lucas erasmus
    6 hours ago
  • Text Wrap x-axis labels by jjreiter13
    1 day, 9 hours ago
  • Change line width in legend by xinbo wang
    2 days, 9 hours ago
  • dtable file won’t update. by florian marx
    4 days, 15 hours ago
  • Like us on Facebook
  • Connect @datagraphapp
  • Subscribe to YouTube

Our Software

  • DataGraph
  • DataTank
  • ImageTank – New!
  • Create your account
Log In
© Visual Data Tools, Inc.  •  Privacy