Skip to content

markarios/uid3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##uid3

ui.slider([selector])

A simple slider built in d3js. You call the function in javascript by writing ui(selector).slider(); where your selector has the mandatory CSS attributes width and height.

.color([value])

Changes the color of the slider. The default color is white

Slider Example

http://bl.ocks.org/markarios/be2d52c4c50a76d65278

GitHub Logo

<div id="slider01" style="width: 400px; height:120px"></div>
<div id="slider02" style="width: 600px; height:100px"></div>
<div id="slider03" style="width: 200px; height:80px"></div>
<div id="slider04" style="width: 800px; height:120px"></div>
<div id="slider05" style="width: 300px; height:100px"></div>
<script type="text/javascript">

ui("div#slider01").color("DeepPink").slider();
ui("div#slider02").color("BlueViolet").slider();
ui("div#slider03").color("DeepSkyBlue").slider();
ui("div#slider04").color("Plum").slider();
ui("div#slider05").color("Orange").slider();


</script>

About

basic interface(s) built in d3js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published