Skip to Content
author's profile photo Former Member
Former Member

Colouring The Lines In a Line Chart

I'm using Crystal Reports XI

I have a line chart that shows year over year data where the line(s) represent the year(s) and each data point along the line represents a value for a month along the line. The years involved are the selected (parameter) year and the year prior to that. So, if the user selects 2012 as the parameter, the chart will show data for 2011 and 2012. One note, which might come into play, is that there might be an instance where the user selected the first year of data. In this particular case there will only be one line.

I have the chart running correctly and displaying the correct data for each line.

So, now the question...

I want to colour the line so that the selected year is red and the prior year (if it exists) is green. As it sits now, I tried highlighting each line and "Format the Connector Lines", but it doesn't always show the correct colour for the correct year. It appears to be more related to which value (year) comes first in the data. As such, when the selected year is 2012, the chart shows (correctly) 2012 in red and 2011 in green. But, when the selected year is 2010, the line for 2010 shows green (there is no 2009).

So how do I colour these lines correctly?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 15, 2012 at 05:32 PM

    Hi Clifton,

    There really isn't a way to dynamically set the lines to color in CR.

    "Format the Connector Lines" is manual and so is "Color Highlight" under the Chart Expert in a way.

    It would have been nice to have a formula button somewhere in the Color Highlight to further enhance the functionality and make it dynamic in true sense.

    - Abhilash

    Follow us on Twitter

    Got Enhancement ideas? Try the SAP Idea Place

    Share Your Knowledge in SCN Topic Spaces

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.