CR XI - Problem Setting Line Graph colors in the Chart Expert

Post Author: desselle
CA Forum: Charts and Graphs
Hello,
I created a Crystal Report (CR) of an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corrsponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.
Thanks,Steve

Post Author: desselle
CA Forum: Charts and Graphs
Hello,
I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
Thanks

Similar Messages

  • CR 9 - Need HELP Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) based off an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corresponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  The Problem: CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
    1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
    2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
    3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
    Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.  Are there some Hot Fixes that I need to apply to my copy of CR?
    Thanks

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • Setting bar graph color by means of formula

    Is there a way to set the bar graph color other than chart expert->color highlight. I need alternate way of setting color like this
    if data='ready%' then set color=green, I don't want manually set is ready* can be anything. Is this possible ?

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly

  • Two line graphs in a single chart

    Hello Experts,
    I am having set of values each for one line graph.
    But I want to plot these two graphs in a single chart.(2 line graphs in a single chart)
    Please help me how to plot?
    Regards,
    Apex User

    Hi,
    Your query needs to return data in this format:
    link    label        value1   value2
    null    01-JAN-10    5        6
    null    01-FEB-10    3        6
    null    01-MAR-10    2        5where 'value1' column will be the first series, 'value2' column will be the second series, etc.
    So you SQL query will need to be something like:
    select
    null link,
    created_month label,
    sum(value1) value1,
    sum(value2) value2
    from table
    group by
    created_monthAmanda

  • Change line graph color to red when negative?

    I've got a line graph charting my budget. Anyone know if there is a way to have the line be red if it is negative, and the standard blue if it is in the positive?
    I didn't see any sort of option when I briefly looked around Numbers - but I thought I'd ask.

    I believe your thinking about the "color red if negative" type thing you can do in cell formatting. I couldn't find a way of doing any kind of conditional formatting in charts. I had to use a rule to do it in cell formatting.
    If someone else knows a way, I hope they will tell us. I can't find it.
    Jason

  • Dynamically Set Subreport Background Color to the Same Value as Main Report Background Color

    I have a report that contains a subreport.  The main report has groupings in it.  I am dynamically setting the background color of the group rows based on an expression.  That part is working fine.  The problem that I am having is that
    I don't know how to get the subreport to "inherit" the background color of the grouping that holds it.
    Basically, I have different row shadings on my report differentiating the groupings except for the rows where the subreport shows.
    How do I go about setting the subreport background color to equal it's contaiing grouping's background color?  Thanks in advance for any and all assistance provided.

    The parameter method given by gpshukla will send the info to the subreport, but you don't need the color parameter in the main report, only the subreport. The trick is in setting the value of that parameter.
    Right-click the cell with the embedded subreport, you can select subreport properties.
    Select Parameters and add a parameter.
    The name column is the name of the parameter in the subreport (color) and value is the value to set it to.
    Set name to "color" (no quotes).
    Set Value to the same expression used to set the background color for the row.
    In the subreport, click the design surface to select the report (not header or footer).
    In the properties pane, select background color and choose expression from the dropdown.
    Type =Parameters!color.Value into the expression builder.
    This will work assuming that background color in the main report row will not change without also refreshing the subreport.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Drill down from a line graph? Make the entire graph click-able?

    Guys, i can drill down from other types of charts except a line chart.
    Is there anything that is special about the line chart?
    Also, can i make the entire graph click-able? So, instead of clicking on a bar to trigger a linked report, can the whole chart be a link basically?
    Thanks for your help

    There is not special with the line graph..... Just click on the data symbol to drill or navigate. These settings can be found under the "additional Charting Option" button.
    regards
    John
    http://www.obiee101.blogspot.com/

  • How can I set #HOST# variable referenced in the Chart template?

    #HOST# and #HOST_PROTOCOL# are being set incorrectly by APEX from CGI variables when I create a chart. I am using APEX 4.1 and Oracle 11g. The get the continual "Loading data..." and then after it times out I get "Error loading file".
    Before we changed to a secure http environment, our charts worked. After we changed to the new web layer, the charts do not work. The #HOST# substitution was set to http://correctservername/ and #HOST_PROTOCOL# was set to http. We set PlsqlCGIEnvironmentList REQUEST_PROTOCOL=https in the dads configuration file and now the #HOST# displays https but it also includes the default port number which we do not want (https://correctservername:port/) The charts work without the port. REQUEST_PROTOCOL is not in the cgi list and setting this variable set #HOST_PROTOCOL#. What variable can we set to make #HOST# correct. It seems like #HOST# is being set by #REQUEST_PROTOCOL#'://'||HTTP_HOST||':'||SERVER_PORT||SCRIPT_NAME||'/'. SERVER_NAME could also be used in of HTTP_HOST. I don't know how APEX is setting #HOST#. Does it come from a host alias somewhere in the environment?
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.
    I would rather not create a global variable (hard-coding) and create a new chart template using the global variable or create a before header application process to re-direct url without a port.
    Edited by: Donna C-Houston on Oct 10, 2012 1:06 PM

    Hi Donna,
    changing the CGI environment variables HTTP_HOST, REQUEST_PROTOCOL and SERVER_PORT is the correct way how to resolve this, because it appears that your hiding the web server where you have installed mod_plsql or EPG by a different outside facing web server (also called reverse proxy). That's why APEX gets the host name, protocol and port of the internal web server, but should actually get the values of your reverse proxy web server. Can can fix that by changing the following CGI environment variables.
    HTTP_HOST should just contain the domain name (no protocol or port). For example: www.oracle.com
    REQUEST_PROTOCOL should contain http or https
    SERVER_PORT should be the port for https
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.The value of HTTP_HOST is wrong anyway and points to your internal web server, but I assume your developers actually want to get the host name of your external web server if they use it to generate absolute URLs. That's why I wouldn't bother and set it to the correct host name.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Bug: setting ColumnChart type property breaks the chart object.

    PLease confirm if this Is this a bug or maybe ColumnChart
    type property is only applicable as MXML tag attribute?
    Description: Setting the
    type property of
    ColumnChart object other than "
    clustered" breaks the chart object. (i.e: series dissappear)
    Resetting to "clustered" wont restore the series.

    It breaks the chart when series have effects applied,
    otherwise it works fine.

  • Problem in Line graph

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                 [Bindable]
                var xmlProducts:XMLList = graphList;       
         [Bindable]
         public var products:ArrayCollection = new ArrayCollection([
            {unit:"Radio", year:2007, quantity:5},
            {unit:"Radio", year:2008, quantity:7},
            {unit:"Radio", year:2009, quantity:10}
            ]]>
        </mx:Script>
        <mx:XMLList xmlns="" id="graphList">
            <record>
                <unit>Radio</unit>
                <year>2007</year>
                <quantity>5</quantity>
            </record>
            <record>
                <unit>Radio</unit>
                <year>2008</year>
                <quantity>7</quantity>
            </record>
            <record>
                <unit>Radio</unit>
                <year>2009</year>
                <quantity>10</quantity>
            </record>
        </mx:XMLList>
        <mx:LineChart x="386" y="23" id="unitChart" height="199" dataProvider="{products}" showDataTips="true">
            <mx:horizontalAxis>
                <mx:CategoryAxis dataProvider="{products}" categoryField="year" />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries  yField="quantity"  displayName="Quantity" />
            </mx:series>
        </mx:LineChart>
        <mx:Legend dataProvider="{products}"/>
    </mx:Application>
    1- I have to draw a line chart for the products based on XMLList as dataprovider. In which horizontal axis is based on year values i.e 2007, 2008 , 2009. Vertical axis showing quantity for each unit data item Radio.
    2- When i make a graph based on arraylist as data provider it works fine as in given example. but when i use xmlList as data provider it shows nothing. I think values in XMLList are all text but i don't know how to convert them to numeric.

    Hi Asif,
    You need to modify Your XmlList structure and you need to give XMLListCollection as a dataprovider to the LineGraph.
    See the working sample below:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
         [Bindable]
         public var products:ArrayCollection = new ArrayCollection([
            {unit:"Radio", year:2007, quantity:5},
            {unit:"Radio", year:2008, quantity:7},
            {unit:"Radio", year:2009, quantity:10}
            ]]>
        </mx:Script>
        <!--<mx:XMLList xmlns="" id="graphList">
            <record>
                <unit>Radio</unit>
                <year>2007</year>
                <quantity>5</quantity>
            </record>
            <record>
                <unit>Radio</unit>
                <year>2008</year>
                <quantity>7</quantity>
            </record>
            <record>
                <unit>Radio</unit>
                <year>2009</year>
                <quantity>10</quantity>
            </record>
        </mx:XMLList>-->
        <mx:XMLListCollection id="graphList">
            <mx:source>
                <mx:XMLList>
                    <record unit="Radio" year="2007" quantity="5" />
                    <record unit="Radio" year="2008" quantity="7" />
                    <record unit="Radio" year="2009" quantity="10" />               
                </mx:XMLList>
            </mx:source>
        </mx:XMLListCollection>
        <mx:LineChart x="386" y="23" id="unitChart" height="199" dataProvider="{graphList}" showDataTips="true">
            <mx:horizontalAxis>
                <mx:CategoryAxis categoryField="@year" title="Year"/>
            </mx:horizontalAxis>
            <mx:verticalAxis>
                <mx:LinearAxis baseAtZero="false" title="Quantity" />
            </mx:verticalAxis>
            <mx:series>
                <mx:LineSeries  yField="@quantity"  displayName="Quantity"/>
            </mx:series>
        </mx:LineChart>
        <mx:Legend dataProvider="{unitChart}"/>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Problem setting line spacing before a paragraph

    Just started using Pages and really happy with it but I have one strange problem.  I've defined a number of paragraph styles that have non-zero "before" spacing.  They all work fine except when I apply them to the first paragraph after the page header, when the before spacing  ends up as zero (the after spacing works fine).
    Any ideas what could be causing this?
    Pete

    Here you are speaking to end users like you.
    I fell that being unable to apply a spacing before upon the first paragraph of a page is a true anomaly.
    As far as I know, we aren't supposed to know where is the text splitter between page p and page p+1.
    But, as an end user, I can't change this behavior.
    _Go to "Provide Pages Feedback" in the "Pages" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'11 ;-)
    Yvan KOENIG (VALLAURIS, France) lundi 2 mai 2011 21:08:02
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Problems setting up old iPhone for the kids

    So here's the deal, Got a new iPhone 6 (with which I am very happy) and decided to set my old iPhone 4 up as basically a house mobile, You know the one you give to the kids if they are going somewhere and need to take a phone.
    Problem 1, Because the iPhone 4 is running iOS 7 i can't download and install find my friends so I can keep track of the kids. I get the message that I need iOS 8 or better to install this app. Apple doesn't maintain a iOS 7 version?
    Problem 2, I was setting up restrictions on the phone and under content I selected to "never allow" a particular social network website. After setting the restrictions I opened safari to test and found that I had no problem accessing the barred website. What the...?
    Any assistance would be greatly appreciated.

    Step 1 is to access TC via AirPort Utility. It sounds like you are stalled at this step. Turn off your AirPort wireless for now. Connect an ethernet cable from your Mac to TC. Any of the 3 LAN ports will do as you've already connect your modem to the one WAN port. Open AirPort Utility. If you still do not see TC, perform a hard reset (with a paperclip). Try AU again. If TC comes up, follow the setup procedure according to what kind of setup you want. If you want to connect wirelessly, setup accordingly. Once you're satisfied with your setup, restart TC. Hopefully the green light will go on. Turn on your AirPort wireless and disconnect your ethernet cable.
    Good luck and welcome to Apple Discussions!

  • How do I change the value labels in a line graph without changing the data in the source table?

    Where the graph values show 1  I want them to change to text (different each time). Is there a way to make this happen?
    Also, is there a way to connect the series markers - circles - with solid lines even if there is no data in the table. E.g from 1.5 to 2.5 a solid line even if there is no data under 2.0?
    Is there perhaps a better way altogether to achieve this graph?
    Thanks.

    HI Mick,
    Sounds like something that could be achieved with no "graph" at all.
    This is a combination of a table and an inserted shape (line). Enter the dates as the goals are achieved. Here's a second image of the same 'chart,' taken before the table grid was whited out:
    Regards,
    Barry

  • Displaying Line Graph Data under the same

    Hello experts,
    I have a jspx page with a line chart in it, what I need is a way to build a table under it with the same informations that are being show on the graph. Any ideas?
    My Jdeveloper version is 11.1.1.3.0
    Thanks in advance

    Hi Navaneeth,
    I need to create something like this image [http://img17.imageshack.us/i/teamproductivity.jpg/]. And the months can repeat by the years, so in the LineGraph it´s Year/Month in the X-Asis and Team1Km/Team2Km in the lines. How to create the table under the graph with the values of its nodes ?
    Any help is welcome.
    Marcos
    Edited by: Marcos Vizine on 03/03/2011 11:00

  • MOVED: Problem setting up Raid 0 on the 790GX-G65 mb.

    This topic has been moved to Windows 7.
    https://forum-en.msi.com/index.php?topic=130475.0

    I have had many problems with this board (K9N Diamond 590) and the RAID.  First, I tried the setup, (which I have set up may board with RAID controllers) by trying XP Pro.  I could not get the RAID 0 to work.  Then I setup with XP_64, trying the RAID ) configuration and it installed the drives.  I even did a full format for drive integrity purposes.  The Windows installation file copy would fail on me every time between 2-4%.  I broke the RAID on XP_64 and installed on a single drive.  That went flawless.  I ran this for like 2 days and found out that there were no 64 bit drivers for my printer, sooooo I wen back to 32 bit XP to give the RAID a try again.  I got the latest nforce drivers directly from nvidia's site and went to install.  I read on another forum that you should plug the drives in to 0-master and 1-master (not 0-master and 0-slave) go figure... that actually worked.  Got XP 32 bit installed and running.  I was very happen, the the tumoil started to rear it's ugly head...  I try to copy big files to my hard drive and I get the beloved blue screen of death.  This happens every time I try to copy large files.  This only seems to occur when I am copying files to the HD.  I am using the wd3200ks drives is what brought my attention to this thread.  I am so frustrated with all the trouble this have given me I could scream!! 
    Any help would be greatly appreciated!!
    NateSin

