mirror of
https://github.com/bendtherules/opencharts.git
synced 2026-08-18 13:52:49 +00:00
Line + Area chart done, directory re-arranged
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
* {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.chart {
|
||||
width: 50vw;
|
||||
height: 50vh;
|
||||
margin: 25vh 25vw;
|
||||
background-color: #90ee90;
|
||||
position: relative;
|
||||
}
|
||||
.chart-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.axis {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
.axis .axis-x,
|
||||
.axis .axis-y {
|
||||
position: absolute;
|
||||
background-color: #d3d3d3;
|
||||
}
|
||||
.axis .axis-y {
|
||||
width: 1em;
|
||||
height: 100%;
|
||||
}
|
||||
.axis .axis-y .axis-line {
|
||||
left: 50%;
|
||||
}
|
||||
.axis .axis-y .axis-line .axis-line-container {
|
||||
margin: 0 -0.125em;
|
||||
height: 100%;
|
||||
width: 0.25em;
|
||||
}
|
||||
.axis .axis-x {
|
||||
height: 1em;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
}
|
||||
.axis .axis-x .axis-line {
|
||||
top: 50%;
|
||||
}
|
||||
.axis .axis-x .axis-line .axis-line-container {
|
||||
margin: -0.125em 0;
|
||||
height: 0.25em;
|
||||
width: 100%;
|
||||
}
|
||||
.axis-line {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
}
|
||||
.axis-line-container {
|
||||
background-color: #000;
|
||||
}
|
||||
.scene {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding-left: 1em;
|
||||
padding-bottom: 1em;
|
||||
}
|
||||
.scene .scene-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #add8e6;
|
||||
padding-top: 0.02px;
|
||||
}
|
||||
.bar {
|
||||
height: 12.5%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
.bar .bar-inner {
|
||||
height: 100%;
|
||||
background-color: #ff0;
|
||||
}
|
||||
.bar.part-1 {
|
||||
top: 6.25%;
|
||||
right: 12.5% 12.5% 1;
|
||||
}
|
||||
.bar.part-2 {
|
||||
top: 31.25%;
|
||||
right: 12.5% 12.5% 2;
|
||||
}
|
||||
.bar.part-3 {
|
||||
top: 56.25%;
|
||||
right: 12.5% 12.5% 3;
|
||||
}
|
||||
.bar.part-4 {
|
||||
top: 81.25%;
|
||||
right: 12.5% 12.5% 4;
|
||||
}
|
||||
.part-1 .bar-inner {
|
||||
width: 40%;
|
||||
}
|
||||
.part-2 .bar-inner {
|
||||
width: 65%;
|
||||
}
|
||||
.part-3 .bar-inner {
|
||||
width: 90%;
|
||||
}
|
||||
.part-4 .bar-inner {
|
||||
width: 75%;
|
||||
}
|
||||
.clearfix {
|
||||
clear: both;
|
||||
}
|
||||
Reference in New Issue
Block a user