Dynamic change color of series in line chart

Hi
I would like to be able to dynamically change the color of the individual series in a line chart, based on user preference. It works excellent having dynamic labels on the series using the &item. syntax and a before header computation.
The same approach for the color does not seem to work. I get errors like undefined entity....
Any ideas?
Best regards Jesper

Very surprisingly the following code (also generated by the macro recording) works ok.
(I selected the serie inside the chart instead of selecting the serie in the legend)
    ActiveChart.FullSeriesCollection(1).Select
    With Selection.Format.Fill
        .Visible = msoTrue
        .ForeColor.ObjectThemeColor = msoThemeColorAccent3
        .ForeColor.TintAndShade = 0
        .ForeColor.Brightness = -0.25
        .Transparency = 0.3000000119
        .Solid
    End With
If an MVP or Microsoft official come accross this, I suggest further testing as it is very likely a bug (with the first set of code generated by Excel)

Similar Messages

  • How to change color in the title line?

    Hi experts, How to change color in the title line, i show an image for explained better
    !http://img688.imageshack.us/img688/9259/imagenjar.png!
    thanks

    in Views.css file
    file below object.and change border-color as you desired to reflect.
    .TitleTable {
         font-family: arial, helvetica, sans-serif;
         border-width: 0 0 4px 0;
         border-style: solid;
         border-color: #6666cc; ----> change here.
    hope this helps !
    -Niranjan K

  • Change color of series in Charts to custom colors - error in macro generated by Excel

    The case:
    Excel 2013, Multiple cheets with multiple charts of different type. Several charts doesn't show well will the defaut color automatically generated by Excel. -> The idea is to modify these graphics only with a specific color combination (modifying the
    color of the series)
    I'm able to modify the color of each series of 1 chart using the UI. but there are many charts so doing them with a simple macro would speed these repeative steps.
    I turned on the macro recording to capture the change of the color of a selected serie in a selected chart.
    The generated code is:
        ActiveChart.Legend.LegendEntries(1).Select
        With Selection.Format.Fill
            .Visible = msoTrue
            .ForeColor.ObjectThemeColor = msoThemeColorAccent3
            .ForeColor.TintAndShade = 0
            .ForeColor.Brightness = -0.25
            .Transparency = 0.3000000119
            .Solid
        End With
    When I execute the macro, Excel trigger an error:
    Execution error -2147467259 (80004005)
    method "Fill" of object "ChartFormat" has failed   (this is a translated error message, as I run a french version)
    Any idea why Excel cannot run its own generated code ?
    Thanks in advance.

    Very surprisingly the following code (also generated by the macro recording) works ok.
    (I selected the serie inside the chart instead of selecting the serie in the legend)
        ActiveChart.FullSeriesCollection(1).Select
        With Selection.Format.Fill
            .Visible = msoTrue
            .ForeColor.ObjectThemeColor = msoThemeColorAccent3
            .ForeColor.TintAndShade = 0
            .ForeColor.Brightness = -0.25
            .Transparency = 0.3000000119
            .Solid
        End With
    If an MVP or Microsoft official come accross this, I suggest further testing as it is very likely a bug (with the first set of code generated by Excel)

  • Problem - over lie of data series in Line chart (Web Application Designer)

    Dear Experts,
    I have created a chart with below requiments from my user by using web application designer.
    1) Key Figure 1 (Chart type -> column )
    2) Key Figure 2 (Chart type -> column )
    3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK;    Visibility: Visible)
    4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    5) Key Figure 5 (Chart type -> Line; color assigned -> RED;         Visibility: Visible/Hidden)
    The line chart of Key Figure 3 must always appear in Front then others Key Figures.
    Then following by, Key Figure 4. Last is Key Figure 5.
    As I know the order of display line chart is infflucing by the order of Key Figure in structure by descending, likes below
    1) Key Figure 3 (Rank of front -> 3rd; Chart type -> Line; color assigned -> BLACK;    Visibility: Visible)
    2) Key Figure 4 (Rank of front -> 2nd; Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    3) Key Figure 5 (Rank of front -> 1st; Chart type -> Line; color assigned -> RED;         Visibility: Visible/Hidden)
    So, I have conflict on fulfilling these 2 request on assigning the color and control their visibility and lines over lie.
    Please advice me if you have any suggestion on controlling the lines order.
    Thanks!
    ~ GP
    Edited by: GP Poh on Jun 9, 2010 12:32 PM

    Hi Priya, thanks for input.
    I think I should further elaborate the problems. Thanks for your highlight.
    I have a lines chart with five key figures. So my chart will have five lines.
    Some lines from chart will overlap if the data are same.
    When overlapping of lines happens, I want to control the order of which series should be appear first.
    Likes below example,
    1) Key Figure 1 (Chart type -> column )
    2) Key Figure 2 (Chart type -> column )
    3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK; Visibility: Visible)
    4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    5) Key Figure 5 (Chart type -> Line; color assigned -> RED; Visibility: Visible/Hidden)
               KF1  KF2  KF3  KF4  KF5
    CW 1    30     30    80    80    50
    CW 2    40     50    90    60    90
    CW 3    70     50    90    90    90
    CW 4    80     70    70    90    70
    As you can see, there is overlap in these value.
    CW 1 KF3, KF4  -->80
    CW 2 KF3, KF5 --> 90
    CW 3 KF3, KF4, KF5 --> 90
    The order which i want the series should appear first when overlapping.
    - KF3 must appear on top.
    - Then, follow by KF5
    - Last is KF4.
    So now, i have no idea to control the overlap orders except adjusting the sequence of keyfigure from query.
    Feel free to give me any input!

  • Color not consistent for Line Chart and Legend for prev and curryr

    Hi
    I am trying to pull last year and current year data in line chart with different color coding. I have multiple parameters selection on single chart. For some it reflects the color properly and for others it interchanges the color.
    Crystal xI R2..
    Please let me know the solution.
    Thanks

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Change color of trim guide lines?

    Is it possible to change the color of the guide lines that indicate trim from black to something else? I often use black or very dark background colors and when I'm checking bleed and other things close to the trim line, the guide becomes almost impossible to see. I hope the answer is yes, but I can't see where to do it. In Preferences it seems possible to change the color of all the other guide lines, but not the trim lines.
    Any help much appreciated.
    thanks!

    I don't think there is a way to change it. But you could add a new layer with a Frame the size of your trim, give it any color stroke that you want, put it on top of all the other layers, lock it, and you'll have what you want.

  • How can I change the bar color (data series) in a chart on the iPad version?

    The number of different. colors used in a char (line, bar, pie, ...)  appears to be limited to six, quite short for my needs, however, Excel imported charts show up in the original colors (12)...  until I change the chart type (to get a homogenous look with the rest of the content) it gets changed to the 6 basic colors. Any clue on how to modify individual series colors? Note that I am asking about the iOS version.
    Thnx

    Does any one know how you can adjust the font size (point size) for the file
    names.
    Sadly enough you can't chance that, feel free to add a feature request for
    that, the more there ask for the bigger chance it will be realized.
    It would be great if the colors for the image name (background and font color)
    could be changed so the contrast could also be increased so it is also easier
    to read.
    And this the cheerful part, go to Bridge preferences General tap and play
    with the sliders for user interface and Image Backdrop until your satisfied.
    BTW using the slider for thumbnail size bottom right of the Bridge window to
    increase the thumbs does not increase the font but makes it nevertheless a
    little clearer.

  • Change the default colours in line chart

    hi everyone,
    I'am a new user in Flex, and I am facing my first barrier
    I am using a code to interact a table and a graph
    the defaults colours of the lines are orange and a kind of green
    I would like to change these colours to red and pure green if it's possible
    here is my code
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="600" height="600"
    creationComplete="init()" applicationComplete="stage.scaleMode = StageScaleMode.EXACT_FIT;">
    <mx:Script>
    <![CDATA[
    [Bindable] private var chartData:XML;
    private function init():void
    //Inject the JavaScript functions we need to interface with the RMA
    //You can find the scripts below in the "acroJSFunctions" string object
    ExternalInterface.call("eval", acroJSFunctions);
    //set up callback for upadtes
    //the format script in each of the fields uses callAS to send the field name and it's value to the RMA
    //the function for this callback then modifies the XML that drives the chart.
    ExternalInterface.addCallback("changeData", changeData);
    //set up callbacks for commenting
    ExternalInterface.addCallback( "multimedia_getState", getState );
    ExternalInterface.addCallback("multimedia_setState", setState);
    loadDefaultXML();
    private function loadDefaultXML():void
      var req:URLRequest = new URLRequest("defaultChartData.xml");
    var loader:URLLoader = new URLLoader(req);
    loader.addEventListener("complete", xmlLoaded);
    private function xmlLoaded(event:Event):void
        chartData = new XML(event.target.data);
        loadDataFromAcroFields();
    private function loadDataFromAcroFields():void
        //get the values from the PDF
        var c:int;
        var r:int;
        for (c=0;c<2;c++)
       for (r=0;r<16;r++)
          var result:String = ExternalInterface.call("getFieldValue",r, c);
          chartData.children()[r].children()[c] = int(result);
    private function changeData(name:String, value:String):void
    //this function gets called when the field value in the PDF file changes
    //look in the format script for the field in the PDF.
    //the field name is in the form "table.r.c" where r is the row number and c is the column.
    //So the first field in the table would be called "table.0.0"
    //By splitting the string into an array, I can modify the corresponding element in the XML object that drives the chart.
    var fieldNameArray:Array = name.split(".");
    var row:int = int(fieldNameArray[1]);
    var column:int = int(fieldNameArray[2]);
    var val:int = int(value);
    chartData.children()[row].children()[column] = val
    private function getState():String
    //store the chart data XML
    return chartData.toString();
    private function setState(stateData:String):Boolean
    chartData = new XML(stateData);
    var c:int;
    var r:int;
        for (c=0;c<2;c++)
       for (r=0;r<16;r++)
          var fieldVal:String = chartData.children()[r].children()[c].toString();
          var result:String = ExternalInterface.call("setFieldValue",r, c, fieldVal);
    return true;
    ]]>
    </mx:Script>
    <mx:String id="acroJSFunctions">
    <![CDATA[
    function getFieldValue(row, column)
        fieldName="table."+row+"."+column;
        fieldValue = this.getField(fieldName).value;
        return fieldValue;
    function setFieldValue(row, column, value)
        fieldName="table."+row+"."+column;
        this.getField(fieldName).value = value;
    ]]>
    </mx:String>
    <mx:SeriesInterpolate id="interpolateIn" duration="1000"/>
    <mx:Canvas backgroundColor="#FFFFFF" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" borderStyle="solid" borderThickness="1" borderColor="#000000">
        <mx:LineChart id="chart" dataProvider="{chartData.totals}" showDataTips="true"
         left="10" top="10" right="10" bottom="10">
         <mx:horizontalAxis>
          <mx:CategoryAxis categoryField="Day"/>
      </mx:horizontalAxis>
      <mx:series>
       <mx:LineSeries yField="FY06" displayName="No. errors" showDataEffect="{interpolateIn}"/>
       <mx:LineSeries yField="FY07" displayName="No. lines" showDataEffect="{interpolateIn}"/>
      </mx:series>
    </mx:LineChart>
         <mx:Legend dataProvider="{chart}" right="25" bottom="25" borderStyle="outset"/>
    </mx:Canvas>    
    </mx:Application>
    I've tried to read this post: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7c5c.html#WS2d b454920e96a9e51e63e3d11c0bf6568f-7ff5
    then I've tried to understand how can I modify and insert the following code to mine, I've tried but doesn't work
    <mx:series>
               <mx:LineSeries yField="profit" displayName="Profit">
                <mx:lineStroke>
                    <mx:SolidColorStroke
                        color="0x0099FF"
                        weight="20"
                        alpha=".2"/>
                </mx:lineStroke>               
               </mx:LineSeries>
               <mx:LineSeries yField="expenses" displayName="Expenses">
                <mx:lineStroke>
                    <mx:SolidColorStroke
                        color="0x0044EB"
                        weight="20"
                        alpha=".8"/>
                </mx:lineStroke>               
               </mx:LineSeries>
            </mx:series>
    can you please help me?
    thanks a lot
    Win 7 64 bits
    Adobe Flash Builder 4.6 Premium

    Well, I'm getting closer.  I have resorted the legend according to the order of the lines on the chart, by doing the following:
    > chart expert
    > data tab
    > select field from "On change of" list
    > Top N button
    > For this group sort "All", based on the same field as I selected from the "On Change of" list, in descending order
    > click OK and OK again.
    Although this worked, I'm pretty sure it's sorting on the wrong year.  I would like the legend to be sorted descending, according to the values in 2010, not 2006, which it appears to be doing.  Any ideas?
    By the way, my apologies if I mislead anyone by saying I have grouped charts.  It's actually an advanced report that is grouped by one of my data fields.  This produces a new chart for each group automatically.
    Thanks again.  I appreciate all offers of help!

  • How to change colors of columns in a chart view

    Hi experts,
    I've a chart view which chart type is column. I have put 3 data series and I want to change the colors of them.
    By default, the 3 columns are displayed in blue, green and yellow and I wish put them in green, orange, and red. Is it possible?
    I've tried to change the color scheme but I have only 3 propositions (Straight, Reverse and Snake) that not correspond to my wish.
    Any idea?
    Thanks for help
    Ronan

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • Can you change color of bars in bar chart?

    I have made a chart by using the spreadsheet and converting my data to a bar chart. I would like to change the default colors of the bars in the chart but so far haven't figured out how to do it, if indeed it is possible. Is it? If so, how should I go about it? I have been able to change the labels for the bars, but I want to change the colors of the bars themselves. Also, is it possible to change the arrows in the pictogram graph to some other clipart that might better represent the thing I am graphing?
    iMac G5   Mac OS X (10.4.8)   AppleWorks 6.2.9

    "I tried what you suggested, but it didn't work. When I click on the color square in the legend, a small circle appears in the square, but I am unable to select any of the paint tools. ... (Likewise, when I open the Modify dialogue and try to select the color in the sample box there, AppleWorks won't let me change it."
    Paint tools won't work, as the bars are Draw objects, and you have only limited control over them while the chart is still connected to the spreadsheet. Click on the colour square in the Legend. The white dot indicates it's selected.
    Now click on the Fill formatting button in the bottom section of the Tools (It's the almost invisible plain white button in the stack of three. The other two are the Pen formatting button—which has a black outline—and the Text formatting button—which has a T.). Then choose a colour from the Colors palette in the stack to the right of the three buttons.
    "Similarly, when I open the Modify dialogue and try to delete the arrow symbol in the sample box, it won't go anywhere; I just get an alert sound and nothing happens. Am I doing something wrong?"
    Should work like this:
    Double click the chart.
    In the Modify dialogue, click Series.
    In the Series dialogue, click the Sample box. A black outline should appear around the box, indicating it is selected.
    Press Delete to delete the current image. You should then see only the background colour.
    Press command-V to Paste your image.
    Uncheck Repeating to get a single copy of the image, stretched to fill the bar.
    Check Repeat to get a fixed size image that repeats to fill the bar.
    Set the overlap percentage if you want the repeating image to overlap.
    Click OK to return to the chart and view the results.
    Regards,
    Barry

  • Change color of one column in chart

    Hi
    is there a way to change the color of just one column in a column chart? I want to highlight one column but I can't seem to select just that column.
    Thanks

    Welcome to Apple Discussions
    Click on the table to select it then click on the letter column heading to select the desired column. Now go to the object inspector & select Color Fill from the drop-down menu if it's not already chosen then click on the color box to bring up the color chooser. Select the color you want to fill the column.

  • Dynamically change color of af:CommandToolbarButton or af:CommandButton

    I have a button on the main page to link to a sub page. The requirement is that if there is a record in the sub page, the button should be in red color.
    If there is no record in the sub page, the button should be in blue (or normal) color.
    If initially there is no record in the sub page, then I add data in the sub page and go back to the main page, the button should be changed to red color as well.
    Anybody can help how to do this?

    If you are using ADF BC, have a method in AMImpl that will return the number of records for the table (in the sub-page).
    Use this method in the main page for changing the color of the commandButton by having an EL expression for inlineStyle for commandButton.
    Thanks,
    Navaneeth

  • How do I change colors in an iCloud numbers chart?

    My iCloud calendars are color coded by project.  These colors are meaningful to me.  I would like to use the same colors in charts showing how much time is spent in each calendar (project). 

    Go to Mail>Preferences>Fonts & Colors.
    Further help instructions if you click the +purple circle w/the black "?" in the middle+ located at the bottom right corner of window.
    !http://i50.tinypic.com/izvwo1.gif!

  • Conditionally Changing Colors of Bars in Chart Using BI Templatet Builder.

    How to change color of bars in Bar Chart using BI Publihser Template Builder?
    Ex : We have conditions such as When Revenue is between 2000 to 4000 Color of Bar should be red, If Revenue is Higher then 4000 then color of Bars should be Green.
    Please reply!!

    Go to insert menu and choose condetional foram ans set appropreate settings in your template bilder.
    Venkat v

  • Crystal Reports - Change Line Chart Color Dynamically

    Hello,
    I have Crystal report 14.
    I'm trying to create a line chart and need to be able to set the colors of the lines at the time the report is run.   The colors the lines need to be are specified in a database and a different color could be specified each time the report is run. 
    Can anybody suggest how I would do this?
    Thanks
    Edited by: Robert4543 on Nov 16, 2011 5:23 PM

    I've tried to use 'Color Highlight'  to change the color of the lines, but it only changed the colors of the markers on the line, not the actual line itself.  Is there a way to get it to change the color of the line? 
    I may have one line I need to display as 1 color, and a 2nd that I need to display as another.  Using color highlight changed the markers for both lines to the same color.  Is there a way to specify which line I want to change the color of in "Color Highlight"?
    Thanks.
    Edited by: Robert4543 on Nov 16, 2011 8:41 PM

Maybe you are looking for

  • How to use the same external hard drive for OSX and XP

    Hello to all. First off, thanks for all of the helpful comments that have been posted in the discussion board, they have helped me a lot with my problems and curiosities. My question has been touched on in the past, but nothing concrete so I figured

  • Reader 9 PDF printing problems

    I have a Kyocera FS-C5015N. When I print any multi-page PDFs to the FS-C5015N, only the first page comes out or nothing at all. I have tracked the problem down to Adobe Reader 9. I say this because I can successfully print multi-page PDFs using versi

  • Searching Squares in 2D Array

    Hi, I am new to Java and I am currently trying to learn how to do multiple row searching in 2D array.. I have an input of character array that starts like this. private static final char[][] bigSquare =     {           { 'F', 'G', '3', '4'},         

  • Accurate historical AP aging

    I would like to run an AP aging as of 12/31/2009 so I can make sure it ties to my GL. However, even though I back date my aging it still seems to be including transactions reconciled after 12/31/2009 in its results.  Is there no way to run an accurat

  • Firefox 9 does not load my last viewed webpages from the last time I shut it down

    When I would shut down firefox 8, it would save my last web pages I was on. When I came back and started firefox again, they would load up. With firefox 9 they do not do that, I originally left the settings alone from version 8 and it only load the A