Solved

creating annotationElements and CateseianDataCanvas in actionscript

Posted on 2008-06-20
3
1,405 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

626 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