ActionScript 3.0 :: Chart Will Not Draw Properly?
Mar 12, 2012
I've been working for several months on a project that generates dynamic data charts. Suddenly the project had a problem-- the charts will not draw properly on screen. The only way to make the colums of the chart appear is to move the mouse into the area where the charts should exist: As I move the mouse accross the area, the chart columns appear as if by magic! However, if I move a scroll bar which controls the display area, the chart columns disappear again. I've tried this on 2 different computers and gone back and tested it on several earlier versions of the project, and they all fail At this point, the only factor that I have not tried to control for is the Flash Player which I recently updated.
View 7 Replies
Similar Posts:
Aug 3, 2010
Apparently, it is not possible to have a chart with several independant horizontal axis. What I am trying to achieve is :
Display a bar chart, organized by any category
Overlay a line (actually a single horizontal line) on top of it (to display some sort of threshold)
I tried doing the following :
[Bindable] public var columnsDataProvider : ArrayCollection =
new ArrayCollection([{"Category" : "Cat1", "Value" : 10},
{"Category" : "Cat2", "Value" : 20}]);
[Code] .....
This is the closest to what I want, except that the line does not start span all the graphs vertically (it is drawn only between the two columns of my bar chart). Is it possible to define a completely independant horizontal axis? I also tried drawing directly on the canvas, but the canvas.lineTo() method only works in "data" coordinate; I would need something that works in "chart/canvas/absolute/whatever" coordinates.
View 1 Replies
Jun 25, 2010
I have drawn a pie chart,I want that when I roll over my mouse on this pie chart,a popup window opens and the same pie chart is drawn in this popup window.(Only the pie chart in this popup window is magnified).Take any input directly.
View 1 Replies
Sep 28, 2011
I want to have a different coloured stroke (outline) used on the pie wedge under the mouse from the outline used on the other wedges.
The PieSeriesItem referenced by the mouseover event doesn't have a stroke parameter, and it looks like it is an all or nothing deal with the outline colour on the whole pie.
Is there any way of specifying the stroke parameter on a specific wedge?
View 1 Replies
Mar 19, 2008
I am trying to draw a simple bar chart for our interactive annual, and I thought i would try to learn how to use the api drawing tools, but I can't seem to get it to draw more than one line successfully.below is what I was using for one, but how do I tell it to draw more lines that are different colors? I attached a screen shot of what I want it to look like.
[Code]...
View 1 Replies
Aug 25, 2009
Is there a way to draw a line on a graph (or at least get the position) on specific date?
I have a graph where X is Date data, I want to draw a line with a text on each Year and each 3 months as reference, not part of the graph series.
View 1 Replies
Jan 16, 2012
I'm new to Flex, I've tried to do this using a CartesianDataCanvas inside backgroundElements in mxml, then using ActionScript to draw lines on the data canvas using moveTo(x1,y1) and lineTo(x2,y2), which draws a line between (x1,y1) and (x2,y2).
The problem with the above method is the tick mark length is a function of the chart area (which depends on the browser window size).
What I need is a method that:
(1) starts at a data coordinate (e.g. moveTo(x1,y1) works fine for this)
(2) draws a line to a screen coordinate (e.g. lineTo(x_screen, y_screen) where x_screen and y_screen are screen coordinates).
Is there anything that can accomplish this in Flex/AS3?
Alternatively, could I use screen coordinates for both steps above? If so, how to convert between screen and data coordinates? For example, is the upper right corner of the screen always a fixed data coordinate that I could reference is creating such a conversion?
Alternatively, could I save a five-pixel line in Illustrator and simply paste that image in the chart somehow? If so, how to paste it exactly at a data coordinate?
View 1 Replies
Jul 23, 2004
I have a question for you....I'm not able di draw a pie chart dynamically. I have the Layer1 with a F3DPieChart, 4 input text and a button, I put 4 numer in the 4 inputtext (sum total = 100) and when I press the button I would like to see pie Chart to appear with 4 slices that rappresented my 4 numbers.unfortunately it doesn't happen. This is the code on layer1:
[Code]...
View 2 Replies
Nov 24, 2010
I want to draw stock price in real time as a candle graph. I get open flash chart from someone and it looks good at drawing. I don't know how to update the candle graph in real time (using Ajax?), and is it a good way? I use Python a lot. But I cannot find tools as easily to use as OFC.
View 3 Replies
Jul 23, 2004
I'm not able di draw a pie chart dynamically.I have the Layer1 with a F3DPieChart, 4 input text and a button, I put 4 numer in the 4 inputtext (sum total = 100) and when I press the button I would like to see pie Chart to appear with 4 slices that rappresented my 4 numbers.unfortunately it doesn't happen.This is the code on layer1:
[QUOTE]
var buttonListener = new Object();
buttonListener.click = function() {
var val;[code].....
View 2 Replies
Mar 2, 2011
Is it possible to develop chart in flash (eg. bar chart, pie chart)?
View 1 Replies
Mar 3, 2011
I'm trying to prevent a default chart item roll over highlight in a Spark column chart.If you look at any of the chart examples on this page , when you roll over any of the chart series items, they turn a darkened shade of their original colour. This is what I want to prevent.
So far I have had no luck with using the itemRollOverColor property, as this only allows you to set it to one specific colour for the whole chart (my app has several different coloured series on the chart at once). Also, trying to leverage the itemRollOver event (with preventDefault() etc) hasn't worked either.
View 1 Replies
Sep 14, 2009
How can I Create an animated Bar Chart or Line Chart type of component in flash programmatically, which should depends upon an incoming XML data, the chart should have the basic criteria like, Chart Label, Item Tooltips, background grids (without using any image). There also needs an ability to change the data which should reflect the chart as well.
View 1 Replies
Jan 10, 2011
I'm trying to make chart which is combination of bar and line chart using Flex Charting API . Here x axis would be common and y axis would be different. note that y axis got different range of value one is % and other is amount. Any one got idea how to make this chart. Here line chart would be staked on top of bar chart . The line chart and never over laid or drawn on top of bar chart.
View 1 Replies
Mar 18, 2009
I am using the draw() method of the BitmapData to encode a jpeg of part of the image. Now this should be easy enough given the object I want to draw to the bitmap is on the stage at design time so I know its location and dimetions exactly! Heres the code I have in place.
Code:
var myBitmapSource:BitmapData = new BitmapData ( street.width, street.height, false, 0x333333);
myBitmapSource.draw(street, null, null, null, new Rectangle( 96, 5, 571, 450 ), true );
I know for a FACT that no part of the street clip I am drawing out is in negative space, and it's registration is (0,0). However, it cuts off A lot of the top of my image. y=5 in the above rectangle is where I need the top to be, but it cuts the top off of the image... even if I change it to 0, it has no effect.
View 2 Replies
Jun 30, 2011
I'm making something that requires me to draw() the youtubeplayer Giving me this pretty error:
[Code]...
View 4 Replies
Dec 15, 2009
I'm trying to do some lean blitting for an object that rotates by rotating it once at startup and capturing a BitmapData snapshot of each 5 degrees. The problem I'm having is that the draw() method of the BitmapData object is only picking up pixels in the MovieClip that are below and to the right of the registration point. If I change the MC so that the registration point is in the top left corner, I sometimes get what looks like most of the pixels, but the entire object rotates into and out of the frame, since it's rotating around the corner and not the center.
View 5 Replies
Apr 5, 2012
I need to be able to draw a thick patterend line between 2 points in AS3, I can't use the draw API because it doesn't all me to actually put detail (pattern etc) into the thickness of the line, I thought about perhaps using the line to create a bitmap version and then using that as a mask, but I remember many years ago seeing some examples that use a movieclip as a source for a line.
View 1 Replies
Jan 9, 2012
I am having an issue with using BitmapData.draw(stage). I am getting the following error:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:
var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.
View 4 Replies
Dec 16, 2010
i have a class thats create a class with bitmapData that merge 2 IBitmapDrawable. one of them is 24*20 while the other is 16*16.i want to draw the smaller first in a bitmapData object which its width and height are 24*20 but i want to draw it in the center of the big bounds.
[Code]...
View 2 Replies
Mar 25, 2009
I want to create a Flashmenu that looks like a Pie Chart. The Menu will have 6 pieces. If the mouse rolls over one of them, this piece should expand to the whole size of the circle, but with easing. I dont know how to start Problems i see: Layering of the different pieces (how can I achieve that the piece with the "mouseover" is always in front of the others)
nice animation of the piece (it should grow clockwise, but with easing) asking (each piece will be an image, the pieces just show a portion of the image, on roll over, the whole image should be viewable)
View 7 Replies
Nov 18, 2009
Im creating an interactive org chart. I want to use external xml text for just the names, titles and there will be a alt tag type pop up with a few bullet points.
[Code]...
View 8 Replies
Jun 1, 2010
I am trying to create 3d pie chart in AS2.
View 1 Replies
Aug 25, 2010
I have a class file of LoadXML its not working
[Code]...
View 15 Replies
Apr 15, 2011
I want a bubble chart that just shows items along a straight line. So I'd like the horizontal axis to essentially not exist. I have it working right now with the yField assigned to a field that happens to always be '1' on my test dataset.. but this is not going to be the case in general, so I need some way to restrict the y-axis... preferably without needing to go back to my model and parse through all my data to add a dummy value '1' on each entry.
Unfortunately setting min/max values just cuts off anything above or below rather than restricting entries.
I set computedMin and Maximum (no idea what they are and the docs don't really explain) but it didn't seem to restrict the data in any way.
View 1 Replies
Jun 30, 2011
In Flex how can I set a custom name (string) for the X axis and Y axis titles of a chart?
(Horizontal Axis and Vertical Axis)
View 1 Replies
Aug 30, 2011
I can assign my charts backgroundelements property with a custom class I developed called RangeSelector in mxml like so:
<mx:LineChart id="chart" width="100%" dataProvider="{dataSet}" height="100%" mouseMove="updateDetails(event)">
<mx:series>
View 1 Replies
Aug 23, 2010
I have created 2D Pie Chart, i want to add animation into it. and have a drop shadow so it will look like 3d. Can anyone help how to do that,
ActionScript Code:
import flash.filters.BitmapFilter;
import flash.filters.BitmapFilterQuality;
import flash.filters.DropShadowFilter;
[code]....
View 0 Replies
Mar 3, 2011
How to do flash chart using actionscript 3?
View 1 Replies
Jul 13, 2009
I'm having trouble researching how to create a line chart in Flash that pulls data from an external XML file. I want to display this chart on my website for others to see. Anyone familiar with creating line charts via flash and xml? I did find a few websites that talk about it but not for flash purposes
View 1 Replies