argon-dashboard icon indicating copy to clipboard operation
argon-dashboard copied to clipboard

how to update chart value

Open KBiswas98 opened this issue 5 years ago • 9 comments

KBiswas98 avatar Jan 11 '20 12:01 KBiswas98

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

rarestoma avatar Jan 14 '20 08:01 rarestoma

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

KBiswas98 avatar Jan 14 '20 13:01 KBiswas98

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

rarestoma avatar Jan 15 '20 08:01 rarestoma

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

dtellogaete avatar Jan 22 '20 00:01 dtellogaete

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

katesaikishore avatar Apr 24 '20 12:04 katesaikishore

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?

Cheng-CM avatar May 03 '20 14:05 Cheng-CM

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

katesaikishore avatar May 04 '20 03:05 katesaikishore

@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.

Cheng-CM avatar May 04 '20 05:05 Cheng-CM

Cool, It's awesome. Thanks.

katesaikishore avatar May 04 '20 09:05 katesaikishore