Important alert: (current site time 7/16/2013 2:18:25 AM EDT)
 

winzip icon

Animated Chart

Email
Submitted on: 11/6/2009 8:16:00 AM
By: Hamed Oveisi 
Level: Intermediate
User Rating: By 26 Users
Compatibility: VB 6.0
Views: 22477
 
     UPDATE : 2009/11/06----------------------------- Finally, I've update this little control and now you can have it in your EXE, no need to compile as an ocx or ..., some bugs about speed of chart were fixed, Sorry for the delay and hope you enjoy, ----------------------------------------------- This is My Animated Chart Version 2, with 4 new themes: PersianGulf, Sky, Neon and Normal. Some changes in animating mode, now all bars grow simultaneously instead of one by one, some bugs fixed and now you can show bars descriptions and ... This is the first Animating Chart in PSC and I can't found any commercial instance (of course you can found some Flash Maker), Hope you like it, I', waiting for your feedbacks and if you like this please vote,

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

7/8/2008 12:31:50 PMGarry

Hi.Just took a look at Animated Chart and it looks Fantastic.
I am trying to do a chart like this for my database, I have a basic chart where I can add users to the sales database and it shows that months profits.I dont really need it to Animate and wondered if you could make it where you pass the number of users and what the profit made by each user and the number os Sales Invoices.It may be easier for you to do this, but I will have ago as well to change code.
Let me know if possible.
One bug I did find, if the Bars load and you show the Legend, the colour around the small square turns grey.
(If this comment was disrespectful, please report it.)

 
7/9/2008 1:25:32 AMHamed Oveisi

Hi Gary,
Thx for your feedback, currently I'm working on the new version of Animated Chart because I like it and want to add more features, so I'll try to fix buges and add what you want, also if you can send me a picture of what you really need, it will be so nice,
(If this comment was disrespectful, please report it.)

 
7/9/2008 8:29:12 AMAhamed Imran Sheriff

Awesome stuff buddy! The aesthetic effect you have manged to create is just off the charts man! :) Keep it up and keep rocking, yo! Your work definitely deserves the 'Code Of The Month' award! Simply brilliant! Excellent rating from me :)
(If this comment was disrespectful, please report it.)

 
7/9/2008 2:51:45 PMHamed Oveisi

Thx Ahamed,
Votes and feedbacks from U and the other PSCs is my award, all ths PSC is brilliant, Now I really want to create a new chart with lots of features and options, although these days I'm very busy but I can't control myself to preparing the new version,
Thx again and hope to have your suggestions for the new version,
(If this comment was disrespectful, please report it.)

 
7/10/2008 3:24:28 AMhai2hai

This is great stuff. Chart component is what I have looking for in PSC.

How can I change the speed of animation or display bars w/o animation?

Is it possible to display other chart styles like square,... (not only bars)?

Thanks much!
(If this comment was disrespectful, please report it.)

 
7/10/2008 3:29:54 AMhai2hai

I found another bug: I end the project or unload the form when bars is drawing, the animation still work (it should stop drawing when we unload the parent window).

Hope you fix this bug.
(If this comment was disrespectful, please report it.)

 
7/10/2008 5:23:32 AMGarry

Hi Hamed.
My bar chart is very very basic, some pic Boxes and Labels.(Not very good) that why i am interested in using yours. Very slick looking.(Let me know your email and I will send pic)
A few Idea's I have.
1.Allow Animation to be set on or Off in Properties
2.Allow the Legend to be Displayed or Not when first showing control (maybe also make it so the Legend cannot be hidden)
3.Enable or Disable the Mouseover event
4.Set a Maximum Grid Value (mine is in £££ as a total)
5.On the Legend I made , I also have extra info ie Number of Sales as well.Maybe you could add an extra space for some extra info (Can email you direct with pic if you want)

I will probably come up with a few more Idea's
(If this comment was disrespectful, please report it.)

 
7/10/2008 5:43:15 PMHamed Oveisi

hai2hai,
Thx for the bug, it's for the doevents using in the animated chart,
For the speed of drawing simply change the DrawItem step (something about 15 may be good)
(If this comment was disrespectful, please report it.)

 
7/10/2008 5:51:42 PMHamed Oveisi

As I mentioned before, this chart is based on ActiveChart and I've just changing some parts and add animation and theme because of a force in my project, so the basics are still from ActiveChart,
By now I'm preparing the new version from the base so I'll try to put as much as I can to bring you a good, stable, full customizable Chart, Just give me a little time and I'll be back will the UltraChart,
During this very short period, I'm waiting for your suggestions,
(If this comment was disrespectful, please report it.)

 
7/10/2008 10:19:19 PMenmity

the effect is good, but cpu is 100% when it animates.
(If this comment was disrespectful, please report it.)

 
7/11/2008 2:47:32 PMHamed Oveisi

Thx enmity, I'll check it
(If this comment was disrespectful, please report it.)

 
7/22/2008 2:44:14 AMRyan Viljoen

Hi Hamed

