apache / apache/royale-asjs

Chart View Bug in Jewel

Open
#414 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

I am trying to add a column chart to a jewel project based on the code in the StatsView.mxml example. I have js:ColumnChart in a j:Card and the browser throws the following error... what am I doing wrong?

`Uncaught TypeError: Cannot set property 'x' of null
at org.apache.royale.charts.beads.ChartView.beforeLayout (ChartView.js:127)
at org.apache.royale.charts.beads.layouts.ColumnChartLayout.org.apache.royale.core.LayoutBase.performLayout (LayoutBase.js:246)
at org.apache.royale.charts.beads.layouts.ColumnChartLayout.org.apache.royale.core.LayoutBase.handleInitComplete (LayoutBase.js:169)
at org.apache.royale.charts.ColumnChart.goog.events.EventTarget.fireListeners (eventtarget.js:284)
at Function.goog.events.EventTarget.dispatchEventInternal_ (eventtarget.js:382)
at org.apache.royale.charts.ColumnChart.goog.events.EventTarget.dispatchEvent (eventtarget.js:196)
at org.apache.royale.charts.ColumnChart.org.apache.royale.events.EventDispatcher.dispatchEvent (EventDispatcher.js:71)
at org.apache.royale.charts.ColumnChart.org.apache.royale.core.HTMLElementWrapper.dispatchEvent (HTMLElementWrapper.js:246)
at org.apache.royale.charts.ColumnChart.org.apache.royale.core.DataContainerBase.addedToParent (DataContainerBase.js:59)`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the StatsView.mxml example and compare its js:ColumnChart usage with the chart placed inside a j:Card. Reproduce the browser error and inspect ChartView.js at line 127, then verify that the column chart renders without the null-property exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.