Skip to content

Commit 95a7505

Browse files
committed
Graph configuration - initial state
1 parent ae386ad commit 95a7505

File tree

7 files changed

+2010
-0
lines changed

7 files changed

+2010
-0
lines changed

web/CVExposures/graph.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Graph Presentation</title>
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<link rel="stylesheet" href="./js/lib/bootstrap.min.css">
10+
<script src="./js/lib/jquery.min.js"></script>
11+
<script src="./js/lib/popper.min.js"></script>
12+
<script src="./js/lib/bootstrap.min.js"></script>
13+
<script src="./js/lib/anychart-core.min.js"></script>
14+
<script src="./js/lib/anychart-cartesian.min.js"></script>
15+
</head>
16+
<body>
17+
<ul class="nav nav-tabs">
18+
<li role="presentation"><a href="index.html">All Vendor</a></li>
19+
<li role="presentation"><a href="products.html">Products</a></li>
20+
<li role="presentation"><a href="vulnerabilities.html">Vulnerabilities</a></li>
21+
<li role="presentation" class="active"><a href="graph.html">Graph</a></li>
22+
</ul>
23+
<div class="span12">
24+
<div class="container-fluid">
25+
<div class="row-fluid">
26+
<h2>Graph Container</h2>
27+
<div class="container">
28+
<div id="container-graph">
29+
</div>
30+
</div>
31+
</div>
32+
</div>
33+
<script src="js/classes/Utils.js"></script>
34+
<script src="js/controller/Graph.js"></script>
35+
</body>
36+
</html>

web/CVExposures/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
<script src="./js/lib/jquery.min.js"></script>
1010
<script src="./js/lib/popper.min.js"></script>
1111
<script src="./js/lib/bootstrap.min.js"></script>
12+
<script src="./js/lib/anychart-core.min.js"></script>
13+
<script src="./js/lib/anychart-cartesian.min.js"></script>
1214
</head>
1315

1416
<body>
1517
<ul class="nav nav-tabs">
1618
<li role="presentation" class="active"><a href="index.html">All Vendor</a></li>
1719
<li role="presentation"><a href="products.html">Products</a></li>
1820
<li role="presentation"><a href="vulnerabilities.html">Vulnerabilities</a></li>
21+
<li role="presentation"><a href="graph.html">Graph</a></li>
1922
</ul>
2023
<div class="span12">
2124
<div class="container-fluid">
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$(document).ready(function () {
2+
let productGraph = document.getElementById("container-graph");
3+
4+
//create the data
5+
let data = [
6+
{x: 'Amazon', y: 520},
7+
{x: 'DZone', y: 60},
8+
{x: 'Gizmodo', y: 30},
9+
{x: 'StackOverFlow', y: 80},
10+
{x: 'CNET', y: 50}
11+
];
12+
13+
let chart = anychart.column(); //create a chart
14+
chart.title('Graph Configuration');//create title for the chart
15+
chart.xAxis().title("Website");//create name for X axis
16+
chart.yAxis().title("Traffic Per Minute"); //create name for Y axis
17+
let series = chart.column(data); //create bar series and pass data
18+
chart.container(productGraph); //reference the container Id
19+
chart.draw(); //initiate drawing the bar chart
20+
21+
22+
});

web/CVExposures/js/lib/anychart-cartesian.min.js

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/CVExposures/js/lib/anychart-core.min.js

Lines changed: 1872 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/CVExposures/products.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
<script src="./js/lib/jquery.min.js"></script>
1111
<script src="./js/lib/popper.min.js"></script>
1212
<script src="./js/lib/bootstrap.min.js"></script>
13+
<script src="./js/lib/anychart-core.min.js"></script>
14+
<script src="./js/lib/anychart-cartesian.min.js"></script>
1315
</head>
1416
<body>
1517
<ul class="nav nav-tabs">
1618
<li role="presentation"><a href="index.html">All Vendor</a></li>
1719
<li role="presentation" class="active"><a href="products.html">Products</a></li>
1820
<li role="presentation"><a href="vulnerabilities.html">Vulnerabilities</a></li>
21+
<li role="presentation"><a href="graph.html">Graph</a></li>
1922
</ul>
2023
<div class="span12">
2124
<div class="container-fluid">

web/CVExposures/vulnerabilities.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
<script src="./js/lib/jquery.min.js"></script>
1111
<script src="./js/lib/popper.min.js"></script>
1212
<script src="./js/lib/bootstrap.min.js"></script>
13+
<script src="./js/lib/anychart-core.min.js"></script>
14+
<script src="./js/lib/anychart-cartesian.min.js"></script>
1315
</head>
1416
<body>
1517
<ul class="nav nav-tabs">
1618
<li role="presentation"><a href="index.html">All Vendor</a></li>
1719
<li role="presentation"><a href="products.html">Products</a></li>
1820
<li role="presentation" class="active"><a href="vulnerabilities.html">Vulnerabilities</a></li>
21+
<li role="presentation"><a href="graph.html">Graph</a></li>
1922
</ul>
2023
<div id="alert-target" class="alert alert-warning" style="display: none">
2124
<strong>Warning!</strong> Please indicate the vendor and the desired product.

0 commit comments

Comments
 (0)