Skip to content

Commit

Permalink
added rickshaw-based graph on click in lightbox with events support, …
Browse files Browse the repository at this point in the history
…some bug fixes and UI enhancements
  • Loading branch information
ezbz committed Mar 28, 2013
1 parent 28d053c commit b06148f
Show file tree
Hide file tree
Showing 27 changed files with 1,153 additions and 63 deletions.
73 changes: 73 additions & 0 deletions css/detail.css
@@ -0,0 +1,73 @@
.rickshaw_graph .detail {
pointer-events: none;
position: absolute;
top: 0;
z-index: 2;
background: rgba(0, 0, 0, 0.1);
bottom: 0;
width: 1px;
transition: opacity 0.25s linear;
-moz-transition: opacity 0.25s linear;
-o-transition: opacity 0.25s linear;
-webkit-transition: opacity 0.25s linear;
}
.rickshaw_graph .detail.inactive {
opacity: 0;
}
.rickshaw_graph .detail .item.active {
opacity: 1;
}
.rickshaw_graph .detail .x_label {
font-family: Arial, sans-serif;
border-radius: 3px;
padding: 6px;
opacity: 0.5;
border: 1px solid #e0e0e0;
font-size: 12px;
position: absolute;
background: white;
white-space: nowrap;
}
.rickshaw_graph .detail .item {
position: absolute;
z-index: 2;
border-radius: 6px;
padding: 0.85em;
font-size: 12px;
font-family: Arial, sans-serif;
opacity: 0;
background: rgba(0, 0, 0, 0.4);
color: white;
border: 1px solid rgba(0, 0, 0, 0.4);
margin-left: 1em;
margin-top: -1em;
white-space: nowrap;
}
.rickshaw_graph .detail .item.active {
opacity: 1;
background: rgba(0, 0, 0, 0.8);
}
.rickshaw_graph .detail .item:before {
content: "\25c2";
position: absolute;
left: -0.5em;
color: rgba(0, 0, 0, 0.7);
width: 0;
}
.rickshaw_graph .detail .dot {
width: 4px;
height: 4px;
margin-left: -4px;
margin-top: -3px;
border-radius: 5px;
position: absolute;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
background: white;
border-width: 2px;
border-style: solid;
display: none;
background-clip: padding-box;
}
.rickshaw_graph .detail .dot.active {
display: block;
}
184 changes: 184 additions & 0 deletions css/extensions.css
@@ -0,0 +1,184 @@
div, span, p, td {
font-family: Arial, sans-serif;
}
#content {
width: 1200px;
}
#chart {
display: inline-block;
}
#chart path {
-webkit-transition: opacity 0.2s linear;
}
#slider {
margin-top: 10px;
}
#legend {
display: inline-block;
position: relative;
left: 8px;
}
#legend_container {
position: absolute;
right: 0;
bottom: 26px;
width: 0;
}
#chart_container {
position: relative;
display: inline-block;
}
#smoother {
margin: 0 0 10px 16px;
width: 100px;
}
.rickshaw_graph .detail {
left: -1000;
}
#chart {
border: 1px solid #f0f0f0;
}
#extendedChartOptionsForm {
padding: 0 20px 20px 0;
width: 240px;
display: inline-block;
vertical-align: top;
}
#extendedChartOptionsForm section {
color: #505050;
font-size: 12px;
}
#extendedChartOptionsForm section h6 {
margin: 0 0 1em 0;
font-size: 12px;
font-weight: normal;
}
.ui-slider-horizontal {
height: 1px !important;
border-color: #e0e0e0;
margin-bottom: 10px;
}
.ui-slider-handle {
border-color: #a0a0a0;
height: 9px !important;
width: 9px !important;
top: -5px !important;
border-radius: 6px;
outline: none;
cursor: pointer;
}
#legend {
background-color: white;
margin-left: 0;
padding: 0;
left: 0;
}
#legend .label {
color: #404040;
}
#legend .action {
color: black;
opacity: 0.5;
}
#legend ul {
padding: 0;
}
h1 {
font-family: Franklin Gothic Medium, UnDotum, Helvetica, Arial;
font-weight: normal;
font-size: 20px;
}
section {
border: none;
border-top: 1px solid #eaeaea;
padding: 15px 0;
}
#smoother {
margin: 5px 0 0 10px;
width: 90%;
}
label.disabled {
opacity: 0.4;
}
#renderer_form.toggler {
display: block;
margin: 0;
}
#renderer_form.toggler input[type=radio]:checked {
outline: 2px solid steelblue;
}
#renderer_form.toggler input[type=radio] {
-moz-appearance: button;
background: white;
margin: 0 7px;
width: 39px;
height: 26px;
position: absolute;
}
#renderer_form.toggler label {
display: inline-block;
padding: 0;
width: 39px;
padding-top: 27px;
text-align: center;
font-size: 10px;
color: #808080;
background-repeat: no-repeat;
position: relative;
margin: 0 7px;
cursor: pointer;
}
#interpolation_form,
#offset_form {
vertical-align: top;
display: inline-block;
width: 45%;
}
#interpolation_form label,
#offset_form label {
display: block;
}
label[for=area] {
background: url(../images/om_stack.png);
}
label[for=line] {
background: url(../images/om_lines.png);
}
label[for=bar] {
background: url(../images/om_bar.png);
}
label[for=scatter] {
background: url(../images/om_scatter.png);
}
#offset_form label,
#interpolation_form label {
background-repeat: no-repeat;
background-position: 2em center;
cursor: pointer;
cursor: hand;
}
#offset_form label span,
#interpolation_form label span {
padding-left: 52px;
}
label[for=stack] {
background-image: url(../images/offset_stack.png);
}
label[for=pct] {
background-image: url(../images/offset_pct.png);
}
label[for=stream] {
background-image: url(../images/offset_stream.png);
}
label[for=value] {
background-image: url(../images/offset_value.png);
}
label[for=cardinal] {
background-image: url(../images/interp_cardinal.png);
}
label[for=linear] {
background-image: url(../images/interp_linear.png);
}
label[for=step] {
background-image: url(../images/interp_step.png);
}

0 comments on commit b06148f

Please sign in to comment.