Discussion:
[dart-misc] Got dart2JS bug ? Not sure where to fill bug report
tomaszkubacki
2016-11-17 12:33:32 UTC
Permalink
Hello,

I've created simple pi chart - using chart.js - demo app
<https://github.com/tomaszkubacki/dart_chart-bug> showing bug which I'm not
sure where to fill in.

<Loading Image...>


What I'm trying to achieve is getting the index of clicked pie chart item.

Here is line of
code: https://github.com/tomaszkubacki/dart_chart-bug/blob/master/web/main.dart#L40
where I can get the index but it only works in Dartium while debugging.
when using build dart2JS version index is always null.

So my question would be is this a bug or me using JS interop wrong way ?
If it's a bug where should I fill the issue ?

Best regards,
t.k
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Jop V.
2016-11-17 16:56:34 UTC
Permalink
I ran into a Dart2JS bug too, and I reported it
here: https://github.com/dart-lang/sdk/issues
Post by tomaszkubacki
Hello,
I've created simple pi chart - using chart.js - demo app
<https://github.com/tomaszkubacki/dart_chart-bug> showing bug which I'm
not sure where to fill in.
<https://lh3.googleusercontent.com/-xFko8vUVous/WC2hYtQi5AI/AAAAAAAACgo/K-PAZgn6acgpI-hnicAswoSOkAOf0a7qgCLcB/s1600/chart_js_demo.png>
What I'm trying to achieve is getting the index of clicked pie chart item.
https://github.com/tomaszkubacki/dart_chart-bug/blob/master/web/main.dart#L40
where I can get the index but it only works in Dartium while debugging.
when using build dart2JS version index is always null.
So my question would be is this a bug or me using JS interop wrong way ?
If it's a bug where should I fill the issue ?
Best regards,
t.k
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Harry Terkelsen' via Dart Misc
2016-11-17 17:29:37 UTC
Permalink
+1
File your bug here: https://github.com/dart-lang/sdk/issues/new
Please include instructions to reproduce the problem and a stack trace if
you have one.
Post by Jop V.
https://github.com/dart-lang/sdk/issues
Hello,
I've created simple pi chart - using chart.js - demo app
<https://github.com/tomaszkubacki/dart_chart-bug> showing bug which I'm
not sure where to fill in.
<https://lh3.googleusercontent.com/-xFko8vUVous/WC2hYtQi5AI/AAAAAAAACgo/K-PAZgn6acgpI-hnicAswoSOkAOf0a7qgCLcB/s1600/chart_js_demo.png>
What I'm trying to achieve is getting the index of clicked pie chart item.
https://github.com/tomaszkubacki/dart_chart-bug/blob/master/web/main.dart#L40
where I can get the index but it only works in Dartium while debugging.
when using build dart2JS version index is always null.
So my question would be is this a bug or me using JS interop wrong way ?
If it's a bug where should I fill the issue ?
Best regards,
t.k
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
tomaszkubacki
2016-11-18 04:27:24 UTC
Permalink
W dniu czwartek, 17 listopada 2016 18:29:54 UTC+1 uÅŒytkownik Harry
Post by 'Harry Terkelsen' via Dart Misc
+1
File your bug here: https://github.com/dart-lang/sdk/issues/new
Thanks all for answer. Filled here:

https://github.com/dart-lang/sdk/issues/27852
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
tomaszkubacki
2016-11-20 07:35:26 UTC
Permalink
So as Jacob Richman pointed out - it's not a bug - it's just you cannot
merge package:js code and dart:js as package:js does not use wrapping.

Working version of pie chart with click support on pie item is here (if
anyone is interested):

https://github.com/tomaszkubacki/dart_chart-bug/blob/1e1a3fb3fd8e8436e0fba29af7a8556de0cf5bf1/web/main.dart


W dniu piątek, 18 listopada 2016 05:27:25 UTC+1 uÅŒytkownik tomaszkubacki
Post by tomaszkubacki
W dniu czwartek, 17 listopada 2016 18:29:54 UTC+1 uÅŒytkownik Harry
Post by 'Harry Terkelsen' via Dart Misc
+1
File your bug here: https://github.com/dart-lang/sdk/issues/new
https://github.com/dart-lang/sdk/issues/27852
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...