Skip to main content
Sympraxis Consulting

Demos

Go Search
Home
Services
Clients
About
Contact
  

Sympraxis Consulting > Demos > Demo Pages > DVWPBarChart

 Sales Opportunities

By Lead Source

Lead SourcePotential Value
Web Site
  $1,325
Newspaper Advertising
  $928
Personal Referral
  $632

If you'd like to see the effect of changing data on this graph, go to the Cascading Dropdowns demo to add new items to the Sales Opportunities list.

 
 

FeedReader - Displays RSS/Atom items from specified feeds.  FeedReader


 Marc D Anderson's Blog
  Outline bulletpoint icon(7/30/2010) Why Is jQuery Spelled the Way It Is? Direct Answer from John Resig
  Outline bulletpoint icon(7/29/2010) “Should I Get Certified” Mentioned in the SPTechReport Newsletter from BZ Media
  Outline bulletpoint icon(7/27/2010) Looking Back at a Year of SPServices
  Outline bulletpoint icon(7/27/2010) Letter to @HPSupport re: My HP Envy 15 Battery Odyssey
  Outline bulletpoint icon(7/19/2010) Where Does the “There are no items to show in this view” Text Come from in a DVWP?
  Outline bulletpoint icon(7/19/2010) Can You Minify or Compress XSL?
  Outline bulletpoint icon(7/13/2010) Dynamic Loading of jQuery Libraries
  Outline bulletpoint icon(7/13/2010) Displaying the First N Words of Announcement Bodies with XSL in a DVWP
  Outline bulletpoint icon(7/8/2010) "SharePoint The Reality Series 4: Benchmarks for success" by Marc Solomon
  Outline bulletpoint icon(7/8/2010) What’s That Lorem Ipsum Text and How Do I Get It?
  
  http://www.sympraxisconsulting.com/Demos/_layouts/listfeed.aspx?List={F4EBB20A-91E0-4306-997D-208E1D1920B7} does not appear to be a valid RSS feed. If the feed is valid, please ensure your proxy server settings are correct if you use a proxy server.
Error returned from FeedReader: Unable to connect to the remote server:SmilingGoat.Syndication
 
 
 last update on: 7/30/2010 2:43:11 PM

 DVWP Bar Chart Page Overview

This page shows how you can create a simple bar graph with just a Data View Web Part (DVWP).

The DVWP uses the Sales Opportunities list as its Data Source. Using this simple DVWP, we can graph list data in slick ways. By clicking one of the buttons, a new sort column is passed back to the page on the Query String and the graph changes to reflect the selected column, with the items sorted based upon the highest total Potential Value. Then we show a bar for each sort value simply by displaying a table cell with a background image and its width set using the value of a calculated variable. For the demo, we're using the /_layouts/images/topnavselected.gif image for the bars to give them a nice rounded look like the top nav tabs.

  • You can download the DVWP's XSL for this demo here.
  • My blog post which introduces this demo is here.