Skip to content

Commit

Permalink
Merge pull request #39 from wever-ko/feat-CircleGauge
Browse files Browse the repository at this point in the history
fix:error & docs: change svg images
  • Loading branch information
yeonjuan authored Nov 23, 2018
2 parents 310ee42 + e7f579f commit d80f1d5
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 17 deletions.
Empty file modified CircleGauge/README.md
100644 → 100755
Empty file.
Empty file modified CircleGauge/circleGauge.js
100644 → 100755
Empty file.
Empty file modified CircleGauge/circleGauge.min.js
100644 → 100755
Empty file.
Empty file modified CircleGauge/docs/exgif.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CircleGauge/docs/eximg.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion CircleGauge/docs/exsvg.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CircleGauge/examples/require.js
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions CircleGauge/examples/requirejs.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script type="text/javascript" src = "require.js"></script>
</head>
<body>
<div id = 'test'>
<div id = 'test' style="width: 200px; height: 200px;">
</div>
</body>
<script type="text/javascript">
Expand All @@ -25,7 +25,6 @@
emptyLineWidth: 25,
textColor : '#07472C'
}).create(target);

});
</script>
</html>
22 changes: 8 additions & 14 deletions CircleGauge/index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,20 @@
var target = document.getElementById('test');

var circularBar = new CircleGauge({
lineWidth : 10,
value: 70,
lineWidth : 5,
value: 65,
radius : 25,
lineColor: '#5ca284',
emptyLineColor: '#afdcc9',
lineColor: '#e65348',
emptyLineColor: '#eaeaea',
showText: true,
emptyLineWidth: 10,
textColor : '#07472C',
emptyLineWidth: 2,
textColor : '#878787',
textSize:12,
text: function(value) {
return (parseFloat(value) |0 ) + "%";
}
}).create(target);

//circularBar.text("" + Math.round(circularBar.val()) + "%");

// circularBar.step = function ()
// {
// circularBar.text("" + Math.round(this.val()) + "%");
// }

// Value
var pvalue = document.getElementById('value');
pvalue.value = circularBar.val();
Expand All @@ -102,7 +96,7 @@
valueA.innerHTML = circularBar.val();

pvalue.addEventListener('input', function() {
circularBar.val(palseFloat(pvalue.value));
circularBar.val(parseFloat(pvalue.value));
valueA.innerHTML = pvalue.value;
});

Expand Down

0 comments on commit d80f1d5

Please sign in to comment.