Color in htmlb:chart

hi all,
kindly help me in htmlb:chart. M using it and wanna give a blue color but dnt know
the number for that. I tried near about all the numbers. plz tell me the number of it.
thanks in advance
ons bs

Hi,
line-color = 25 (or) 26 (or) 27 these all are for Blue color.
Hope this will solve your problem,Reward if it helpful.
Thanks&regds,
Sree.

Similar Messages

  • Htmlb chart control is not working

    Hi All
    I created chart using htmlb chart control as per documents  given in pdk. but it is not displaying any thing on the browser,I am attaching code ,Please tell me where will the wrong
    Thanks in advance
    Gopal
    Java:
    create a new JCO table
            JCO.Table table = new JCO.Table("DAX");
    //       add the info/header to the table. The header is defined by the column name,
    //       data type and length (see JCO table API for details).
            table.addInfo("GROUPID", JCO.TYPE_CHAR, 50);
            table.addInfo("X", JCO.TYPE_CHAR, 50);
            table.addInfo("Y", JCO.TYPE_CHAR, 50);
            table.addInfo("Z", JCO.TYPE_CHAR, 50);
            table.addInfo("COLOR", JCO.TYPE_CHAR, 50);
            table.addInfo("EXTENSION", JCO.TYPE_CHAR, 150);
    //       append a record to the table. setValue sets the value as string. The second
    //       parameter is the column. The numbers are according to the sequence of the
    //       definition of the header (see above).
            table.appendRow();
            table.setValue("07.2001",0);
            table.setValue("SAP",1);
            table.setValue("158",2);
            table.setValue("20",3);
            table.setValue("10",4);
            table.setValue("href=\"http://www.sap-ag.de/\"",5);
    //       create a JCOChartModel and set the JCO table
           IChartModel model = new JCOChartModel();
            ((JCOChartModel) model).setDataSrc(table);
    myBean.setModel(model1);
    JSP:
    <jsp:useBean id="myBean" scope="session" class="com.sap.barchart.ModelBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
         <hbj:chart
               id="myChart1"
               model="myBean.model"
               visible="true"
               displayObjectValues="true"
               titleCategories="Company"
               titleValues="Turnover"
               title="Washers by Companies!"
               chartType="BARS_3D"
               colorOrder="DEFAULT"
               height="200"
         />
         </hbj:form>
      </hbj:page>
    </hbj:content>

    HI,
    Check if the bean is null.
    Try displaying it using classlib in the dynpage itself .
    Regards
    Bharathwaj

  • HTMLB Chart (JSPDynPage)

    Hi,
    I'm trying to set-up a HTMLB Chart but not having any luck.  Has anyone done this before?.  Thanks
    Here is my code:
    Java:
    package za.co.pciza.jsppage;
    import za.co.pciza.jsppage.GraphJSPBean;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    import com.sap.mw.jco.*;
    public class GraphJSPPage extends PageProcessorComponent {
      public DynPage getPage(){
        return new GraphJSPPageDynPage();
      public static class GraphJSPPageDynPage extends JSPDynPage{
        public void doInitialization(){
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              IPortalComponentContext myContext = request.getComponentContext();
              IPortalComponentProfile myProfile = myContext.getProfile();
              GraphElement theBean = new GraphElement();
              theBean.setTitle("Graph Title");
              Chart chartBean = new Chart();          
              JCO.Table table = new JCO.Table("DAX");
    //             add the info/header to the table. The header is defined by the column name,
    //             data type and length (see JCO table API for details).
              table.addInfo("GROUPID", JCO.TYPE_CHAR, 50);
              table.addInfo("X", JCO.TYPE_CHAR, 50);
              table.addInfo("Y", JCO.TYPE_CHAR, 50);
              table.addInfo("Z", JCO.TYPE_CHAR, 50);
              table.addInfo("COLOR", JCO.TYPE_CHAR, 50);
              table.addInfo("EXTENSION", JCO.TYPE_CHAR, 150);
    //             append a record to the table. setValue sets the value as string. The second
    //             parameter is the column. The numbers are according to the sequence of the
    //             definition of the header (see above).
              table.appendRow();
              table.setValue("07.2001",0);
              table.setValue("SAP",1);
              table.setValue("158",2);
              table.setValue("20",3);
              table.setValue("10",4);
              table.setValue("href=\"http://www.sap-ag.de/\"",5);
    //             create a JCOChartModel and set the JCO table
              IChartModel model = new JCOChartModel();
              ((JCOChartModel) model).setDataSrc(table);
              chartBean.setModel(model);
              myProfile.putValue("infoBean", theBean);
              myProfile.putValue("graphBean", chartBean);
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          //GraphJSPBean graphJSPBean = new GraphJSPBean();
          //((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("graphJSPBean", graphJSPBean);
          // fill your bean with data here...
          this.setJspName("graphjsppage.jsp");
    JSP:
    <%-- jspoverviewpage.jsp --%>
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <%@ page import="java.util.*"%>
    <%@ page import="za.co.pciza.jsppage.GraphElement" %>
    <%@ page import="za.co.pciza.jsppage.GraphJSPPage" %>
    <%@ page import = "com.sapportals.htmlb.enum.EventTrigger" %>
    <%@ page import = "com.sapportals.htmlb.*" %>
    <%@ page import = "com.sap.barchart.ModelBean" %>
    <hbj:content id="myContext" >
         <hbj:page title="PageTitle">
              <hbj:form id="myFormId" >
              <jsp:useBean
                   id="infoBean"
                   scope="application"
                   class="za.co.pciza.jsppage.GraphElement" />
                             <hbj:textView
                                  encode="false"
                                  text="<%= infoBean.getTitle() %>"
                                  wrapping="true"
                             />
                             <br><br>
              <jsp:useBean
                   id="graphBean"
                   scope="application"
                   class="com.sap.barchart.ModelBean" />
                        <hbj:chart
                             id="myChart1"
                             model="graphBean.model"
                             visible="true"
                             displayObjectValues="true"
                             titleCategories="Company"
                             titleValues="Turnover"
                             title="Washers by Companies!"
                             chartType="BARS_3D"
                             colorOrder="DEFAULT"
                             height="200"
                        />
              </hbj:form>
         </hbj:page>
    </hbj:content>

    Hi,
    If you do not get any error message and if you cannot see the chart, check IE(settings)->internet options->advanced tab->select use java for applet.
    In the portalapp.xml change the PrivateSharingReference to
    SharingReference
    <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
    If this does not solve your problem, please post the error from the trace file.

  • Use of HTMLB:chart displayObjectValues

    Hi,
    I need a little help with the attribute displayObjectValues of the HTMLB:Chart extension.
    I have the following code
          <htmlb:chart id                  = "myChart1"
                       data                = "<%= data %>"
                       displayObjectValues = "True"
                       chartType           = "COLS"
                       colorOrder          = "DEFAULT"
                       title               = "Test Chart"
                       titleCategories     = "Statuses"
                       titleValues         = "Percentages"
                       visible             = "X"
                       width               = "500" />
    but still cannot seem to get the values to display and the end of the columns.  Any ideas what I am doing wrong?
    Regards
    Paul.

    Concerning the HTMLB:Chart for 3D Bars, with IGS PH_IGS_RFC_DEST, you can specify colors for the 3D Bars and the legend also appears in the colors you specify.  But according to previous messages and posts, numeric values must appear in European notation and displayObjectValues does not work.
    Conversely with GFW_ITS_RFC_DEST, you can specify colors for the 3D bars but the legend always displays automatic colors so that the chart and the legend can be out of sync.  But I can get U.S. numeric notation and displayObjectValues works.
    Does SAP supply an IGS that will let me display numbers with U.S. notation, supports the displayObjectValues labels, and allows me to specify colors for a 3D Bar chart that will also be reflected in the chart legend?
    Thanks
    Janice Ishee

  • How can I change the background color of a chart?

    How can I change the default black background color of a chart to white?
    Thanks
    John

    Hello All,
    Another (and my preferred method) of bringing up the tools palette is to press
    <shift>+<Rt-Click>.
    Just another way to do something in LabVIEW!
    Travis M
    LabVIEW R&D
    National Instruments

  • Problem with htmlb:chart after upgrade

    We just upgraded from BW 3.0, WAS 6.20 to BW 3.5, WAS 6.40.   Testing revealed that my htmlb:chart would no longer work.  I just got a white screen whether using Internet Explorer or Netscape.  After much digging, I found that the values for charttype changed with this upgrade.  Any value before that was COLS* now is COLUMNS*
    This is just a "for your information" in case you run into this.
    Janice

    Thanks for the info!

  • How do I change the line color in a chart in Numbers on my iPad?

    How do I change the line color in a chart in Numbers on my iPad?

    Whenever I try to shift+direct select it thinks I want to move the line, so as I shift + direct select and drag my mouse across the line (to highlight it all) it moves a chunk of the line and turns it into a near perpendicular line.
    I found the appearance window, it just says "Path" (the color I want it to be that it's not)
    "Stroke" 4pt
    "Fill" (the color I want it to be that it's not)
    "Opacity": Default
    And some other buttons. I think I'll try the help line tomorrow, I know I saw a customer service number somewhere and I'm only here because the chat was unavailable. This is only one of my 3 problems with my assignment so I'll search here for answers to the other two. Learning new things is rarely fun.

  • Custom Color Palette for Charts

    Hi all,
    Can I define the colors of a chart by a custom color palette in Design Studio (as you can do it in Web Intelligence) or does SAP intend to implement such a function in a next release? With CSS this isn't fully possible, because it doesn't allow you to coloring the additional line like the corresponding main line.
    I've already seen and commented this post Re: Custom Color Palette for Charts / CSS, but it's still unanswered. Maybe I've with a new discussion more success.
    Thank you and kind regards
    Silvan

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

  • Custom Color Palette for Charts / CSS

    Is there a way of creating a custom color palette for charts (as you can do it in WebIntelligence) and install it on the tomcat?
    Or will I have to set my custom colors in the css? And if so: where can I find a description of classes for Charts? Is there any description of css classes at all? All I could find was a list of classes for a crosstab (but no description).
    Thank you
    Carola

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

  • 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

  • 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

  • Regarding standardization of Colors in Pie chart Categories

    Dear BI Experts,
    I have an issue regarding Pie Charts in the WAD. When we have 5 categories defined in the Pie chart and each category has got its own defined color.
    <b><u>issue no 1:</u></b> It is very difficult to go to each cahrt and select the colors for each chart in each category. Is there any place where we can define the colors in common?
    <b><u>issue no 2:</u></b> When we have the data for all the categories it is doing good. In case of data not available for any purticular category the color defined for that category is coming for the next category. which shud not happen.
    Is there any chance of solving this?
    Anyone please help me in this concern. Very much awaited.
    Regards,
    Kishore.

    Bhanu,
    Sorry about the late response ... connectivity issues....
    As for the color issue - you would have fixed colors to each series ... and when there is no data for one of them then that particular series is absent which would mean that the next series would take its place.
    Example :
    Original query -
    4 categories with 4 colors
    If one of the categories does not have data then the query would have 3 categories and category 4 would take the place of category 3 and hence the issue of the colors...
    I was not able to simulate the same however ....
    1. If you had the same data set in Excel - are the colors proper- any Standard data set / BeX chart
    2. Is there anyway you can fix the number of categories by way of restricted Key figures etc ? then if that category is present in the query even if there is not data the colors should be maintained.
    Arun
    Hope it helps...

  • Defning own color palette for Chart Items

    Hello,
    i have a requirement for several Cockpits, the values of all diagramms of actual year should have a special color, which is not defined in the color palettes Tradeshow, Streamline or Enjoy.
    I don't want to change the color for each chart, i'v already tried the Portal Theme Editor, but i was not able to change color settings for charts.
    Is it possible to create custom color palette which i can choose in the global settings in the chart item dialog?
    Best regards,
    Frank

    1. Go to the following directory on the server side Installation Directory \SAP BusinessObjects Enterprise XI 4.0\images
    2. Find the file there named as VisualizationConfig.template.xml
    3. Rename this file to VisualizationConfig.xml
    4. Then edit this file and add the color for the palette as you required (RGB colors are used)
    5. Check there are no errors in the config file, otherwise the standard palette is applied – you can define only one Corporate palette, and the palette ID must not be changed
    6. Finally, you need to reboot Tomcat after editing the config file.

  • Changing Colors of Bar chart in Omini Portlets

    Hi,<BR>
    Is is possible to change the colors of bar charts in Omini Portltets? If so can any one tell How to change the colors.<BR>
    Thanks,<BR>
    Vijay.

    Hi Vinh,
    Do you mean that you will have the product on the x-axis of the chart and you want to display a different colour for each product bar on the same chart, or will you have a product selector that displays a single chart only for that product against a specific dimension so that all bars are the same colour determined by the colour attribute of the product?
    I am assuming your requirement is the former, in which case rather than jumping through scripting and CSS hoops, I would encourage you to reconsider the business need for this requirement in the context of Stephen Few's Rule #4 in the article Practical Rules for Using Color in Charts, an excerpt of which is shown below:
    Regards,
    Mustafa.

  • Problem with htmlb:chart

    Hi to all,
    how can I solve this Problem:
    <b>--- code ---</b>
    data: line type igs_data.
      line-groupid = 'user 1'.
      line-x = '11.03.2004'.
      line-y = 12.
      append line to data.
      line-x = '12.03.2004'.
      line-y = 14.
      append line to data.
      line-groupid = 'user 2'.
      line-x = '10.03.2004'.
      line-y = 10.
      append line to data.
      line-x = '11.03.2004'.
      line-y = 12.
      append line to data.
      line-x = '12.03.2004'.
      line-y = 21.
      append line to data.
    <b>--- end ---</b>
    <b>Result:</b>
    12.03.2004 | <b>*****user 2*****</b> 21
    11.03.2004 | <b>***user 1***</b> 14
    _________ | <b>***user 2**</b> 12
    10.03.2004 | <b>***user 1**</b> 12
    _________ | <b>**user 2**</b> 10
    How can I get the right result for 'user 1' ?
    Thanks in advance

    I just tried the same program and I think it works correctly. You have not defined, what correct solution is. You have just stated end result. I am not sure why you get value 12 for user 1 on day 10.03.2004, but I get value 0 for the same. I think I am missing something here. Not sure.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="test " >
        <htmlb:form>
          <%
            data: line type igs_data.
            data: graph_data type igs_data_tab.
            line-groupid = 'user 1'.
            line-x = '11.03.2004'.
            line-y = 12.
            append line to graph_data.
            line-x = '12.03.2004'.
            line-y = 14.
            append line to graph_data.
            line-groupid = 'user 2'.
            line-x = '10.03.2004'.
            line-y = 10.
            append line to graph_data.
            line-x = '11.03.2004'.
            line-y = 12.
            append line to graph_data.
            line-x = '12.03.2004'.
            line-y = 21.
            append line to graph_data.
          %>
          <htmlb:chart data="<%=graph_data%>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

Maybe you are looking for

  • Pre9 Crashes and Memory

    Hello, I am 90% done with a video that is about 20 minutes long. It contains video and photo images. I cannot complete the project because PrE keeps crashing I believe due to memory. My machine is XP with 4GB RAM. I took the steps recommended. All my

  • How do I just get the Inbox messages to show in the new mail notification?

    I've setup Thunderbird with Gmail and it works like a charm. The only gripe I have is that the new mail notification seems to grab a selection of unread emails from different folders and often it's not showing the relevant new emails in my inbox. Esp

  • Dynamic Setting of Properties in a Property Class

    Can anybody tell me how to change the properties in a Property Class dynamically using Forms 6i?

  • Qosmio X - Touchpad has no function anymore

    Anyone had similar problem? Touchpad stopped working, in Device Manager it says it sopped working, or driver is missing etc. When I update driver, nothing happens still same issue. Same happens when i disable/enable device. But when I Uninstall devic

  • Account number creation

    Hi SAP Gur's Can you explain elaborately 1.Will the location or cost center be required in the account number creation? If not required in the account number, how will we differentiate the same expenses at various locations?