-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Initial checkin of Metrics LineGraph Component #1098
Conversation
Can you add a screenshot? |
@@ -23,6 +23,7 @@ | |||
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900|Source+Code+Pro' rel='stylesheet' type='text/css'> | |||
<link rel="stylesheet" href="/css/app.css"> | |||
<link rel="stylesheet" href="/css/rest_explorer.css"> <!-- TODO(andybons): @import-like behavior --> | |||
<link rel="stylesheet" href="/css/graph.css"> <!-- TODO(andybons): @import-like behavior --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop the todo
LGTM |
e680ee4
to
2f4cf91
Compare
Commit creates the first version of a reusable LineGraph component, which graphs the results of cockroach time series query. It's a bit bare-bones in appearance, but is already reusable and should provide a good foundation for building our admin monitor pages.
2f4cf91
to
0aca9d1
Compare
Initial checkin of Metrics LineGraph Component
Matt, I think we shouldn't spend time doing our own graphs! Let's use: http://c3js.org/ |
There's also http://nvd3.org/ and http://fastly.github.io/epoch/ This one is pretty amazing: http://dc-js.github.io/dc.js/ Not bad for time series info: http://square.github.io/cubism/ |
Using a library is the plan, this checkin was mostly to 1. Get the data from our endpoint and 2. Make a mithril component that gets the data in a predictable way. The d3 stuff was just copy/pasted from one of d3's line chart demos. I spent some time to understand how the library worked at a basic level, but I was planning to go with the rickshaw library. |
Commit creates the first version of a reusable LineGraph component, which graphs
the results of cockroach time series query.
It's a bit bare-bones in appearance, but is already reusable and should provide
a good foundation for building our admin monitor pages.