Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rickshaw.Graph.Axis.Time Resolution #352

Open
BrkCoder opened this issue Nov 17, 2013 · 1 comment
Open

Rickshaw.Graph.Axis.Time Resolution #352

BrkCoder opened this issue Nov 17, 2013 · 1 comment

Comments

@BrkCoder
Copy link

I am trying to write a real time graph based on dummy data for now.
My problem is that the resolution for my graph is to big for me.
my timeunits is hour but I get a range of of 16 hours which I don't need to see right now in the same graph.
for example the graph strat in 00:00 and end in 16:00.
I would like to have a resolution like that:
00:00 00:05 00:10 00:15 and so on....(update every five minute).
I tried to work with timeunit=minute but I still get the same range which is now divided to a more points.
This is my code for x-axis :
var time = new Rickshaw.Fixtures.Time();
var hours = time.unit('hour');
var xAxis = new Rickshaw.Graph.Axis.Time( {
graph: graph,
ticksTreatment: ticksTreatment,
timeUnit: hours,
timeFixture: new Rickshaw.Fixtures.Time()
} );
and this is my photo of the system:
image

@BrkCoder
Copy link
Author

please help, how to I get the same effect like in cubism.js where I can see data in units of minutes but without divided my long range of 17 hours into minutes but rather divide a range of (current hour -next hour)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant