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 9223467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:05:22+00:00 2026-06-18T04:05:22+00:00

I am building a web application that will generate charts and graphs using a

  • 0

I am building a web application that will generate charts and graphs using a 3rd party charting component. This charting component requires it receive an XML file containing the design parameters and data in order to render the chart. The application may render up to 10 to 20 charts per page view. I am looking for suggestions for the most efficient way to handle this.

I need to load XML templates, of which there will be about 15-20, one for each chart type definition. With the templates loaded, I will them add the chart specific data and send it off to the charting component for rendering. Some of the possible ways of handling this off the top of my head include ->

  1. Build each XML template in code, using StringBuilder
  2. Build each XML template in code, using one of the .NET XML classes
  3. Store each XML template in a file, load it from the disk on demand
  4. Store each XML template in a file, load them all at once on application start

Storing the XML templates in files would greatly simplify the development processes for me, but I don’t know what kind of performance hit I would take, especially if I was continually reading them off the disk. It seems like option 4 would be the better way to go, but I’m not quite sure the best practice way to implement that solution.

So.. any thoughts out there?

  • 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-06-18T04:05:23+00:00Added an answer on June 18, 2026 at 4:05 am

    I’m just taking a crack at it but I’d save the templates into a constant like so and then use string.format to substitute any values and convert to XML file and pass it along to the 3rd party component.

    const string cChart1 = @"<chart type='pie'>
        <total>{0}</total>
        <sections count={1}>
            <section>{2}</section>
            <section>{3}</section>
            <section>{4}</section>
        </section>
        </chart>";
    
        XmlDocument xmlChart1 = new XmlDocument();
        xmlChart1.LoadXML(String.format(cChart1, somevalue1, somevalue2, somevalue3, somevalue4, somevalue5));
    
        3rdPartyChartComponent cc = new 3rdPartyChartComponent(xmlChart1); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building a web-based application that requires heavy image processing. We'd like this processing
I am currently building a web application that will be using two databases at
I am building a web application that will need to allow users to save
I am building an ASP.NET web application that will be deployed to a 4-node
I am building a web application with Spring Security that will live on Amazon
I am building a web application that is dependent upon several third-party libraries. What
I am building a web application that will essentially allow authenticated users access to
I am building a web application that will let users follow discussion threads, in
I'm building a Web application that will eventually contain a lot of images. These
Background to question: We are building an online web application that requires the user

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.