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
0
votes
1 answer

What's the simplest way to code four rulers that move together with mouse in a d3 data visualization?

I am working on a visualization project using D3. I want to implement four rules like this. I want the rules to aid reading values like in the demo. As I have four columns of time series in my current visualization project, I wish to have four of…
CherryQu
  • 3,343
  • 9
  • 40
  • 65
0
votes
1 answer

Modify Cubism.js Graphite Title Text

Using cubism.js I'm snagging graphite data and creating multiple graphs on page. Looks amazing but I cannot figure out how to modify the default title/text of each graph. Very limited JS experience. This might be a cubusm.js, d3.js, or general…
bryanp
  • 1
  • 1
0
votes
1 answer

Making Cubism.js work with Rails app

I need to implement a time series graph for my rails 4 app. Its not streaming data but I need the look and feel of this but without the animation. I started looking into the documentation and it seems kinda sparse (or Im an idiot :() But I need some…
banditKing
  • 9,405
  • 28
  • 100
  • 157
0
votes
1 answer

How to delete events after the day for a Cube.js instance

I am writing a Cube.js (Website) data source, so that I can visualize the events in Cubism.js. However, I only want to retain a certain number of events and discard the rest (like a circular buffer). I run my system between 9am to 5pm and can afford…
smhx
  • 2,246
  • 18
  • 22
0
votes
1 answer

more minimaler cubism.js horizon chart from json example

Following up on a previous question... I've got my minimal horizon chart example much more minimaler than before ( minimal cubism.js horizon chart example (TypeError: callback is not a function) )
Martin Moops
  • 175
  • 3
  • 14
0
votes
0 answers

Cubism.js getting correct metrics but not drawing horizon chart

I'm plotting about 15 named metrics on cubism.js. I'm seeing the stat values being return as metrics. Also, if I scroll over the visualization, the ruler is showing me the proper values. However, its just not drawing the graph. When I inspect the…
capkutay
  • 183
  • 2
  • 11
0
votes
1 answer

D3: Cubism.js: Hiding Labels from Horizon Charts

Would anyone know how to hide the value label from a horizon chart? The code is simply d3.select("#graphs").selectAll(".horizon") .data(data) .enter().insert("div", ".bottom") .attr("class", "horizon") …
user1781626
0
votes
0 answers

Animate the rule in Cubism

I am using cubism to display some data. Is it possible to animate the rule which appears when we hover the mouse over the graph. I want to animate it in such a way so that it automatically displays data on each step from left to right then right to…
Dan
  • 801
  • 2
  • 14
  • 29
0
votes
1 answer

Cubism.JS threshold scale doesn't work

I'm using cubism with data coming from graphite The data's domain is continuos [0,100] and the range is continuos [0,100] but anything below 100 is nonsense so I modified the scale and used a threshold scale so that: values < 100 will be 0 and 100…
user1781626
0
votes
1 answer

Cubism - event expression returns only timestamp values

I'm storing data in Cube. Here's a sample expression: Some({ "_id" : { "$oid" : "51ec6f8c44ae76018fac7efd"} , "t" : { "$date" : "2013-07-21T23:34:21.000Z"} , "d" : { "urlbase" : "egauge5315.egaug.es" ,"Total Usage" : 3812.0}}) I started the Cube…
Dasharath
  • 549
  • 4
  • 15
0
votes
1 answer

How do I get latest value for Cubism Metrics

I'm trying to log the latest data from a metric (actually in reality to update a div) but the dummy code below only ever logs out "undefined". var context, cube, metric; context = cubism.context().step("1e4").size(1080); cube =…
Col Wilson
  • 889
  • 10
  • 16
0
votes
1 answer

Average measurement over a few devices

I have a few devices that emit time series data: [deviceID],[time],[value] I am using graphite to keep track of this data but the question applies to other databases as well. I have defined my data retention/precision to be 5 seconds - so each…
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
0
votes
1 answer

Cube/Mongo: Custom metric resolutions (step)

According the documentation square/cube supports 5 metric resolutions (step), the lowest is 10 seconds. I understand this is required in order to allow pyramidal reducers. Will cube work correctly (though less efficiently) with any arbitrary step…
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
0
votes
1 answer

Cubism rendering wrongly

I am trying to visualize some data using cubism every 10 mins. I am facing problems while cubism displays data. The metric definition is all fine as i saw while debugging but it visualizes data at the wrong time. Here is where the push into values…
Dan
  • 801
  • 2
  • 14
  • 29
0
votes
0 answers

Matching date in Millis in Javascript

I am trying to fetch data from a db every 10 mins where the data is inserted with a timestamp. Now using this timestamp i want to visualize another field. The visualization has a step size of 10 mins. So it checks from the start till the stop time…
Dan
  • 801
  • 2
  • 14
  • 29