Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Type error #50

Closed
arok opened this issue Apr 30, 2018 · 1 comment
Closed

Type error #50

arok opened this issue Apr 30, 2018 · 1 comment

Comments

@arok
Copy link

arok commented Apr 30, 2018

Using simple bar chat i've get the following error:

I/flutter (13382): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (13382): The following assertion was thrown during performLayout():
I/flutter (13382): type 'int' is not a subtype of type 'double' where
I/flutter (13382):   int is from dart:core
I/flutter (13382):   double is from dart:core
I/flutter (13382): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (13382): more information in this error message to help you determine and fix the underlying cause.
I/flutter (13382): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (13382):   https://github.com/flutter/flutter/issues/new
I/flutter (13382): When the exception was thrown, this was the stack:
I/flutter (13382): #0      Axis._updateAxisTicks (package:charts_common/src/chart/cartesian/axis/axis.dart:233:39)
I/flutter (13382): #1      Axis.layout (package:charts_common/src/chart/cartesian/axis/axis.dart:399:5)
I/flutter (13382): #2      BottomMarginLayoutStrategy.layout.<anonymous closure> (package:charts_common/src/chart/layout/layout_margin_strategy.dart:268:12)
I/flutter (13382): #3      Iterable.forEach (dart:core/iterable.dart:292:30)
I/flutter (13382): #4      BottomMarginLayoutStrategy.layout (package:charts_common/src/chart/layout/layout_margin_strategy.dart:252:11)
I/flutter (13382): #5      LayoutManagerImpl.layout (package:charts_common/src/chart/layout/layout_manager_impl.dart:175:38)
I/flutter (13382): #6      BaseChart.layoutInternal (package:charts_common/src/chart/common/base_chart.dart:268:20)
I/flutter (13382): #7      BaseChart.layout (package:charts_common/src/chart/common/base_chart.dart:259:7)
I/flutter (13382): #8      ChartContainerRenderObject.performLayout (package:charts_flutter/src/chart_container.dart:130:12)
I/flutter (13382): #9      RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (13382): #10     _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107:13)
I/flutter (13382): #11     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445:7)
I/flutter (13382): #12     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:709:18)
I/flutter (13382): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270:19)
I/flutter (13382): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:627:13)
I/flutter (13382): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter (13382): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (13382): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (13382): #18     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter (13382): #19     _invoke (dart:ui/hooks.dart:120:13)
I/flutter (13382): #20     _drawFrame (dart:ui/hooks.dart:109:3)
I/flutter (13382): The following RenderObject was being processed when the exception was fired:
I/flutter (13382):   ChartContainerRenderObject<DurationData, String>#35542 NEEDS-LAYOUT
I/flutter (13382):   creator: ChartContainer<DurationData, String> ← Listener ← _GestureSemantics ← RawGestureDetector
I/flutter (13382):   ← GestureDetector ← LayoutId-[<chartContainer>] ← CustomMultiChildLayout ← BarChart<DurationData>
I/flutter (13382):   ← SizedBox ← Column ← Padding ← Column ← ⋯
I/flutter (13382):   parentData: <none> (can use size)
I/flutter (13382):   constraints: BoxConstraints(w=328.0, h=160.0)
I/flutter (13382):   semantic boundary
I/flutter (13382):   size: Size(328.0, 160.0)
I/flutter (13382): This RenderObject has no descendants.

It occurs when I set new portions of data to the chart.

arok added a commit to arok/charts that referenced this issue Apr 30, 2018
lorrainekan added a commit that referenced this issue May 10, 2018
Closes #52

PiperOrigin-RevId: 196143845
@lorrainekan
Copy link
Contributor

Thanks for pointing this out. I will be syncing your change in PR #56 but it won't be published until 0.4.0.

spencerreeves pushed a commit to apt304/charts that referenced this issue Mar 4, 2020
* Fix dependency file in charts_flutter and update changelog to remove
'dev' from 3.0

PiperOrigin-RevId: 196143755

* Fixed google#50

Closes google#52

PiperOrigin-RevId: 196143845
JackMoseley2001 pushed a commit to JackMoseley2001/charts that referenced this issue Nov 1, 2021
* Fix dependency file in charts_flutter and update changelog to remove
'dev' from 3.0

PiperOrigin-RevId: 196143755

* Fixed google#50

Closes google#52

PiperOrigin-RevId: 196143845
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants