using data from a JSON store

Hello,

I downloaded this plugin and it is exactly what I was looking for. But I am having a problem using the data in the store to have the graph draw. If I force the data it works fine so I know it is something with reading the data from the store.

The data in the store is loaded from a JSON. I have tried different formats for the data. Here are snippets what I have tried:

async problem

I'm having the same problem. As soon as you load the data via an asynchronous call (e.g. jsonstore) the graphs don't display. Must be a timing issue with the sparkRefresh. Anyone have any ideas how to fix this?

I would love to get this to work within an extjs gridpanel that's loaded via jsonstore.

I'm having trouble using the sparklines in my grid. The grid is displayed in a tab. The store is loaded via PHP from a MySQL-Database. I tried several things to get the sparklines displayed. They should show a little history of some values. The format of the field in the store looks like this

Please follow my steps above and it will work. You have to use the store only. Here is code copied from my older response, which gets the store and updates it with new values. You do it right, but there's a bug, which you have to fix. I'm now working on Ext Js 4 conversion of this plugin...

Could you please explain to me where to fill the code in, you posted? I have some experience with ExtJS but not enough to find that out on my own. Maybe a little example relevant to my problem. The store gets its data from a PHP-script, grid in tab-panel, columns defined in a columnmodel. It would be great ...

It does not matter if you use PHP or any other server-side language. ExtJs is a client-side language. You don't pass variables from PHP to ExtJs. If you want to pass the variable like this from server to the client, you use JSON RPC (AJAX), right?? You can print the initial values in PHP in the source, but you can't update it then and that's what you're asking...

So you create your GridPanel with sparkline and define a store like this: