Solved

creating annotationElements and CateseianDataCanvas in actionscript

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Magento Indexing 1 103
I starting with php 12 137
Grunt Copy file to another destination. 1 57
How to link a specific Wordpress Post directly to the main domain (no category!) 12 100
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

830 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