Skip to content

rwl/d3.dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3.dart

A Dart API for D3.js using dart:js.

Usage

var data = [4, 8, 15, 16, 23, 42];

var x = new LinearScale<num>()
  ..domain = [0, max(data)]
  ..range = [0, 420];

new Selection('.chart').selectAll('div').data(data).enter().append("div")
  ..styleFn["width"] = ((d) => "${x(d)}px")
  ..textFn = (d) => d;

Releases

No releases published

Packages

No packages published