Solved

creating annotationElements and CateseianDataCanvas in actionscript

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Xsl Nested Loop 4 29
error email attachment VB2010 5 39
Tech Writing Terminology - Pane or Panel? 8 87
Form submit issue 11 85
Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

770 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