Maybe you are looking for

  • Connection Problem while client is behind proxy and server out side proxy

    hello i implemented ChatApplication in JAVA, for that i used socket connection when client and server both are in same network then it's working fine. but when my server is on internate and client is behind proxy and try to connect with server it not

  • Internal.text parsed by XML object ?

    Is it possible to use the XML object to parse internal xml instead of loading an external file? I am writing an application that converts arrays & objects into xml. In my development, I am displaying the xml in a text field on the stage. In testing I

  • BADI name for filling search result CRMST_HEADER_OBJECT_BUIL

    HI , I need to enhance search result for any component "BP_ACC_SEARCH_E" . I have identified view as BuPaSR and context node SEARCHTABLE . I have also  identified the corresponding structure(CRMST_HEADER_OBJECT_BUIL) and even appended this structure

  • Preimere Elements 10 - Organizer "Import to Elements Organizer" Not Working...

    APE v10 Windows 7 No Keyword Tags are added. No star ratings are added. Nothing has been manually added that is used to filter files from view. 1. Import .mts files to organizer, all files import fine. 2. Next time you open the folder (after closing

  • Panther to Tiger Help

    Hi, I searched the forums and did not find any specific answer for my question so I figured it would not hurt to ask. I recently picked up a brand new copy of Tiger and am a bit confused. Will it not just overwrite my old OS (panther) and leave me ac