Skip to content

enucatl-phd/d3.scatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

d3.scatter

use svg circles to make a scatterplot

Example

plot = new d3.chart.Scatter()
    .width width
    .height height
    .margin margin
    .x_value (d) -> new Date d.time
    .y_value (d) -> d.value

d3.json "data.json", (error, data) ->
    if error?
        console.warn error
        return
    
    d3.select "#plot"
        .datum data
        .call plot.draw

Depends on

my base chart component

About

reusable scatterplot component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published