rwl / d3.dart

Dart Data Driven Documents
http://pub.dartlang.org/packages/d3
Other
43 stars 13 forks source link

method not found: '_proxy' #4

Open Danyxk opened 7 years ago

Danyxk commented 7 years ago

Hello,

I've recently got this error when I was trying to create simple TimeScale and attaching it to Axis.

Console:

NoSuchMethodError: method not found: '_proxy' Receiver: Instance of 'TimeScale'

Code:

    var x = new time.TimeScale()
      ..domain([new DateTime(6,1,2016), new DateTime(6,10,2016)])
      ..range([0, width]);

    var xAxis = jssvg.axis()
      ..scale(x) // problem here
      ..orient("bottom")
      ..ticks(TOTAL_EVENTS);

*time and jssvg are linked to their libraries

Is it me I am doing something wrong or some bug in code.

Thanks for any response