Excellent Code. Professional Look. Great Idea. Keep it up.
(If this comment was disrespectful, please report it.)

 
7/22/2008 9:29:55 AMHamed Oveisi

Dear PSCs, Here is My new version, hope you like it,
(If this comment was disrespectful, please report it.)

 
7/25/2008 6:49:49 AMRob

this is amazing, one slight bug, if you start the graph with the legend showing showlegend(false) then when you go to hide it the resize is wrong, apart from that I think its the best code I've seen for years
(If this comment was disrespectful, please report it.)

 
7/26/2008 6:24:19 AMHamed Oveisi

Hi Rob,
Thx, You are right, I'll correct this in my next Update,
(If this comment was disrespectful, please report it.)

 
8/7/2008 7:26:48 AMhai2hai

Hi, When the next update release? I'm still waiting for this stuff.
(If this comment was disrespectful, please report it.)

 
8/10/2008 8:35:47 AMHamed Oveisi

hai2hai
Did you check this version? It's the second version of my control, I'm currently working on it but really don't know the exact time, I'm a little busy,
(If this comment was disrespectful, please report it.)

 
8/15/2008 2:40:37 AMPaul Turcksin

Excellent job. @@@@@
Was however surprised to see you don't use Option Explicit.
(If this comment was disrespectful, please report it.)

 
8/16/2008 1:25:24 PMHamed Oveisi

Thx Paul, Sometimes I'm a little lazy to use Option Explicit ;)
(If this comment was disrespectful, please report it.)

 
10/6/2008 9:54:45 AMSteve

Excellent code! Just one thing the .exe will not load? has anyone else had this problem??
(If this comment was disrespectful, please report it.)

 
11/8/2008 1:32:35 AMRajesh Kumar Choudhary

Superb Code. One bug I noted that complied EXE file is not working on other system.

(If this comment was disrespectful, please report it.)

 
11/26/2008 9:07:34 AMHamed Oveisi

Sorry but for this version, You should compile it and use it in your EXE as an ActiveX component,
(If this comment was disrespectful, please report it.)

 
1/13/2009 6:38:03 AMJerry

i like a lot, but, the control dont suport negative values.
Bye
(If this comment was disrespectful, please report it.)

 
4/20/2009 5:53:28 PMgraphics in visual basic

Dear all ,

Thanks for your contributions .and thanks for the code also .

for the control. I can not used it as ocx. I wanted to add it to my project as ocx. I compiled it and the control behavior was not the same as the attached sample. eg if you compile the control as ocx and add to new project. the mousemove event will not work and the color change of different bars upon mouse over will not work . also all bars will have the same color .

Your support is well appreciated.

Regards,
Waleed Makarem
(If this comment was disrespectful, please report it.)

 
7/7/2009 2:18:17 PMQuazy

VERY NICE some of the best code in a long time.. Thanks
(If this comment was disrespectful, please report it.)

 
8/10/2009 4:59:30 AMSera

Hi!
I have a question, I can't register this ocx.
How can i use it in my project?

(If this comment was disrespectful, please report it.)

 
11/6/2009 1:38:53 PMHamed Oveisi

Plz feel free to leave a comment about the new version, thx
(If this comment was disrespectful, please report it.)

 
11/8/2009 12:13:21 PMjojokuno

I've been waiting for that, thanks
(If this comment was disrespectful, please report it.)

 
11/9/2009 5:40:57 AMMarc

Fantastic! Works like a charm. Is there a way to add the Bar's value as a tooltip text, so that if the user places the cursor over a bar, its value,(as well as its description?) is displayed as a tooltip? Is there a way not to display XAxisDescription as vertical text, but keep it horizontal? Option to hide the Description bar? Printing using the formPrint works, but of course prints the description bar. I hope this does not sound like I dont like this chart. I do, thats why I would love to have these features. Excellent work!
(If this comment was disrespectful, please report it.)

 
11/9/2009 8:57:05 AMHamed Oveisi

Dear Marc,
It's a dream for me to have enouh time and add more features to this, It seems that I should do this for my current project, so plz let me a little time,
(If this comment was disrespectful, please report it.)

 
11/15/2009 3:02:36 PMBill K of Boston

yes very good --- 5 here
(If this comment was disrespectful, please report it.)

 
12/9/2009 3:07:18 AMHamed Oveisi

Plz See my UltraChart for the new version:
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=7 2707

(If this comment was disrespectful, please report it.)

 
1/18/2010 3:25:55 AMVahid

thanks man
good idea and implementation
and the persianGulf theme is Great
thanks so much
(If this comment was disrespectful, please report it.)

 
10/12/2010 8:53:16 PMali

deserving for the reward...
very helpful to representation of data.

thank u very much...
(If this comment was disrespectful, please report it.)

 
10/19/2010 1:00:14 PMNavid M

it's great job . excellent
(If this comment was disrespectful, please report it.)

 
12/19/2011 7:05:03 AMMohammad Ali Qurairis

Many thanks
It is so great and amazing
The beauty of it is that it is embedded in the exe and no OCX distribution is required
Many thanks again
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.