Skip to content

Commit

Permalink
Merge pull request #72 from myslak71/develop
Browse files Browse the repository at this point in the history
refactor
  • Loading branch information
myslak71 committed Feb 23, 2019
2 parents c16e9e6 + 97fe04e commit 12e1a97
Show file tree
Hide file tree
Showing 7 changed files with 3,506 additions and 302 deletions.
12 changes: 1 addition & 11 deletions chart_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@

</style>
<body>
<script src="src/d3.v3.min.js"></script>
<script>
<script src="https://d3js.org/d3.v5.js"></script><script>

var width = 960,
size = 230,
padding = 20;

var x = d3.scale.linear()
.range([padding / 2, size - padding / 2]);

Expand All @@ -72,14 +70,6 @@
var color = d3.scale.category10();

d3.csv("test.csv", function(error, data) {
// data = [{"R": "74", "G": "85", "B": "123", "result": "skin"},
// {"R": "74", "G": "76", "B": "30", "result": "non-skin"},
// {"R": "30", "G": "27", "B": "23", "result": "non-skin"},
// {"R": "121", "G": "121", "B": "121", "result": "non-skin"},
// {"R": "181", "G": "178", "B": "133", "result": "non-skin"},
// {"R": "121", "G": "151", "B": "102", "result": "non-skin"},
// {"R": "103", "G": "141", "B": "199", "result": "skin"}]
// var centroids = [{"R": "74", "G": "85", "B": "123", "result": "skin"}]
console.log(data[0])
if (error) throw error;

Expand Down
7 changes: 7 additions & 0 deletions new_chart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<body>
<script src="https://d3js.org/d3.v5.min.js"></script>

50 changes: 6 additions & 44 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@vx/mock-data": "0.0.182",
"antd": "^3.7.3",
"axios": "^0.18.0",
"d3": "^5.7.0",
"d3": "^3.5.17",
"d3-latest": "^5.0.4",
"d3-svg-legend": "^2.25.6",
"mathjs": "^5.4.2",
Expand Down
Loading

0 comments on commit 12e1a97

Please sign in to comment.