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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:42:51+00:00 2026-06-13T14:42:51+00:00

I’m currently writing a charting application. I am using Zedgraph to display 2D plots.

  • 0

I’m currently writing a charting application. I am using Zedgraph to display 2D plots. Within my application I need to display approx 8 different types of charts, and each one needs to provide slightly different functionality.

The issue here, is sometimes I have some “base ” functionality that most classes will use, sometimes I have “added” functionality that some classes will use and other times its a mix-mash of these. On top of this, the data displayed in the charts is again disjoint, and the visual appearance is also disjoint.

Consider the following functionality that may apply to one or more charts:

  • Ability for the chart to automatically scroll (with live data)
  • Ability for the chart to zoom in the horizontal direction
  • Ability for the chart to zoom in the vertical direction
  • Ability for the user to edit points in the chart
  • Ability for the user to select a region of data
  • Ability for the user to change the scales of the chart
  • Ability for the chart to “zoom to fit”
  • Ability to ahve one,two,three or four vertical axes
  • Ability to show a chart overlay
  • etc

Bringing this all together, some functionality applies to all charts, some applies to a subset of charts, and some applies to individual charts. Currently I can see no hierarchy of functionality to implement.

My current implementation uses a base class (to provide global functionality that I can clearly see) and then I have two ‘forks’ off this base class, but I’m now stuck at how to implement the disjoint functionality over individual classes. I can’t use an abstract class, as sometimes I need to inherit from multiple classes, but I don’t want to provide an interface, as the code is exactly the same.

So, what do I do here? Do I maybe use extension methods to enable specific functionality?

  • 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-13T14:42:53+00:00Added an answer on June 13, 2026 at 2:42 pm

    Given that you have so many aspects of functionality, that they they seem rather independent (any particular chart could have any sub-set of the features, or close to it), and that it would seem to me that these are the types of things that may change over time with the application, you would want to spend some up front time generalizing this rather than implementing them on a per-chart basis.

    I would simply make a general purpose “Chart” user control and implement all of the features. Then, for each feature, give it a boolean property to enable/disable it. (i.e. IsHorizontalScrollable, IsVerticalScrollable, IsSelectionEnabled, ArePointsEditable) Then each actual instance of the form just needs to set the appropriate properties of your more general form along with the actual data for it.

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

Sidebar

Related Questions

In my XML file chapters tag has more chapter tag.i need to display chapters
I have thousands of HTML files to process using Groovy/Java and I need to
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
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.