New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

Create an Animated Bar Chart with jQuery and Dreamweaver
Illustration by

Create an Animated Bar Chart with jQuery and Dreamweaver

with Chris Converse

Video: Previewing the final project

Hi! This is Chris Converse and this is a course on creating an animated bar chart. I want to start by opening the exercise files and showing you the final project we're going to be creating throughout this course. And I'm going to start by opening the index.html file. What you'll notice when this opens right away is we have a bar chart in the center here. Each of the bars will animate in succession, and after each bar animates, we'll have a label that fades on showing us the value of each one of the chart-bars. I'll hit reload on here so we can see this one more time. Now the technique we're going to use to build this is going to be a hybrid approach between static design and dynamic design.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Create an Animated Bar Chart with jQuery and Dreamweaver
46m 35s Intermediate Dec 19, 2011

Viewers: in countries Watching now:

In this course, Chris Converse creates an animated bar chart or other visual graphic using a combination of jQuery and the tools in Dreamweaver. This approach is dynamic, allowing a designer to adjust the size of a chart and letting jQuery calculate the new position and size of the bars based on the data associated with each bar. The course also covers designing the chart with HTML and CSS, as well as creating labels and timing delays with jQuery.

To preview the finished project, visit codifydesign.com.

Topics include:
  • Adding markup for chart bars
  • Adding jQuery and CSS to an HTML document
  • Declaring and setting the global variables
  • Writing a custom function to position the bars
  • Adding labels and value text to the bars
  • Animating the bars based on their value
  • Fading in bar values labels after the bar animations
  • Adjusting chart sizing by updating CSS values
Subjects:
3D + Animation Business Web Web Graphics Charts + Graphs Web Design Infographics Projects Web Development
Software:
jQuery
Author:
Chris Converse

Previewing the final project

Hi! This is Chris Converse and this is a course on creating an animated bar chart. I want to start by opening the exercise files and showing you the final project we're going to be creating throughout this course. And I'm going to start by opening the index.html file. What you'll notice when this opens right away is we have a bar chart in the center here. Each of the bars will animate in succession, and after each bar animates, we'll have a label that fades on showing us the value of each one of the chart-bars. I'll hit reload on here so we can see this one more time. Now the technique we're going to use to build this is going to be a hybrid approach between static design and dynamic design.

We're going to be using HTML in CSS to construct the outer shell of the chart, and then we're going to use JavaScript in jQuery to calculate the height of each one of the bars, both in relation to each other, and then relation to the overall height of the chart. This will give us the ability to change the height and dimensions of the chart and have the bars redraw themselves based on that relationship. To show an example of that working, I'm going to open up another page here. In the first version we have the same chart with changes being made to the overall width of the chart, the number of bars, and the height of the chart.

So if I hit reload here, I'll get the exact same animation, the relative heights of each of these items in relation to the overall chart is changing. And I'll show a second example and hit reload of the same chart, again, showing more bars, and the overall height being much less than the taller version. And we can see the bars are drawing themselves in relation to each other and the height of the overall chart as well. So this gives us a lot of flexibility through CSS to change parameters of our chart and not have to go back and recalculate the individual heights. The other consideration we have in here is we're using a little bit of CSS3 here to create semi-transparency in the backgrounds and rounded corners on the individual bars.

Some of these techniques are not going to translate to IE 7 and 8. So what we've done here is provided two sets of CSS alternatives for Internet Explorer. Option one will allow us to use a semi- transparent png file to maintain some of that transparency effect that we have here and the trade off to this approach is, since we're using a background png, we can't use the individual icon background graphics with individual bars. Whereas option two gives us the ability to pick a solid color in the background and still use the background image to bring in the individual icons.

So it's your choice on how you want this design to translate to IE 7 and 8, and you'll find these files inside of the Internet Explorer IE.CSS file that we'll talk about in the next video where we go through the individual files that are included in the exercise files. So I hope this sounds interesting, and if so, let's get started with the first movie.

There are currently no FAQs about Create an Animated Bar Chart with jQuery and Dreamweaver.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create an Animated Bar Chart with jQuery and Dreamweaver.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.