Solved

creating annotationElements and CateseianDataCanvas in actionscript

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now