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

how to update chart value #36

Open
KBiswas98 opened this issue Jan 11, 2020 · 9 comments
Open

how to update chart value #36

KBiswas98 opened this issue Jan 11, 2020 · 9 comments

Comments

@KBiswas98
Copy link

No description provided.

@rarestoma
Copy link
Contributor

Hi @KBiswas98,

Thank you for working with our products.

Can you please give me more details about what do you want to change?

Thank you,
Rares

@KBiswas98
Copy link
Author

I want to update the value of the line chart, but i can't find the way to update the value..

@rarestoma
Copy link
Contributor

Hi @KBiswas98,

You have to change the values in the argon-dashboard.js code. For example, for the "#chart-sales" visible in the index page, the values are: data: [0, 200, 10, 30, 15, 40, 20, 60, 60].

You have to update these values with the ones you need.

I hope it helps.

All the best,
Rares

@dtellogaete
Copy link

I have the same question, I cannot change the values of data

@katesaikishore
Copy link

It's in argon.js file line number 922 and 848. Where for BootStrap Argon Dashboard.

@Cheng-CM
Copy link

Cheng-CM commented May 3, 2020

I am using the laravel version, is there a good way (or good practices) to import data from blade front-end PHP's data to chart?

@katesaikishore
Copy link

No, @Cheng-CM I am trying to do the same.

@Cheng-CM
Copy link

Cheng-CM commented May 4, 2020

@katesaikishore I found a solution from https://www.itsolutionstuff.com/post/how-to-add-charts-in-laravel-5-using-chart-js-example.html using window.onload in blade.php files.
It does not use the code in argon.js though, i just make a new chart instead.
Still looking for a better way to do this.

@katesaikishore
Copy link

Cool, It's awesome. Thanks.

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

5 participants