Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

creating annotationElements and CateseianDataCanvas in actionscript

Posted on 2008-06-20
3
Medium Priority
?
1,422 Views
Last Modified: 2010-04-21
How can I add the following code with actionscript to "myChart"

var myChart:Linear = new LinearChart();

<mx:annotationElements>
	            <mx:CartesianDataCanvas id="carteCanvas"/>
	        </mx:annotationElements>

Open in new window

0
Comment
Question by:NewtonianB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
bglodde earned 2000 total points
ID: 21838050
When you declare myChart, it must be of type LinearChart. Then, you can access the annotationElements collection within.


var myChart:LineChart = new LineChart();
var carteCanvas:CartesianDataCanvas = new CartesianDataCanvas();
myChart.annotationElements.push(carteCanvas);

Open in new window

0
 
LVL 13

Expert Comment

by:bglodde
ID: 21838056
Sorry, meant "LineChart" type.
0
 

Author Closing Comment

by:NewtonianB
ID: 31469309
Great! Thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question