Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we use custom JSON Data on Cubism?

I saw the cubism graphs and they are simply amazing. I have a big JSON file with 1000 entries that have a timestamp and a value (integer). Can Cubism graph those or not?! I can't seem to find documentation on this...

like image 859
abisson Avatar asked May 25 '12 01:05

abisson


1 Answers

Cubism is generally intended for realtime data, but you can implement a metric that simply returns static values from a JSON file. Typically you do this by using context.metric. See the stocks demo in the Cubism intro talk for an example.

like image 74
mbostock Avatar answered Nov 07 '22 23:11

mbostock