Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Urgent: Look for Line Chart

Posted on 2003-03-02
32
Medium Priority
?
222 Views
Last Modified: 2010-05-18
Hi All,

I am looking a flash line chart in flash 5. Where can i got it? The value already have store in the flash and no need special create the txt or xml to get the data.

And i need it support in 2 pie chart....... thanks.
0
Comment
Question by:weesiong
  • 16
  • 14
  • +1
32 Comments
 
LVL 5

Expert Comment

by:elhy
ID: 8055850
hmm...perhaps you want to try looking into macromedia site and see if there are such component.

http://dynamic.macromedia.com/bin/MM/exchange/main.jsp?product=flash
0
 
LVL 7

Author Comment

by:weesiong
ID: 8056090
elhy,

I have found few component in there already, but these no what i want. :(

Best Regards,
Wee Siong
0
 
LVL 1

Expert Comment

by:geertbro
ID: 8056794
Take a look at http://www.globfx.com/

They have flash-software for creating charts ;-)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:henryww
ID: 8058230
i can help u with the code for simple line & pie chat, if u can get a copy of MX to compile the swf... it is quite easy to draw it urself, any style any color ...

if u have to pay for some charting componenst,... maybe u should consider upgrading ur flash 1st :)

cheers
0
 
LVL 6

Expert Comment

by:henryww
ID: 8058257
wow ... just did a search for u too ...

here u can find code for doing pie chart dynamically, but u will have to round off the % to integer, it is using a slice of "1%", ie: 36degree - and use duplicateMovieclip to do the whole pie ...

http://actionscript-toolbox.com/samplepiechart.php

i suppose line chart is easy too, create a movieclip with just a line - long enough - and use the same method, duplicateMovie, rotation and lenght and arrange the line segment at the right position.

with MX ... what u can do, user MoveTo(x,y), lineTo(x,y), curveTo() ... etc to draw items and fill color too :)
much easier i think

cheers
0
 
LVL 6

Expert Comment

by:henryww
ID: 8058762
here's a line chart for u ...
don't know where i got it from ...

http://www.smartclever.net/example/flash/linechart/linechart.zip
0
 
LVL 7

Author Comment

by:weesiong
ID: 8061718
henryww,

Thanks the comment, the link http://actionscript-toolbox.com/samplepiechart.php actually it is a pie chart and what i wanted is a line chart.

For the link http://www.smartclever.net/example/flash/linechart/linechart.zip It can work now, but if i want 2 lines chart, it cannot work, can you help me modify it, i am still newsbabis in the flash action script. Thanks.

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8062844
"And i need it support in 2 pie chart....... "
i thought u want 2 pie charts too ...

sure, i can add an extra chart to it ...
so u want it side by side? or one after one?

are u from singapore or malaysia?

cheers
0
 
LVL 7

Author Comment

by:weesiong
ID: 8062979
henryww,

I need it side by side. :)

I am work in singapore, but i am malaysian, How you know it?

Thank!

Best Regards,
Wee Siong

0
 
LVL 6

Expert Comment

by:henryww
ID: 8063258
hi wee siong,...

well, ur name sounds like it ... malaysian .. :)
yeah got a few friends there ... one of my IT manager went back to KL a few month ago ...

anyway ... ok, i am still at work, so it will some time around 8-9 pm GMT +8 if that's ok with u :)

cheers
0
 
LVL 6

Expert Comment

by:henryww
ID: 8065271
sorry, was a bit busy at work... still at the office ...
anyway ... it's done.

change the data.xml for the values of the 2 charts http://www.smartclever.net/example/flash/linechart/linechartv2.zip

if u want to change the style, line, width, etc, u need to go to a friend or someone who has MX and change from the fla, compile again for the swf ... once it is done, u can just upload the swf with the xml or as the comment given in the fla, using chart.swf?DataUrl=abc.asp with abc.asp
if u are going to generate the xml from a database.

cheers
0
 
