Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7680181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:03:18+00:00 2026-05-31T18:03:18+00:00

I’ve been working on a Web Server which produces XML data to be used

  • 0

I’ve been working on a Web Server which produces XML data to be used for FusionCharts. After days of unsuccessfully trying to come up with a standardized object structure in Delphi to wrap the XML production for these charts, I’ve decided to look and see if someone has already done so.

What I’m trying to do is build an object structure in Delphi which wraps the functionality needed to produce XML data for the FusionCharts. There are 42 possible types of charts, each of which requires a slightly different XML structure. The object structure I started building simply wraps the ability to specify the common properties of one of such charts and generate XML data on the fly based on these properties. It of course also consists of handling multiple data-sets, each of which is used for a different series in the chart. There are also some oddball charts with a combination of possible datasets, which is where I got lost in trying to implement this structure.

I quickly came to realize that this is a huge task, and would like to see if someone has already done such a thing. I know there is a VCL library out there to display FusionCharts in an application, but this is not what I need. I just need to simply produce the XML data to be passed back through the Web Server to the HTTP client.

Has this already been done? If not, then any tips or pointers as to how to accomplish this? I was getting ready to make one single object called TFusionChart and wrap everything inside of it (with a ChartType property), but there are 42 possible charts, and this would be a huge mess. I may also create 42 different objects, one for each chart, but this would have redundant code.

PS – I’m willing to start a Bounty for this question, it is rather important.

UPDATE

Just to explain the existing structure of mine a little bit, I have one base component called TFusionChart. This class holds everything that all charts have in common, including category names, title, background, etc. None of the actual charts are based off of this. From this class, I then have TFusionChart2D and TFusionChart3D. Then I have 4 more called TFusionChartSingle2D, TFusionChartMulti2D, TFusionChartSingle3D, and TFusionChartMulti3D. From these 4 classes, I then begin creating the actual chart components. I plan to have a component for each of the possible charts that are available.

The problem I’m facing is confusion as to how to manage the data to be contained. Some charts can have a combination of one for example: multiple series in columns, a line series, and stacked data within the columns. This one chart alone would have a very unique way of storing its data, which is difficult to share with other types of charts, for example, a simple single series column chart.

I tried the XML Data Binding capabilities as described in answer below, but this was far too massive of a solution that I abandoned it. Again, because of the fact that there are 42 types of charts. Each chart would mean a few thousand lines of code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:03:19+00:00Added an answer on May 31, 2026 at 6:03 pm

    I would try to create one class per chart type, but use base classes to keep similar charts together. The class should only be the “data holder” for the chart data and chart setup, and delegate the XML output creation to a separate class. This makes it easy to try and switch between different solutions for the output generation, or to plug in other output formats.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.