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

[FEATURE] data as arrays #4601

Closed
benmccann opened this issue Aug 2, 2017 · 3 comments
Closed

[FEATURE] data as arrays #4601

benmccann opened this issue Aug 2, 2017 · 3 comments

Comments

@benmccann
Copy link
Contributor

I got a request in the financial repo to support data as arrays. See chartjs/chartjs-chart-financial#7

Right now the syntax below is supported (docs)

data: [{
        x: 10,
        y: 20
    }, {
        x: 15,
        y: 10
    }]

The request would like the following syntax to be supported as well:

data: [
    [10, 20],
    [15, 10]
]
@ortonomy
Copy link

data: [{ x: 10, y: 20 }, { x: 15, y: 10 }]
This syntax doesn't actually work.

@atav32
Copy link

atav32 commented Jan 22, 2019

@ortonomy it doesn't? cause it's documented here, https://www.chartjs.org/docs/latest/charts/bar.html#data-structure

@benmccann
Copy link
Contributor Author

Closing as duplicate of #5988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants