Welcome!

Adobe Flex Authors: Matthew Lobas, PR.com Newswire, Shelly Palmer, Kevin Benedict

Related Topics: Adobe Flex

Adobe Flex: Article

Swiff Chart from GlobFX

Professional charting for your ColdFusion applications

In its simplest form, text-based data provides a basic view of its structure and meaning. Charting enhances that view and puts the data in an entirely different light. ColdFusion has offered charting capabilities since version 5.0, but the functionality has always lacked some finesse - something that is present in other commercial charting solutions.

I discovered Swiff Chart, a charting product, while working on a project for a client. This client required a charting solution that would produce professionallooking charts within their content management solution. Unfortunately for the client, ColdFusion's built-in charting didn't produce the impact that the client desired. After some fairly extensive investigating, I found GlobFX Technologies (www.globfx.com), the company behind Swiff Chart.

GlobFX goes about their charting solution in a different sort of way. Their solution includes two products: Swiff Chart and Swiff Chart Generator.

Swiff Chart is a robust client-side chart generation tool. This complete tool allows for data input to styling the chart, and then exporting them into several formats, such as SWF, PNG, BMP, and JPG to name a few. Swiff Chart Generator is a server-side product that generates charts dynamically. It supports ASP, PHP, and ColdFusion, and runs on Windows, Linux, and Solaris. However, it only supports ColdFusion on the Windows platform, due to the use of COM. (COM is the means for ColdFusion to talk to the server.)

Both the client-side and the serverside products can generate a number of charts, including pie, bar, line, column, and XY scatter charts. GlobFX has just released a new version of the two products, which will additionally generate combination, area, bubble, and stock charts.

Making a Chart Style
Every copy of the Swiff Chart Generator product includes the clientside tool, since the client-side tool also doubles as a “style sheet” generator for the server-side solution. This approach allows you to enter data into the client tool and see what your chart will look like as you change the various chart style properties. When you have finished designing a chart style sheet, it can be saved and used when you generate your charts dynamically. If you're not a designer at heart, the client-side tool has several built-in styles to get you started.

There are many options in the client tool to assist in creating a chart style. We'll walk through the main tabs of the client tool. The Data tab is where you enter your labels and values. This data can either be entered manually or imported from a spreadsheet (we'll discuss dynamic charting later in the article). After you have established the data, you're ready for the next step - styling the chart (see Image I).

As you can see, there are various built-in styles to choose from, as well as the ability to load previously created styles. To construct a new style, select a plot style and then begin customizing the various options to make your own unique look. Being able to change the visual impact of your charts live is a much more intuitive approach than changing source code. After selecting your plot style (i.e., bar, line, pie, etc.), you can then begin customizing the individual properties of the chart (see Image II).

The Plots tab has various options available, from changing the fonts and colors of the values to selecting the colors for the columns and borders. Aside from just choosing solid colors, you have the option of custom gradient fills, which adds some flair to the chart. The rest of the tabs permit customization to the axes, legend, title, background, and the general layout of the chart.

The interface to the client tool is quite easy to work with; it's very similar to a Paint type application. Almost every conceivable part of the chart can be customized from this tool: values, axis, legends, colors, and a neat feature animation. The charts already look fantastic, but the animation supplements the impact of the charts by animating the bars or pie slices as they are drawn. For an example of this, view the online example I created at www.fusetalk.com/cfdj/swiff demo.html.

Server-Side Generation
After you've played the designer role and created chart styles, you can then either save your charts right from the client tool, or save the chart styles and plug them into the server-side generator. The server-side generator installs a COM object. This object provides the means for the communication between ColdFusion and the server. This permits you to create charts dynamically using the server-side generator.

This is a very simple task. There are two choices for talking to the COM object: JScript and VBscript. Each language has an array of methods and properties that you have at your disposal (see Image III).

If the application in which you are deploying Swiff Chart Generator gets a fair amount of traffic, you can use the built-in caching functionality to alleviate the load. Swiff Chart Generator allows you to turn caching on and off, and to define where the chart cache will be kept from a server module (see Image IV). You can also change the caching parameters from the JScript or VBScript interface to the COM Object (see Code I).

GlobFX supplies quite a number of sample code snippets to get you started in generating charts. I've written a CFC to illustrate just how extensible, yet simple, this tool is to use.

As illustrated in this code snippet, talking to the COM object is very easy, and the properties that I've used in this example are only a snapshot of the properties available. To generate my first chart, I called the CFC with the code shown below, and produced a very professional- looking chart.

