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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:55:05+00:00 2026-05-24T12:55:05+00:00

I hope somebody can help. I’m using Dundas Charting for Reporting Services v2.2 inside

  • 0

I hope somebody can help.
I’m using Dundas Charting for Reporting Services v2.2 inside a Visual Studio 2005 Business Intelligence project.
What I am trying to do is extend the point at the center of the series so that is spans across the entire chart area from the one side to the other.

So instead of just having a marker (even though the series is defined as a Line graph) in the center of the series I want a line that goes from 1 end of the chart to the other.

Please help.

  • 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-24T12:55:06+00:00Added an answer on May 24, 2026 at 12:55 pm

    I found the solution to the problem after much tinkering and googling. What I ended up doing was specifying 2 points on either side of the graph and then drawing a line between them. This is done in the ‘Post Paint’ event of the chart found in the Advanced section.

    I also added a parameter in the parameters section which contains the Y-Axis constant for the trend line.

    See the below code for the solution:

    // Parameter: chartObj     - represents the chart object 
    // Parameter: sender       - the chart object that will be painted
    // Parameter: e            - arguments that contain the graphics object
    // Parameter: codeParams   - user defined code parameters
    
    double stripValue = Double.Parse(codeParams["Std"].ToString()); 
    
    PointF p1 = new PointF(); 
    p1.X = (float)chartObj.ChartAreas["Default"].AxisX.Minimum; 
    p1.X = (float)chartObj.ChartAreas["Default"].AxisX.ValueToPixelPosition(p1.X); 
    
    p1.Y = (float)chartObj.ChartAreas["Default"].AxisY.ValueToPixelPosition(stripValue); 
    
    
    PointF p2 = new PointF(); 
    p2.X = (float)chartObj.ChartAreas["Default"].AxisX.Maximum; 
    p2.X = (float)chartObj.ChartAreas["Default"].AxisX.ValueToPixelPosition(p2.X); 
    
    p2.Y = (float)chartObj.ChartAreas["Default"].AxisY.ValueToPixelPosition(stripValue); 
    
    
    e.ChartGraphics.Graphics.DrawLine(new Pen(Color.FromArgb(255, 0, 0, 0), 1), p1, p2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope somebody can help. I have been using JQuery Tools to validate my
I hope somebody can help me. I've been trying to write a custom html
HI, I hope somebody can help me here with the extjs framework. The problem
I hope somebody can help me. how can I make addClass applies only to
I hope somebody can help me here, I have a table that has the
I have a small problem, but I hope somebody can help. Let's say that
Hope somebody can help. Have looked around on the net but cannot seem to
I hope somebody can help me to load the first tab (make it active)
This is a total dah question but I hope somebody can help me out.
I have some difficulties with json deserialization using GSon and I hope somebody can

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.