Insert Pie Chart to Excel Using OpenXml

I managed to implement the code(I got from MSDN) to create a bar graph in excel, I am however facing challenges in creating a piechart, I had thought that I can manipulate the code a little bit and  produce a pie chart-but I have spent nights and
nights still can't find my way to create a pie chart. I need help on this, I would appreciate if you can help me through this.
F.Shumba

Hi F.Shuba,
From the description, you want to create a piechart using Open XML.
A recommend way is that create a pie chart manually and use Open XML SDK 2.5 Productivity Tool to open this workbook. Then you can get the code for creaing the chart for reference.
If you still have issue, please feel free to let me know.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • 3D Pie chart from Excel to labview

    Hi every one,
    How can I Import a 3D pie chart from Excel to labview ?
    Thx

    There is no direct import mechanism for that. You would need to re-create the pie chart in LabVIEW, as LabVIEW has different 3D graphs than Excel. You would need to get the data out of Excel and use the 3D graphs to draw it. As for getting the data out of Excel, there have been numerous posts on reading data from Excel using ActiveX - just search for "read excel labview". You can also find many links to lots of other examples in the Excel thread. Please note: the Excel thread is a repository of links. Do not post a question in that thread.

  • Can illustrator populate a pie chart from excel data?

    I was wondering if there was a way to import excel datat into illustrator, then it populates a vector pie or bar chart for me?  Is this even possible?
    Thanks in advance,
    Jenny
    http://texturedwallpaper.org

    you can copy/paste data from Excel to Illustrator

  • Inserting dynamic images to excel using oracle forms 6i

    HI All,
       I'm working in project to export data from a table, one of the column has images (Blob). I need to export the data to excel.
       How can I do it?
    Thanks

    Use OLE Functions.
    http://codingwithpassion.blogspot.com/2011/02/plsql-forms-word-and-excel-manipulation.html
    Features of OraOLEDB
    ole - Oracle Forms using OLE2 not saving Excel document on 3-tier setup - Stack Overflow
    Tx

  • ActiveX and pie chart problem

    I am trying to create a bar of pie chart in Excel 2003. I am able to insert my data and create the chart, but I need to set the "SplitValue" to 6. I was able to find the property for doing this but I get an error when I run the vi (see attached).  Any thoughts?
    Solved!
    Go to Solution.
    Attachments:
    ActiveX Error.PNG ‏45 KB

    I think your problem is that you don't have "Index" wired for the ChartGroups property. Thus, it may be returning a collection of chart groups, but you are typecasting it to a single chart group.

  • Proportional pie charts and annotation

    Hi,
    I have Numbers to help me make colourful, etc. graphs for inclusion in my MSc dissertation. I am using pie charts to show annual comparisons between common forms of disposing of waste. Ideally, I'd like the pie chart to show the amount of hazardous waste produced per annum, i.e. the larger the amount produced, the larger the pie chart. Other than doing it manually, by eye, can Numbers do this?
    Finally, when some of the fractions are small, instead of showing, say <1%, it will say 0%. Can I alter the labelling of the pie chart's slices?
    Many thanks - and I hope that this makes sense!
    Simon

    Axtron,
    Not seeing your available data, the only thing to go by is the image that comes to mind. Pie charts are excellent for depicting parts of the whole, so your concept of showing all the various waste materials produced in a year broken into percents works well. The pie charts will do the percents for you. Perhaps grouping a few waste types with small amounts and labeling them "All Others" would work.
    To show comparisons of successive years would require a pie chart for each year. One would scan across the row of charts and see certain types of waste were increasing or decreasing percent-wise over a period of time. But remember, each chart has to be the same size so as not to distort the data.
    If you are interested in showing increases and decreases in quantities of the various waste types over a period of time, perhaps a line or bar chart would be more effective. As a matter of fact, you could use either of these to show the percents of the pie chart as well. Once you have a table of data you can experiment with each type of chart to see which best emphasizes your point.
    pw

  • Copying Graphs and Pie Charts generated in Analysis View to Email item using Excel VBA Macro Code

    Hi
    I am currently working on an exce VBA macro code that would help me take snapshots of the Graphs and Pie charts generated in QC for a particular application and copy the same to an email item using excel VBA macro code.
    I was able to write the code to create an email item. But I have no clue of how i can take snapshot of the graphs in Analysis View using excel VBA
    Any help would be highly appreciated.
    Thanks in Advance
    Regards
    Amit

    useramit,
    You are in the consumer end products forum.  You will also want to ask your question over at the Enterprise Business Community.
    Click the plus sign (+) next to Discussion Boards to drop down all the options for servers, networking and any other professionally related problems.
    http://h30499.www3.hp.com/

  • When copying a Pie Chart from one Excel tab to a new Excel tab, the chart data is still referring to the original table

    Hi,
    In Excel 2007, I have a pie chart on sheet 1. I want to make a copy of the pie chart from sheet 1 and past into sheet 2, and change the table data in sheet 2 to get new chart recalculated based on new table values in sheet 2.
    However, the chart in sheet 2 is still pointing to the table data in sheet 1.
    All the cells in sheet 1 have relative cells.
    Please advise.
    Thanks - Bijan

    Hello Wind,
    As teylyn suggested:
    "An Excel chart is hard-wired to its data source. You can copy and paste a chart to a different sheet and it will still refer to the initial source data."
    So I did create the template and used in my 2nd tab which worked perfectly. However, I had an issue with merged cells which I am using for my data, and tylyn suggested that I provide the excel file that I am working with, and I did.
    So now I need help as how to make merged cells work when I try to create a pie chart from template based on new data (which reside in mergerd cells).
    P.S. I cannot resize my cells to make the data and labels fit into one call, so I have to have merged cells.
    Thanks
    Bijan

  • How to convert Abap output/excel output into pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Hi Younus Khan,
    sample code to load output to excel sheet.
    Use function module GUI_UPLOAD
    The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'C:\test.csv'
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = itab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17.
    or,
    U can use the FM
    SAP_CONVERT_TO_XLS_FORMAT
    to convert itab data to excel
    check this FM also
    GUI_DOWNLOAD
    And, for converting into xml format. I did it in ecc6.0
    *& Report ZTESTSDN
    REPORT ztestsdn.
    TABLES: vekp,
    likp,
    vbak.
    TYPE-POOLS: ixml.
    DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
    TYPES: BEGIN OF my_xml ,
    data(256) TYPE x,
    END OF my_xml.
    DATA: xml_table TYPE TABLE OF my_xml.
    DATA: l_xml_size TYPE i,
    ld_fullpath TYPE string.
    START-OF-SELECTION.
    SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR = ','
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    pe_bin_filesize = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    i_tab_converted_data = xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = l_xml_size
    filename = 'C:\test.txt'
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_size
    TABLES
    data_tab = xml_table
    FIELDNAMES =
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can go use ADOBE AIR for developing the pie chart widget...
    kindly reward if found helpful.
    cheers,
    Hema.

  • How to create pie charts in BIP 11g using .XSL?

    Hi,
    Requirement is to create a multi sheet excel output. Because of this. I am going the XSL way and not RTF.
    Now, I need to create pie charts using XSL as part of the output.
    * Is it possible to create pie charts in .XSL? If so, any pointers?
    * I tried some SVG coding by referencing the below link but not result:
    <http://www.svgopen.org/2003/papers/CreatingSVGPieChartsThroughWebService/index.html#S2.1>
    * I also created the required chart in RTF and tried to use the underlying XSL-FO code. Not sure if I have used it in the right way. Has anyone tried doing that?
    If you have any info, please share.
    Thanks,
    Divya

    One more point : I came across a link which talks about Bar charts using XSLT :
    http://www.roguewave.com/Portals/0/products/imsl-numerical-libraries/java-library/docs/5.0.1/chartpg/xml_xslt.html
    so, I am hoping, there is a way to do pie charts as well?
    Thanks,
    Divya

  • SAP BO XCelsius : Drilldown from pie chart to raw data ( Excel Spread Sheet) in Xcelsius

    Hi,
    I am working on a dashboard where my requirement says, Drill down data from Pie-Chart to Raw data ( Excel Spread sheet).
    Clicking on one pie should show me the required data in Excel format
    May I know if this is possible to create from Dashboard design tool SAP R4
    Thanks
    Javeed

    Hi Javeed,
    Drilling data from pie charts is very much possible. The data drilled down can be shown either in spread sheet format via components called "Scorecard" "List View". But if its specified that you need the current data drilled down to a separate excel spread sheet only then, you may need to use the third party components for it.
    There are many such components available for free. There are components available which are paid as well. You will have to find out which ones are free. Check out the threads below.
    How to export data out of Xcelsius to Excel
    CSV Connector
    http://pentaho-bi-suite.blogspot.sg/2013/12/exporting-table-component-to-excel-or.html
    Export Data from Dashboards | Just-BI | Business Intelligence
    SAP Dashboard Components - Multi Colour Column Chart, Hierarchical ComboBox &amp; Export To Excel Manufacturer from Beng…
    SAPexperts | Give Dashboard Users the Ability to Export Data to Excel at Run Time
    I hope this derives you to come conclusion.
    Thanks,
    Sara

  • Excel 2007 pie chart conversion issue

    I'm having issues converting my Excel 2007 spreadsheet that contains several pie charts into pdf. It will convert fine for everything but the pie charts. Their edges or outlines look perfect in Excel and the print preview, but once converted to pdf they're all choppy and rough looking. How can I fix this, as it makes the pdf look very unprofessional. I'm on Vista with all the latest updated, use office 2007 with all updates installed and adobe acrobat 8 with all the updates. I tried converting it through the acrobat feature in excel, as well as the print to pdf option. I even went so far to reinstall office 2003, with the same result. the pies were looking a bit smoother, but still way too choppy. how can i get adobe to convert perfect circular pie charts?
    thanks!

    From the ribbon>Acrobat>Create PDF.  This gives me the ability to choose which tabs I want to include in the report.
    I made PDF Printer my default and it worked!  Thanks!
    Why do you think my ribbon function doesn't work?

  • How to insert a picture into excel file using ALE AUTOMATION

    Hi every body,
    I have to write report that export data from abap to exel the data contain a logo but I don't know how to insert picture to excel using ALE AUTOMATION.
    Please help me!
    Thank you!

    Hi,
    you have to join into SAP Code Exchange and download this zip:
    [ABAP2XLSX_daily.nugg.zip|http://code.sdn.sap.com/spaces/abap2xlsx/documents/btFzHQ3vKr36tCeJe7bhNc/download/btFzHQ3vKr36tCeJe7bhNc]
    Regards,
    Ivan

  • How to convert abap output/excel output to pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Try demo sample program GFW_PROG_PIE
    ot t_code GRAL to find such programs.
    In addition to this please also check the chart engine (cl_gui_chart_engine).
    You can download --> SAP Chart Designer from SDN -> Downloads -> WebAS.

  • Pie chart using httpservice

    hello guys i am using a httpservice for giving dataprovider
    to pie chart ..When this service return a single record ,pie chart
    do not show anything instead of showing 100%...
    problem occurs when my service return this..
    <?rss version="2.0"?>

    <data>

    <SalesReport>
    <status>Assigned</status>
    <inquiry>22</inquiry>
    </SalesReport>
    </data>
    otherwise it's work fine.......if it return
    <?rss version="2.0"?>

    <data>

    <SalesReport>
    <status>Assigned</status>
    <inquiry>22</inquiry>
    </SalesReport>
    <SalesReport>
    <status>New</status>
    <inquiry>12</inquiry>
    </SalesReport>
    </data>
    Here is my code .... Please help me .....
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    backgroundGradientColors="[#ffffff, #808080]"
    creationComplete="init();">
    <mx:Style>
    <mx:Script >
    <![CDATA[
    import mx.binding.utils.BindingUtils;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    [Bindable]
    public var reportData10A:ArrayCollection;
    [Bindable]
    public var reportData10A1:ArrayCollection;
    [Bindable]
    public var comboData10A:ArrayCollection;
    public var fromMonth10A:Number;
    public var techID:Number;
    public var salesPerson10A:String;
    [Bindable]
    public var comboData10A1:ArrayCollection;
    public function mytest10A():void
    salesPerson10A = salesPesronCombo.selectedLabel.toString();
    var salesPID:Number = mytest10A2(salesPerson10A);
    fromMonth10A = monthFromCombo10A.selectedIndex + 1 ;
    techID = TechnologyCombo.selectedIndex+1;
    var str:String ="
    http://reena-new:3021/reports/specperson_spectech?year="+yearCombo10A.selectedLabel+"&pers on="+salesPID+"&month="+fromMonth10A+"&techid="+techID;
    Alert.show(str);
    reportService10A.url="
    http://reena-new:3021/reports/specperson_spectech?year="+yearCombo10A.selectedLabel+"&pers on="+salesPID+"&month="+fromMonth10A+"&techid="+techID;
    reportService10A.send();
    reportData10A = new ArrayCollection();
    reportData10A =
    reportService10A.lastResult.data.SalesReport;
    public var i:Number;
    public var salesPersonId:Number;
    public function mytest10A2(str:String):Number
    for(i=0;i<comboData10A.length;i++)
    if(comboData10A.name==str)
    salesPersonId = Number(comboData10A.id);
    break;
    return salesPersonId;
    public function init():void
    this.comboData10A = new ArrayCollection();
    this.reportData10A = new ArrayCollection();
    this.comboData10A1 = new ArrayCollection();
    //reportService10A.url="
    http://reena-new:3021/reports/specperson_spectech?year=2008&person=1&month=04&techid=1";
    reportService10A.url="my.xml";
    reportService10A.send();
    comboService10A.send();
    ComboService10A1.send();
    public function getData10A(event:ResultEvent):void
    reportData10A = new ArrayCollection();
    reportData10A= event.result.data.SalesReport;
    //Alert.show(reportData10A.length.toString());
    public function getComboData10A(event:ResultEvent):void
    comboData10A = new ArrayCollection();
    comboData10A = event.result.data.SalesPerson;
    public function getComboData10A1(event:ResultEvent):void
    comboData10A1 = new ArrayCollection();
    comboData10A1 = event.result.data.technology;
    ]]>
    </mx:Script>
    <mx:HTTPService id="reportService10A"
    showBusyCursor="true"
    result="getData10A(event);" />
    <mx:HTTPService id="ComboService10A1"
    showBusyCursor="true"
    url="
    http://reena-new:3021/reports/techlist"
    result="getComboData10A1(event)" />
    <mx:HTTPService id="comboService10A"
    showBusyCursor="true"
    result="getComboData10A(event);" url="
    http://reena-new:3021/reports/personlist"/>
    <mx:Canvas id="report10A" height="75%" width="70%" x="0"
    y="100"
    verticalScrollPolicy="off" horizontalScrollPolicy="off">
    <mx:PieChart id="pie10A" x="0" y="25" width="350"
    dataProvider="{reportData10A}"
    showDataTips="true"
    >
    <mx:series>
    <mx:PieSeries
    field="inquiry"
    labelPosition="callout"
    nameField="status"
    />
    </mx:series>
    </mx:PieChart>
    <mx:Legend dataProvider="{pie10A}" />
    <!-- <mx:PieChart id="pie10A1" x="365" y="25"
    width="350"
    dataProvider="{reportData10A1}"
    showDataTips="true"
    >
    <mx:series>
    <mx:PieSeries
    field="inquiry"
    nameField="name"
    labelPosition="callout"
    />
    </mx:series>
    </mx:PieChart>
    <mx:Legend dataProvider="{pie10A1}" x="350" /> -->
    </mx:Canvas>
    <mx:Canvas x="0" y="0" height="90" width="100%">
    <mx:HBox y="30" id="combo10A" x="0" >
    <mx:Label text="Sales Person" fontSize="12"/>
    <mx:ComboBox width="100" id="salesPesronCombo"
    change="mytest10A()();"
    dataProvider="{comboData10A}" labelField="name">
    </mx:ComboBox>
    <mx:Label text="Technology" fontSize="12"/>
    <mx:ComboBox width="100" id="TechnologyCombo"
    change="mytest10A()();"
    dataProvider="{comboData10A1}" labelField="name">
    </mx:ComboBox>

    this is the answer ................
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    backgroundGradientColors="[#ffffff, #808080]"
    creationComplete="init();">
    <mx:Script>
    <![CDATA[
    import mx.binding.utils.BindingUtils;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var xmlResult:XML;
    public function init():void
    Alert.show("we are here");
    myService.url="my.xml";
    myService.send();
    public function onResult(event:ResultEvent):void
    xmlResult = new XML
    xmlResult = XML(event.result);
    Alert.show(xmlResult);
    ]]>
    </mx:Script>
    <mx:HTTPService id="myService" url="my.xml"
    result="onResult(event)"
    resultFormat="e4x"/>
    <mx:PieChart id="pie10A" x="0" y="25" width="350"
    dataProvider="{xmlResult.child('SalesReport')}"
    showDataTips="true"
    >
    <mx:series>
    <mx:PieSeries
    field="inquiry"
    labelPosition="callout"
    nameField="status"
    />
    </mx:series>
    </mx:PieChart>
    <mx:Legend dataProvider="{pie10A}" />
    </mx:Application>
    Thanks

Maybe you are looking for