Git Product home page Git Product logo

google_charts's People

Contributors

regenvanwalbeek avatar roberthartung avatar terrywarwar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

google_charts's Issues

Encounter error when using BarChart

BarChart.load().then((_) {
chart = new BarChart(document.getElementById(containerId));
}

Exception: Uncaught Error: constructor not a function
Stack Trace:
#0 JsObject.create (dart:js:119)
#1 JsObject.JsObject (dart:js:117)
#2 Chart.Chart.
(package:google_visualization_api/charts.dart:45:68)
#3 BarChart.BarChart (package:google_visualization_api/src/charts/bar_chart.dart:4:25)

DataTable throws odd exception

The code given below throws an exception

LineChart.load().then((_) {
  DataTable dt = new DataTable();
  dt.addColumn( "number", "x");
  dt.addColumn( "number", "y");

  var data = [];
  for( num i=1; i<10; i++){
    var value =[i, i*i];
    data.add( value);
  }
  dt.addRows( data);


  var chart = new LineChart(document.getElementById('curve_chart'));
  chart.draw(data);
});

Exception thrown

Uncaught Error: Invalid argument (data): Instance(length:9) of '_GrowableList'

LineChart handling events

Could please add an example of how to add an event to the LineChart class.

The following code produces a compile errors about missing methods and getters

LineChart chart = new LineChart(document.getElementById('pdfChartValues'));
selectHandler(_) {
var selectedItem = chart.getSelection()[0];
}

chart.onSelect.listen( selectHandler);
chart.draw(dataTable, options);

Incompatible version constraints on polymer 1.0.0-rc.2

Incompatible version constraints on polymer:

  • app depends on version ^1.0.0-rc.2
  • google_charts 0.1.3 depends on version >=0.16.3+1 <0.17.0

Tried adding a depency_override and I'm getting the following issue:
The built-in library 'dart:html' is not available on the stand-alone VM.
'package:polymer/src/template/array_selector.dart': error: line 6 pos 1: library handler failed
import 'dart:html';
^
dart:isolate-patch/isolate_patch.dart 364 Isolate._spawnUri
dart:isolate-patch/isolate_patch.dart 317 Isolate.spawnUri
package:pub/src/dart.dart 221 _isolateBuffer
dart:isolate-patch/isolate_patch.dart 264 _startIsolate.
dart:isolate-patch/isolate_patch.dart 148 _RawReceivePortImpl._handleMessage

removeRow and removeRows does not work.

the member functions for DataTable removeRow and removeRows do not work. this is the code for removeRow:

void removeRow(int rowIndex) {
    jsProxy.callMethod('removeRow', [removeRow]);
  }

should it be:

void removeRow(int rowIndex) {
    jsProxy.callMethod('removeRow', [rowIndex]);
  }

? Same problem in removeRows.

Using the API with a table in a polymer element

The CSS does not get applied to the table.

Workaround for the moment is to download the .css manually and include the file directly as polyfill will make a XMLHttpRequest and it will get blocked due to a cross origin error.

Dart version is a lot slower than dart2js

When using methods like DataTable.addRow from Dart, they will be very slow compared to the dart2js version of the app. This is probably because the conversion from/to JsObject that are not present after dart2js.

Remove polymer dependency

If I'm not mistaken, the polymer dependency is used solely in the examples.
It would make sense to move polymer to dev_dependencies in my opinion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.