Questions tagged [cubism.js]

Cubism.js is a D3 plugin for visualizing time series.

Cubism is a plugin that constructs realtime dashboards, pulling data from Graphite, Cube and other sources.

It is maintained by Square and available under the Apache License.

90 questions
1
vote
0 answers

Cubism call back has wrong values

I'm plotting some metrics that I have stored in a backbone collection that is being updated every second. I'm not seeing the correct metrics being plotted on cubism. For each metric, I only get the one metric plotted (with an incorrect) value. I…
capkutay
  • 183
  • 2
  • 11
1
vote
1 answer

Cubism own datasource issues

TLDR: Why is there a pause before the page updates, resulting in a small white gap in the graph? http://jsbin.com/ABoLaya/1 I recently discovered cubism and was blown away. So I decided my raspberry pi could use some monitoring. I am also new to…
imbaer
  • 554
  • 3
  • 21
1
vote
0 answers

What's the correct way to load a new set of metrics/horizons?

What's the correct way to load a new set of metrics/horizons? i.e. if a user were allowed to choose from a list of metrics in a multi-select. Right now, I have a working implementation that simply runs d3.select('#graph1').html(''); and reruns the…
Martin
  • 770
  • 6
  • 22
1
vote
2 answers

minimal cubism.js horizon chart example (TypeError: callback is not a function)

I'm having a devil of a time going from any code found on the d3 and cubism API pages to altering things to work with what I need them to do... I'm trying to follow the steps for a Horizon graph as listed here…
Martin Moops
  • 175
  • 3
  • 14
1
vote
1 answer

add a drag behaviour on a cubism graph

cubism.js is probably meant for realtime vizualizations, not really for interaction, yet I was trying to be able to visualize a large dataset (for example >> 1000points) on the page, without increasing the step or chunking the data Example:…
user1125394
1
vote
1 answer

Is d3.text faster than d3.json?

I'm just wondering if d3.text is faster than d3.json? The reason behind my question is that I'm reading the source code behind cubism.js and I'm just curious to know if it's done with d3.text because it's faster?
user1781626
1
vote
0 answers

How to use context.cube and request in Cubism.js?

I am trying to learn Cubism(but could not find any tutorials) . I have few basic questions: How do I use context.cube locally in Cubism. I am running Cube's evaluator locally on port 1081. I tried using "localhost" , but no luck. How exactly do I…
Dasharath
  • 549
  • 4
  • 15
1
vote
1 answer

scale incoming metric data for representation in cubism

i have a data set being returned as a cubism's metric such that it has values 0 = very bad 1 = okay 2 = bad i can write a d3.scale such that var ord = d3.scale.ordinal( [ 0, 1, 2, null ] ).range( [ -2, 2, -1, null ] ); for( var i=0; i<=2; i++ ) { …
yee379
  • 6,498
  • 10
  • 56
  • 101
1
vote
1 answer

What does serverDelay in cubism.js do?

In the introductory example at http://bost.ocks.org/mike/cubism/intro/demo-stocks.html, the line to create the context is: var context = cubism.context() .serverDelay(new Date(2012, 4, 2) - Date.now()) …
user2286078
1
vote
1 answer

simple cubism.js with json datasource

I'm looking for a way to use json datasource in cubism.js here is my code: