Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help required in drawing a chart #1327

Closed
hasanAjsf opened this issue Oct 9, 2019 · 2 comments
Closed

Help required in drawing a chart #1327

hasanAjsf opened this issue Oct 9, 2019 · 2 comments

Comments

@hasanAjsf
Copy link

I've the below table of data:

2×7 DataFrame
│ Row │ Customer │ M0      │ M1       │ M2    │ M3    │ ...   │ Mn    │
│     │ String   │ Int64   │ Int64    │ Int64 │ Int64 │ Int64 │ Int64 │
├─────┼──────────┼─────────┼──────────┼───────┼───────┼───────┼───────┤
│ 1   │ x        │ 8       │ 7        │ 9     │ 2     │ .     │ 3     │
│ 2   │ y        │ 6       │ 3        │ 4     │ 2     │ .     │ 7     │

That is generted from the below:

using CSV, Query, DataFrames
df = CSV.read("deliveries.csv"; header=true, delim=',')

x = by(
    sdf -> mapcols(sum, sdf[:, 3:end]),
    df, 
    :Customer
)
println(x)

I'm trying to use using Gadfly, to draw the chart, so that each row (customer) is a series, so I'll be having a multiple time serials lines. but not sure how to go!

@Mattriks
Copy link
Member

Mattriks commented Oct 9, 2019

@tlnagy
Copy link
Member

tlnagy commented Oct 9, 2019

In general, the julia discourse is the best avenue for asking questions. Github issues are primarily for development, bug reports, design discussions, etc.

@tlnagy tlnagy closed this as completed Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants