Open EasonPai opened 8 years ago
You can use either package. The d3/js package is a dynamically typed wrapper around d3.js. The d3/d3.dart package wraps the d3/js package to provide type information. The d3/js package might be more useful if you are translating existing JS code. The d3/d3.dart package is better for producing idiomatic Dart. However, I don't think the d3/d3.dart package covers as much of the D3 API.
On 29 October 2016 at 04:04, Eason Pai notifications@github.com wrote:
Thanks for your great work, I have a small question. What is the difference to use,
this way: import 'package:d3/d3.dart' as d3; new d3.Selection("body") ...
or this way: import 'package:d3/src/js/selection.dart' as d3selection; d3selection.select("boody") ...
the first one is handy and much dart-alike, but the second one seems much close to the js syntax
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rwl/d3.dart/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAmLbY6fmNgirwHY3eqfHP2lTtgw--zks5q4re2gaJpZM4KkAiv .
Thanks for your great work, I have a small question. What is the difference to use d3.dart with
this way: import 'package:d3/d3.dart' as d3; new d3.Selection("body") ...
or this way: import 'package:d3/src/js/selection.dart' as d3selection; d3selection.select("boody") ...
the first one is handy and much dart-alike, but the second one seems much close to the js syntax