<cfscript>
ChartObj =
CreateObject("component","swiffchart");
ChartObj.GenerateChart("a|b|c|d|e","1|
2|3|4|5","2|4|6|8|10","First
Series","Second
Series",560,420,true,"My First
Chart","the subtitle","c:\inetpub\wwwroot\
SanFrancisco.scs");
</cfscript>

Pricing for Swiff Chart starts at $149 USD for the client tool and $799 USD for the Generator tool, which includes a copy of the client tool (see Image V). GlobFX (www.globfx.com) also offers evaluation versions of both products, which are downloadable from their Web site. If professional charts are a requirement in your next project, this product should be on your list. It's easy to use and flexible, and the great-looking charts make it a strong contender in aftermarket charting solutions.

More Stories By Jason Clark

Jason Clark, cofounder and CTO of e-Zone Media Inc., has more than 10 years of experience in programming specifically and the IT sector in general.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


IoT & Smart Cities Stories
In an age of borderless networks, security for the cloud and security for the corporate network can no longer be separated. Security teams are now presented with the challenge of monitoring and controlling access to these cloud environments, at the same time that developers quickly spin up new cloud instances and executives push forwards new initiatives. The vulnerabilities created by migration to the cloud, such as misconfigurations and compromised credentials, require that security teams t...
AI and machine learning disruption for Enterprises started happening in the areas such as IT operations management (ITOPs) and Cloud management and SaaS apps. In 2019 CIOs will see disruptive solutions for Cloud & Devops, AI/ML driven IT Ops and Cloud Ops. Customers want AI-driven multi-cloud operations for monitoring, detection, prevention of disruptions. Disruptions cause revenue loss, unhappy users, impacts brand reputation etc.
Today's workforce is trading their cubicles and corporate desktops in favor of an any-location, any-device work style. And as digital natives make up more and more of the modern workforce, the appetite for user-friendly, cloud-based services grows. The center of work is shifting to the user and to the cloud. But managing a proliferation of SaaS, web, and mobile apps running on any number of clouds and devices is unwieldy and increases security risks. Steve Wilson, Citrix Vice President of Cloud,...
As the fourth industrial revolution continues to march forward, key questions remain related to the protection of software, cloud, AI, and automation intellectual property. Recent developments in Supreme Court and lower court case law will be reviewed to explain the intricacies of what inventions are eligible for patent protection, how copyright law may be used to protect application programming interfaces (APIs), and the extent to which trademark and trade secret law may have expanded relev...
Cloud computing, big data and AI provide a new impetus and urgency to traditional enterprises to become digitally transformed businesses as they face disruption from new players who leverage technology to foster new business models. Traditionally, enterprises focused on digitizing processes and transactions. The incumbents can also be disruptors by leveraging AI for data-driven insights and innovate at scale on Cloud platform. They need to uncover the power of ERP/SAP using Cloud, AI and Big dat...
When Enterprises started adopting Hadoop-based Big Data environments over the last ten years, they were mainly on-premise deployments. Organizations would spin up and manage large Hadoop clusters, where they would funnel exabytes or petabytes of unstructured data.However, over the last few years the economics of maintaining this enormous infrastructure compared with the elastic scalability of viable cloud options has changed this equation. The growth of cloud storage, cloud-managed big data e...
Your applications have evolved, your computing needs are changing, and your servers have become more and more dense. But your data center hasn't changed so you can't get the benefits of cheaper, better, smaller, faster... until now. Colovore is Silicon Valley's premier provider of high-density colocation solutions that are a perfect fit for companies operating modern, high-performance hardware. No other Bay Area colo provider can match our density, operating efficiency, and ease of scalability.
The Japan External Trade Organization (JETRO) is a non-profit organization that provides business support services to companies expanding to Japan. With the support of JETRO's dedicated staff, clients can incorporate their business; receive visa, immigration, and HR support; find dedicated office space; identify local government subsidies; get tailored market studies; and more.
The graph represents a network of 1,329 Twitter users whose recent tweets contained "#DevOps", or who were replied to or mentioned in those tweets, taken from a data set limited to a maximum of 18,000 tweets. The network was obtained from Twitter on Thursday, 10 January 2019 at 23:50 UTC. The tweets in the network were tweeted over the 7-hour, 6-minute period from Thursday, 10 January 2019 at 16:29 UTC to Thursday, 10 January 2019 at 23:36 UTC. Additional tweets that were mentioned in this...
Artificial intelligence, machine learning, neural networks. We're in the midst of a wave of excitement around AI such as hasn't been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. This time is (mostly) different. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Pattern recognition can equal or exceed the ability of human experts in some domains. It's devel...