Skip to content

Commit

Permalink
Add c3.js charts to dashboard #99
Browse files Browse the repository at this point in the history
* Add c3.js library with corresponding license text info
* Add charts for Programming Languages, License Categories, License
  Keys, and Package Types
* Update copyright in aboutcode.ABOUT file. Update license file name.

Signed-off-by: Jillian Daguil <jdaguil@nexb.com>
  • Loading branch information
jdaguil committed Oct 10, 2017
1 parent 19a3b58 commit a143f0e
Show file tree
Hide file tree
Showing 14 changed files with 9,699 additions and 40 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions aboutcode.ABOUT
Expand Up @@ -3,8 +3,8 @@ name: AboutCode Manager
version: 2.0.0-rc4
license: apache-2.0
owner: nexB Inc.
copyright: Copyright (c) 2016 nexB Inc.
copyright: Copyright (c) 2017 nexB Inc.

notice_file: NOTICE
license_file: apache-2.0.LICENSE
license_file: LICENSE
notes: AboutCode Manager is licensed under Apache 2.0. Some example code from electron-quickstart is used and is licensed under CC0-1.0.
12 changes: 12 additions & 0 deletions assets/css/c3.ABOUT
@@ -0,0 +1,12 @@
about_resource: c3.min.css
download_url: https://codeload.github.com/c3js/c3/tar.gz/v0.4.18
version: 0.4.18

name: C3.js
description: c3 is a D3-based reusable chart library that enables deeper integration of charts into web applications.
home_url: http://c3js.org
owner: Masayuki Tanaka
contact: masayuki0812@mac.com
dje_license: mit
license_text_file: c3.LICENSE
copyright: Copyright (c) 2013 Masayuki Tanaka
20 changes: 20 additions & 0 deletions assets/css/c3.LICENSE
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2013 Masayuki Tanaka

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
174 changes: 174 additions & 0 deletions assets/css/c3.css
@@ -0,0 +1,174 @@
/*-- Chart --*/
.c3 svg {
font: 10px sans-serif;
-webkit-tap-highlight-color: transparent; }

.c3 path, .c3 line {
fill: none;
stroke: #000; }

.c3 text {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none; }

.c3-legend-item-tile,
.c3-xgrid-focus,
.c3-ygrid,
.c3-event-rect,
.c3-bars path {
shape-rendering: crispEdges; }

.c3-chart-arc path {
stroke: #fff; }

.c3-chart-arc text {
fill: #fff;
font-size: 13px; }

/*-- Axis --*/
/*-- Grid --*/
.c3-grid line {
stroke: #aaa; }

.c3-grid text {
fill: #aaa; }

.c3-xgrid, .c3-ygrid {
stroke-dasharray: 3 3; }

/*-- Text on Chart --*/
.c3-text.c3-empty {
fill: #808080;
font-size: 2em; }

/*-- Line --*/
.c3-line {
stroke-width: 1px; }

/*-- Point --*/
.c3-circle._expanded_ {
stroke-width: 1px;
stroke: white; }

.c3-selected-circle {
fill: white;
stroke-width: 2px; }

/*-- Bar --*/
.c3-bar {
stroke-width: 0; }

.c3-bar._expanded_ {
fill-opacity: 1;
fill-opacity: 0.75; }

/*-- Focus --*/
.c3-target.c3-focused {
opacity: 1; }

.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {
stroke-width: 2px; }

.c3-target.c3-defocused {
opacity: 0.3 !important; }

/*-- Region --*/
.c3-region {
fill: steelblue;
fill-opacity: .1; }

/*-- Brush --*/
.c3-brush .extent {
fill-opacity: .1; }

/*-- Select - Drag --*/
/*-- Legend --*/
.c3-legend-item {
font-size: 12px; }

.c3-legend-item-hidden {
opacity: 0.15; }

.c3-legend-background {
opacity: 0.75;
fill: white;
stroke: lightgray;
stroke-width: 1; }

/*-- Title --*/
.c3-title {
font: 14px sans-serif; }

/*-- Tooltip --*/
.c3-tooltip-container {
z-index: 10; }

.c3-tooltip {
border-collapse: collapse;
border-spacing: 0;
background-color: #fff;
empty-cells: show;
-webkit-box-shadow: 7px 7px 12px -9px #777777;
-moz-box-shadow: 7px 7px 12px -9px #777777;
box-shadow: 7px 7px 12px -9px #777777;
opacity: 0.9; }

.c3-tooltip tr {
border: 1px solid #CCC; }

.c3-tooltip th {
background-color: #aaa;
font-size: 14px;
padding: 2px 5px;
text-align: left;
color: #FFF; }

.c3-tooltip td {
font-size: 13px;
padding: 3px 6px;
background-color: #fff;
border-left: 1px dotted #999; }

.c3-tooltip td > span {
display: inline-block;
width: 10px;
height: 10px;
margin-right: 6px; }

.c3-tooltip td.value {
text-align: right; }

/*-- Area --*/
.c3-area {
stroke-width: 0;
opacity: 0.2; }

/*-- Arc --*/
.c3-chart-arcs-title {
dominant-baseline: middle;
font-size: 1.3em; }

.c3-chart-arcs .c3-chart-arcs-background {
fill: #e0e0e0;
stroke: none; }

.c3-chart-arcs .c3-chart-arcs-gauge-unit {
fill: #000;
font-size: 16px; }

.c3-chart-arcs .c3-chart-arcs-gauge-max {
fill: #777; }

.c3-chart-arcs .c3-chart-arcs-gauge-min {
fill: #777; }

.c3-chart-arc .c3-gauge-value {
fill: #000;
/* font-size: 28px !important;*/ }

.c3-chart-arc.c3-target g path {
opacity: 1; }

.c3-chart-arc.c3-target.c3-focused g path {
opacity: 1; }
1 change: 1 addition & 0 deletions assets/css/c3.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions assets/css/main.css
Expand Up @@ -441,13 +441,17 @@ div.dataTables_scrollHead th:first-child {
.card .title {
margin: 0;
color: #3D7AFC;
font-weight: 400;
font-weight: 600;
padding-bottom: 10px;
}

.card .category {
font-size: 16px;
font-size: 17px;
font-weight: 400;
color: #9A9A9A;
margin-bottom: 0px;
}

.c3 svg {
font-family: 'Lato', Helvetica, san-serif;
}

0 comments on commit a143f0e

Please sign in to comment.