LVL 7

Author Comment

by:weesiong
ID: 8069213
Hi hentyww,

thanks the code, it really so nice, but can you help me do a one after one line chart. I will add other points to you. Thanks.

Best Regards,
Wee Siong
0
 
LVL 7

Author Comment

by:weesiong
ID: 8069226
henryww,

Where you from?
0
 
LVL 7

Author Comment

by:weesiong
ID: 8069526
henryww,

Where you from?
0
 
LVL 6

Expert Comment

by:henryww
ID: 8069754
sorry ... weesiong,

i don't understand... one after one line chart, do u mean show 1 first then stop and goto the next one? how long do u have to stop? or u want a button to go to the next chart

i am in HK

cheers
0
 
LVL 7

Author Comment

by:weesiong
ID: 8070146
henryww,

The chart what i want is compile 2 lines in 1 chart. The previous version you sent to me is show in 2 chart. Can you help me, thanks.

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8070501
ok i see ...
so the same chart with 2 lines ...

no problem ... give me a while
0
 
LVL 6

Expert Comment

by:henryww
ID: 8070511
but .. .when u have 2 lines on the same chart...
what about the title and numbers?
do u need the numbers for each point on the chart??

it depends on ur data, it might crosss each other and the labels are overlapping ...
0
 
LVL 7

Author Comment

by:weesiong
ID: 8070748
henryww,

Yes, i need the title, and x and y bar got the title, because have more 30 points in the chart, if put the number in each point, it will look no good.

Thanks so much :)

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8071212
ok ... so 2 lines, no points labels, 1 title, and axis labels are needed ... right?
0
 
LVL 7

Author Comment

by:weesiong
ID: 8071727
YES! Correct!
0
 
LVL 6

Accepted Solution

by:
henryww earned 2000 total points
ID: 8071784
0
 
LVL 6

Expert Comment

by:henryww
ID: 8072418
is that ok??
0
 
LVL 7

Author Comment

by:weesiong
ID: 8077129
henryww,

It is cool and very nice and it is what i wanted. Thank you so much!

Best Regards,
Wee Siong
0
 
LVL 7

Author Comment

by:weesiong
ID: 8077621
hi henryww,

Got some problem again, because the value you are get from XML file, if i want get from an Array

exp:

var FieldName = new Array;
FieldName = Array("1", "2", "3");
var FieldValue = new Array;
FieldValue = Array(10000, 12000, 15000);

if change it in your code will be hard or not?

I will add other points for you, thanks :)

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8078031
ok so u have 2 arrays?
fieldName and fieldValue ... what about the second set of values?

say fieldName for both set
fieldValue1 & fieldValue2 in arrays for the 2 sets of numbers ... ok?

it will take some time, but i don't think that's too hard, it is easier than xml :)

let me know.

cheers
0
 
LVL 7

Author Comment

by:weesiong
ID: 8078177
henryww,

Ok, no problem. Thanks!

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8078216
so i will only put some dummy data in the fla, i guess u have someone to open the fla and change the values right ...

give me a while i am a little busy at work, ... shouldn't be too long ...
0
 
LVL 7

Author Comment

by:weesiong
ID: 8078287
henryww,

Sure no problem. Thanks for your help.

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8082297
http://www.smartclever.net/example/flash/linechart/linechartv4.zip

done ...change everything u need in frame one
a few arrays were added for extra info like line colors etc ...

cheers weesiong
0
 
LVL 7

Author Comment

by:weesiong
ID: 8086307
henryww,

Thank for the line chart it really so nice.

I've post the points in
http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20542031.html

Please take your points in there.

And my colleagues got some problem in flash, can you to help him.

Thanks.

Best Regards,
Wee Siong
0
 
LVL 6

Expert Comment

by:henryww
ID: 8086327
yes sure ...

post ur questions in Q_20542031.html :)
that's clearer & easy to start from beginning again ...

thanks weesiong
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

580 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