DataGraph Community
  • Articles
  • Forums
  • News
  • Home

Community Forums

Forums/Technical Support/Getting Started/Pivot without graphing

Pivot without graphing

  • 1 year ago arnaudk
    Participant

    Hello,

    I’m new to DataGraph and I’m using a csv with the following format :

    Date                  Category Number
    2020-01-01     A              20
    2020-01-02    A              30
    2020-01-01    B              40
    2020-01-02   B               50

    Pivoting on a graph takes me what I expect to, after exporting the pivoted data to new columns, plot Serie A and Serie B with “Plots”. But I don’t use the intermediate graph (plotted by the Pivot Command)
    Date                  A     B
    2020-01-01     20   40
    2020-01-02    30   50

    Is there a way to do the same but without ploting the “intermediate” graph ? I just would like to pivot the datas and use them to plot my own graph.
    I tried the Plot instruction at the left, which adds me a new column, but this one doesn’t accept non-numbers values (I would like to use my categories)

    Thank you in advance.

    Arnaud

    1 year ago dgteam
    Moderator

    You can use a Pivot command to process the data in this way but then click the Exclude button on the right side of the command.  This way the command is completely ignored, whereas Hide will not show the graph but the axis range will be affected.

    Is this what you mean?

    This example below is using the a date axis, but you mentioned you want to use your own categories.  Maybe you could clarify what you want on the x/y axes.

    PIVOT

    1 year ago arnaudk
    Participant

    Thank you very much for your answer.

    In fact you totally get the point, I proceed the way you showed in the example you posted.
    The only difference with my real life :
    – I have ~2 years of dates multiplied by ~100 categories = more than 50.000 bins, and DataGraph show me an orange dot on the Pivot section, telling me that there are too many bins. The extracted data seems to be consistent, still.
    – I click on hide in the Pivot command and the graph is entirely plotted by the Plots command, but with correct axes

    In my real file, categories are regions and numbers are hospitalisations or deaths (Covid data), and I keep in the data I extract from my Pivot the “day” granularity (no groups by months or weeks)

    As the Pivot command graph is for me “useless”, I was thinking of generating the Pivot table without the Pivot command, but perhaps with Plot Action before graphing with Plots Command. In this case, I choose the “bin” action (pdf manual P.28, screenshot below), but my categories are in red as it seems I can only select numbers and not text.

    20220123-19h33m12s-GukCqDiS

    Arnaud

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

You must be logged in to reply to this topic.

How to join the community

  • Create your account
  • Edit your Profile
  • Insert images into the forum
  • Forum Notifications
Log In

Search Forums

Recent Topics

  • Multiple mask criteria on columns (or equivalent) by richard brown
    18 hours, 13 minutes ago
  • Panning tool by mr j shawash
    1 day, 15 hours ago
  • Rotating Command Labels by matheus esteves
    2 weeks ago
  • turn off autosave? by _leemiller
    2 weeks, 2 days ago
  • Problem with decimal separator on MacOS in France by ckress
    5 days, 19 hours ago

Our Software

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