Serve Business Graphics from Any XML Source

Editor’s Note: The Visual Studio project included in the source code for this article requires ‘Office XP Web Components’ (OCW10). The development and run-time machines must have these installed. You will find the installation file on the Office XP installation CD. The file is called: OWC10.msi.).

Graphical representation of data is a very hot topic. One only has to leaf through the pages of any journal to see the number of companies that are offering complex graphical packages that allow you to manipulate and visualize your data.

 
Figure 1: Architecture of the Chart Server. This shows the overall architecture of the system developed in this article. You can see how the chart server uses XML configuration files to call and parse the data sources.

Most of them have a common problem: They require you to format your XML data to a specific standard that they can ‘understand’ before they can chart your data. The flexibility XML affords is lost, as you have to reformat the data, usually using XSLT. This isn’t always as trivial as it sounds, as sometimes developers have to take XML documents from third-party sources and add to them before dispatching them to their clients. For example, a financial services company might have to take basic data about a company from a rented database and apply analytics to the data before pushing it downstream for XSL styling.

This article takes you through the steps of developing a business graphics server using VB.NET. The server calls your data sources and parses the data according to XPath variables that you set up to create data series and categories. It then loads the data into the charting engine, in this case the Microsoft Office Web Components.

The chart is eventually returned to the caller of this server as a JPEG file so that it can be sent to a browser-based product without requiring a downloaded footprint.

The server that I’ve developed for this article—chart server—is a basic version, calling fixed XML documents as data sources. At the end of the article, I’ll discuss how to extend this to call data servers that require parameter sets of their own. In addition, this example builds its charts using the Office Web Components Charting engine on the server side. It would be very simple to adapt the code to use any other charting engine.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may