Generate Your Visualized Data

You know that if are visualized  your data in html then you use some specific CSS code and these are width/height  for different -different part of your data, but you have visualized your data without css ? that is possible by using D3.js . D3.js is java-script library that uses digital data to drive the creation and control of dynamic and interactive graphical forms which run in web browsers. Here d3 means just for data-driven documents.

d3.js tut by devtantra

To create chart i am use mydata.json file and for connecting to file i am use the d3.json . where .json show the file extension . if you can use csv file then use d3.csv function .


<script charset="utf-8" type="text/javascript" src=""></script>
<script type="text/javascript">
var canavas ="body")
.attr("height",500) canvas.selectAll("rect") .data(data) .enter() .append("rect") .attr("width",function (d){
return d.age * 10; }) 
.attr("y",function (d) {return i * 50;}) 
.attr("fill","blue") })
// ]]>


{"name":"AJAY","age": 20},
{"name":"Meenaxi","age": 25},
{"name":"Aashish","age": 27},


  • very nice and helpful information thnx dude and keep on

  • goog going ajay.. keep it up.. <3 😉

  • I see a lot of interesting posts on your website. You have to
    spend a lot of time writing, i know how to save you a lot of time, there is a tool that creates unique, google friendly articles in couple of minutes, just search in google – laranita’s free content source

    • Thanks for your information

Join the Discussion

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>