Legend Position

I'm creating a JSP pie chart in Reports 9i.
The legend labels are being truncated.
To fix this I increased the chart width using a "width=" tag.
If I increase the width by 200 pixels, however, the legend box itself is moved to the right by 100 pixels. This means I have to increase graph size by twice as much as should be necessary to eliminate the label truncation. This is a problem since these graphs are going into portlets, and size matters.
Is there anywah to 1/. control the position of the legend box or 2/. control the width of the legend box?
Thanks.

Yes you can, the best way to do this is with a style
Create a custom style by using the webcharts designer.
{cf_root}\charting\webcharts.bat
Create the look that you require for your cfchart with the
GUI
Once you have everything as you require
Select the style tab of the webcharts (bottom of the screen)
Save this xml in a file to your web root/ directory where you
have the cfm to create the chart. ( you save the file by name
"myChartStyle.xml" in wwwroot\charts directory.
Use the "style" attribute to import these settings in the
cfchart tag. e.g. you have cfm in wwwroot folder then you can do
something like this
<cfchart style="charts\myChartStyle.xml" ....

Similar Messages

  • Chart legend position plus ...

    Hi,
    Is it possible to specify the position of the legend of a chart ?
    We have a pie chart and would like to place the legend towards
    the top and left where there is ample "dead space". Can this be
    done ?
    Also, if the legend is not displayed (via checkbox option) there
    is no data visible on the pie chart, eg. there is no "show value"
    or "show label" option. Is there a way to do this ?
    Thanks in advance,
    sinclair

    Hello,
    There is no easy way to do this in APEX at the moment. You can do it by turning the legend off and then including a custom svg construct in the chart footer section. You'll have to study up on a bit of svg though and make sure you match your legend colors with your value colors but it is feasible.
    Carl

  • XY graph position changes when legend position is set!.

    Hello All.
    Try the example in attachment. When I change the position of the graph legend, the position of the total graph is changed!!! Or maybe I am doing something wrong?
    Pawel
    Attachments:
    XY_graph.vi ‏48 KB

    Hi Pawell,
    the Position property returns the top left coordinates of the front panel object including its related objects.
    If you place the legend above the graph, the Y coordinates refers to the upper position of the legend box rectangle; this is why if you move the legend up and down, the graph position value changes although you are not moving the plot area.
    Ask if I haven't been clear enough.
    Alberto

  • Pie chart: Legend position

    By default, the SVG pie charts that HTML DB renders show all the legends in a box off to the side of the pie.
    Is there a way to show each legend next to the slice that it corresponds to?
    Thanks

    Bump. Thanks.

  • XY-Graph / Plot legend: How to detect changes in 2nd/3rd/4th ... legend position

    Hello,
    I have an XY-Graph with 4 plots. How can I detect, for example, the color change of the second plot in the legend. The active plot, using a property node, is always plot 0. So I am not able to detect changes in the 2nd/3rd ... plot.
    Any ideas?
    Thanks a lot.
    Best regards,
    Michael
    Solved!
    Go to Solution.

    You can do it with an event sturcture.
    Attachments:
    Plot detect.vi ‏25 KB

  • Graph legend width change - Left aligned or right aligned

    Hello all,
    when I place an XY-Graph with Plot-Legend shown in LV2012, the text of the plot name is left aligned, wich is, what I want. With this behaviour the little pictures, representing the plot attributes, are fixed. After migrating to LV2014 I realized, that the text is now right aligned, which means, that the little pictures are moving to left & right, depending on the plot name length.
    I found no property controlling this behaviour.
    As a workaround I could set the plot legend position depending on its width, when the plot name is changed, but there is no event, firing when the plot name is changed by the user. So I would have to poll the plot names in the timeout case of my event structure. Btw. I have to show six XY- graphs on my FP, so polling can cause a remarkable CPU load (when I do it 1000 times / s ).
    Any suggestions?
    Greets, Dave

    Hello Dominik,
    thank you for your reply.
    I'd like to show you the problem with some pictures:
    The left picture shows the original situation, the right picture demonstrates the behaviour with LV2012, the legend is right aligned.
    The same situation in LV2014, the legend is right aligned.
    Greets, Dave

  • Number of columns in a legend

    Hi!
    I need a chart legend with 4 columns, but I couldn't find where I can set this option. Is it possible? I can only change the legend position.
    I'm using OBIEE 11.1.1.6.6
    Thanks.

    Hi!
    Actually, I'm using a trellis view with a bubble chart. My legend has 4 values, and I want it stays below the trellis with 4 columns and just 1 line. The problem is the legend is shown with 2 columns and 2 lines, and I couldn't find a way to change this.
    The legend should be just below the trellis, like the X axis.
    Thanks.

  • Capture mouse event(s) on XYgraph plot legend

    I notice that when I move the mouse over the plot name portion of the plot legend, the mouse icon changes.  If I left-click in this portion, the entire plot name region is highlighted. What event(s) and/or properties do I use to capture this behavior.  I would like to know the size and/or location of the plot name region highlighted.  I'm using LV 2010.  I know about the Legend.Size and Legend.Position properties. 

    Faustina:
    Unfortunately, there isn't an event we can latch onto when the plot within the legend is clicked on. As a workaround, we can add a radio button control beside the legend to select various plots. The radio button indices match up to the plot indices, so we can still select the active plot and rename it.
    I've attached a small example that allows the user to select a plot, and rename it from a menu of presets. You'll probably want to adapt it to run in a state machine or event structure, but the logic for changing plot names is there.
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support
    Attachments:
    change plot names.vi ‏19 KB

  • Script not working in SharePoint content editor webpart

    Hi All,
    <html>
    <head>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function () {
    //Call your function here like
    //retrieveListItems();
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "SP.js");
    var siteUrl = '/vceo/PMO/EPMO/';
    var close1 = ''; var close2 = ''; var high = ''; var low = ''; var medium = ''; var lowMedium = ''; var mediumHigh = '';
    var open1 = ''; var open2 = ''; var high1 = ''; var low1 = ''; var medium1 = ''; var lowMedium1 = ''; var mediumHigh1 = '';
    var count = 0; var count1 = 0;
    var initiate = 0; var planning = 0; var execution = 0; var closing = 0;
    var sumMinimal = 0; var sumModerate = 0; var sumCritical = 0; var sumSevere = 0;
    var sumHighlyLikely = 0; var sumLikely = 0; var sumSomewhat = 0; var sumUnlikely = 0;
    var sumBudget = 0; var sumCommitted = 0; var sumConsumption = 0;
    function retrieveListItems() {
    alert("Welcome to Dashboard");
    var clientContext = new SP.ClientContext(siteUrl); alert("site url");
    var oList = clientContext.get_web().get_lists().getByTitle('Project Issues and Risks');
    var oList1 = clientContext.get_web().get_lists().getByTitle('Project');
    var oList2 = clientContext.get_web().get_lists().getByTitle('Risk Impact');
    var oList3 = clientContext.get_web().get_lists().getByTitle('Risk Probability'); alert("get by title");
    var camlQuery = new SP.CamlQuery(); var camlQuery1 = new SP.CamlQuery(); var camlQuery2 = new SP.CamlQuery(); var camlQuery3 = new SP.CamlQuery(); var camlQuery4 = new SP.CamlQuery(); var camlQuery5 = new SP.CamlQuery(); var camlQuery6 = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Issue</Value></Eq></Where></Query></View>');
    camlQuery1.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Risk</Value></Eq></Where></Query></View>');
    camlQuery2.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Open</Value></Eq></Where></Query></View>');
    camlQuery3.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Closed</Value></Eq></Where></Query></View>');
    camlQuery4.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery5.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery6.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery); this.collListItem1 = oList.getItems(camlQuery1); this.collListItem2 = oList1.getItems(camlQuery2); this.collListItem3 = oList1.getItems(camlQuery3);
    this.collListItem4 = oList2.getItems(camlQuery4); this.collListItem5 = oList3.getItems(camlQuery5); this.collListItem6 = oList1.getItems(camlQuery6);
    clientContext.load(collListItem); clientContext.load(collListItem1); clientContext.load(collListItem2); clientContext.load(collListItem3); clientContext.load(collListItem4); clientContext.load(collListItem5); clientContext.load(collListItem6);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    alert("retrieve list");
    function onQuerySucceeded(sender, args) {
    alert("succeed");
    var listItemEnumerator = collListItem.getEnumerator(); var listItemEnumerator1 = collListItem1.getEnumerator(); var listItemEnumerator2 = collListItem2.getEnumerator();
    var listItemEnumerator3 = collListItem3.getEnumerator(); var listItemEnumerator4 = collListItem4.getEnumerator(); var listItemEnumerator5 = collListItem5.getEnumerator(); var listItemEnumerator6 = collListItem6.getEnumerator();
    var sumClose = 0; var sumClose1 = 0; var sumHigh = 0; var sumMedium = 0; var sumLow = 0; var sumLowMedium = 0; var sumMediumHigh = 0;
    var sumOpen = 0; var sumOpen1 = 0; var sumHigh1 = 0; var sumMedium1 = 0; var sumLow1 = 0; var sumLowMedium1 = 0; var sumMediumHigh1 = 0;
    while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); sumClose += oListItem.get_item('Close'); sumOpen += oListItem.get_item('Open'); sumHigh += oListItem.get_item('High'); sumMedium += oListItem.get_item('Medium'); sumLow += oListItem.get_item('Low'); sumLowMedium += oListItem.get_item('LowMedium'); sumMediumHigh += oListItem.get_item('MediumHigh'); }
    while (listItemEnumerator1.moveNext()) { var oListItem1 = listItemEnumerator1.get_current(); sumClose1 += oListItem1.get_item('Close'); sumOpen1 += oListItem1.get_item('Open'); sumHigh1 += oListItem1.get_item('High'); sumMedium1 += oListItem1.get_item('Medium'); sumLow1 += oListItem1.get_item('Low'); sumLowMedium1 += oListItem1.get_item('LowMedium'); sumMediumHigh1 += oListItem1.get_item('MediumHigh'); }
    while (listItemEnumerator4.moveNext()) { var oListItem4 = listItemEnumerator4.get_current(); sumMinimal += oListItem4.get_item('Minimal'); sumModerate += oListItem4.get_item('Moderate'); sumSevere += oListItem4.get_item('Severe'); sumCritical += oListItem4.get_item('Critical'); }
    while (listItemEnumerator5.moveNext()) { var oListItem5 = listItemEnumerator5.get_current(); sumUnlikely += oListItem5.get_item('Unlikely'); sumSomewhat += oListItem5.get_item('Somewhat'); sumLikely += oListItem5.get_item('Likely'); sumHighlyLikely += oListItem5.get_item('HighlyLikely'); }
    while (listItemEnumerator6.moveNext()) { var oListItem6 = listItemEnumerator6.get_current(); sumBudget += oListItem6.get_item('Project_x0020_Budget_x0020_Amoun'); sumCommitted += oListItem6.get_item('Committed_x0020_Budget'); }
    count = this.collListItem2.get_count();
    count1 = this.collListItem3.get_count();
    while (listItemEnumerator2.moveNext()) {
    var oListItem2 = listItemEnumerator2.get_current();
    var stat = oListItem2.get_item('Project_x0020_Status');
    if (stat == "Intiation") {
    initiate = initiate + 1
    if (stat == "Planning") {
    planning = planning + 1
    if (stat == "Execution") {
    execution = execution + 1
    if (stat == "Closing") {
    closing = closing + 1
    //alert("initiate" + initiate); alert("planning" + planning); alert("execution" + execution); alert("closing" + closing);
    //alert("countOpen" + count); alert("closed:" + count1);
    window.close1 = sumClose; window.close2 = sumClose1; window.high = sumHigh; window.low = sumLow; window.medium = sumMedium; window.mediumHigh = sumMediumHigh; window.lowMedium = sumLowMedium;
    window.open1 = sumOpen; window.open2 = sumOpen1; window.high1 = sumHigh1; window.low1 = sumLow1; window.medium1 = sumMedium1; window.mediumHigh1 = sumMediumHigh1; window.lowMedium1 = sumLowMedium1;
    drawChart();
    function onQueryFailed(sender, args) { alert('Request failed.. ' + args.get_message() + '\n' + args.get_stackTrace()); }
    google.load("visualization", "1", { packages: ["corechart"] });
    function drawChart() {
    var data = google.visualization.arrayToDataTable([['Task', 'Issues'], ['Close', window.close1], ['Open', window.open1]]);
    var data1 = google.visualization.arrayToDataTable([['Task', 'Risks'], ['Close', window.close2], ['Open', window.open2]]);
    var data2 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high, window.mediumHigh, window.medium, window.lowMedium, window.low]]);
    var data3 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high1, window.mediumHigh1, window.medium1, window.lowMedium1, window.low1]]);
    var data4 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Closed', count1], ['Open', count]]);
    var data5 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Initiation', initiate], ['Planning', planning], ['Execution', execution], ['Closing', closing]]);
    var data6 = google.visualization.arrayToDataTable([['Program', 'Impact'], ['Minimal', sumMinimal], ['Moderate', sumModerate], ['Severe', sumSevere], ['Critical', sumCritical]]);
    var data7 = google.visualization.arrayToDataTable([['Program', 'Probability'], ['Highly Likely/Probable(76%-100%)', sumHighlyLikely], ['Likely(51%-76%)', sumLikely], ['Somewhat Likely(26%-50%)', sumSomewhat], ['Unlikely/Improbable(0%-25%)', sumUnlikely]]);
    var data8 = google.visualization.arrayToDataTable([['Project', 'Budget'], ['Approved', sumBudget], ['Committed', sumCommitted]]);
    var options = { title: 'Program Issues', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options1 = { title: 'Program Risks', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options2 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options3 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options4 = { title: 'Project Status', width: 225, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options5 = { width: 175, height: 200, legend: { position: 'top', maxLines: 10 }, pieSliceText: 'value', };
    var options6 = { title: 'Program Risk Impact', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options7 = { title: 'Program Risk Probable', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options8 = { title: 'Project Budget', width: 300, height: 300, legend: 'bottom', pieSliceText: 'value', };
    var chart = new google.visualization.PieChart(document.getElementById('chart_div3'));
    chart.draw(data, options);
    var chart1 = new google.visualization.PieChart(document.getElementById('chart_div'));
    chart1.draw(data1, options1);
    var chart2 = new google.visualization.ColumnChart(document.getElementById('chart_div1'));
    chart2.draw(data2, options2);
    var chart3 = new google.visualization.ColumnChart(document.getElementById('chart_div2'));
    chart3.draw(data3, options3);
    var chart4 = new google.visualization.PieChart(document.getElementById('chart_div4'));
    chart4.draw(data4, options4);
    var chart5 = new google.visualization.PieChart(document.getElementById('chart_div5'));
    chart5.draw(data5, options5);
    var chart6 = new google.visualization.PieChart(document.getElementById('chart_div6'));
    chart6.draw(data6, options6);
    var chart7 = new google.visualization.PieChart(document.getElementById('chart_div7'));
    chart7.draw(data7, options7);
    var chart8 = new google.visualization.ColumnChart(document.getElementById('chart_div8'));
    chart8.draw(data8, options8);
    </script>
    </head>
    <body>
    <table >
    <tbody>
    <tr>
    <td id="chart_div8" colspan="2" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div4" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div5" style="border-bottom:ridge;border-right:ridge;border-top:ridge"></td>
    </tr>
    <tr>
    <td id="chart_div" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div2" style="border-bottom:ridge;"></td>
    <td id="chart_div3" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div1" style="border-bottom:ridge;border-right:ridge""></td>
    </tr>
    <tr>
    <td id="chart_div6" colspan="2" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div7" colspan="2" style="border-bottom:ridge;border-left:ridge;border-right:ridge"></td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    This content editor webpart not working in sharepoint page. Once I checked out to the page then chart is working. When i checkedin function not get called. How to fix this?
    THanks in advance!

    In SharePoint 2013, sp.js and sp.runtime.js does not load on the page in published mode. You need to explicitly load these files. You can check using IE developer tools in the Script section that in published mode these files are missing.
    In order to fix this issue explictly refer these two js files on your page.
    <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="_layouts/15/sp.js"></script>
    Geetanjali Arora | My blogs |

  • How to modify the cursor palette size in a waveform graph programmaticaly in LabVIEW8

    In previous version of LabVIEW it vas possible to create reference to cursor panel (array) so it was possible to resize, change number of rows, in it. It will be useful for me to have reference to TreeControl contained in cursor legend. How to create this reference? The method described in the manual works for scale legend but not work for cursors panel.

    Thank you JLS once again.
    In my opinion the cursor palette at list should have the following functionality:
    Automatic resizing of the panel while adding and removing cursors programmatically (like plot legend)
    Positioning the panel programmatically (like plot legend)
    Hiding any columns and rows. For example when I hide one of the cursors (let say the second one, not necessary the last one) also this one should disappear from cursors panel, removing cursor from cursor list might be inconvenient. If I have one cursor and not enough room to show cursor panel I can not hide the cursor name column that is unusable but occupies place on the panel
    Altering number of column and rows programmatically. If my cursors serve for selecting part of the signal to be processed (for example trimming signal) it is sense less to show cursors Y position
    Hiding cursor navigator, it works very badly (try to move cursor only to the next measurement point to select exactly for example 10000 points), so I move it under other controls.
    Formatting data displayed
    Having additional elements (coming from underlying tree control) is not necessary in several cases. Life will be much more pleasant if it will be possible to get reference to this tree control.
    By the way it is possible to customize this palette. In design mode configure WaveformGraf to show cursor legend. Select it and then select from menu “Customize control…” Now you can do whatever you (I) want, for example change the column name from X to Time. Save your work, if prompted replace original with just designed and… nothing changes – funny isn’t it?
    Best regards,
    Zygmunt

  • How to increase the size of piechart in ssrs?

    Hi how to increase the size of piechart in my design mode its showing very large one,when running/preview mode its displaying very small, i have total 10 values to dispaly in the legend series values,So here i have set the visibulity option to out side ,
    so if the pie chart is dispalying small ,the values of the legend will come in one place and ,so can you suggest me how to increase the size of my chart and how would i show my legend values separatly without closing one by one.
    Can some one please help me out for this..

    Hi Ychinnari,
    According to your description that you want increase the size of pie chart in the design mode to make all the ten values in the legend series to display, you have do some setting but the pie chart still display very small and not display some of the
    values, right?
    I have tested on my local environment and found that the display of the chart legend value can be effect by many factor: the size of the chart, chart area position and chart legend position.
    Details steps below for your reference about how to set the properties to make all the legend values display correctly:
    Select the Chart properties and expand the size and increase the values for the width and the height, then preview to see if all the legend values are display.
    If this do little help, the problem due to the chart area position and chart legend position need to reset too.
    Select the chart area properties and expand the CustomPosition under the Position, choose the Enabled to true and  reset the Width, height of the pie chart.
    Reset this properties to make the chart area more Narrow, thus we can set the Legend area more wider.
    Select the chart Legend properties and expand the CustomPosition under the Position, choose the Enabled to true to reset the Width, height of the chart Legend
    Reset this properties to make the Legend area more bigger (wider and higher) thus it will display more values in the Legend area.
    If your problem still exists, please feel free to ask.
    Regards
    Vicky Liu

  • Charts: Excel vs. HTML DB

    Looking at material like
    http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=390
    and in general http://peltiertech.com/Excel/Charts/
    one realizes that Excel's charting feature are light years ahead of anything else out there in the market. The amount of flexibility, real time feedback (previews), customization, etc Excel provides for charting is just unbelievable.
    One of HTML DB's strengths is replacing the various Excel spreadsheets floating around around the enterprise by consolidating the information, it has to provide charting functionality that is at least close to what Excel provides. Unfortunately, that is not yet possible.
    Reading http://www.oracle.com/technology/products/database/application_express/2006_sod.html
    what are some of the "Improved charting capabilities, focusing on multi-series charts" specifically?
    Wish list for pie charts:
    1. Specify legend labels next to each slice with/without the associated data point
    2. Fully exploded pie chart or just few slices separated.
    Thanks

    Thanks for responding.
    I started off my wishlist in my original post.
    But basically, just review the links I posted, see for yourself how Excel does it and take it from there. Excel is the (IMHO) undisputed leader as far as interactive charting is concerned, so you can't go wrong by following Excel's lead.
    See, charting involves a lot of configurable options that are highly subjective and personal. People have different likes/dislikes about colors, legend positions, slices, etc, etc.
    Ideally, all these should be run-time options that each user can tweak as they want. For example, the 'Show Legend' checkbox is a design-time option, that should be made a run-time option.
    I realize that some things would involve a page refresh, but the goal should be to do as many of these tweaks using DHTML/CSS magic. For example
    1. Show/hide legend
    2. Show data labels next to each slice
    3. Show data point value next to each slice
    4. Change chart type (This would definitely need a page refresh!)
    etc
    Thanks

  • Operation on ppt

    I am developing  a project operate ppt files , in C#,generate a ppt directly after processing the data.But when I
    am add the charts, i can only add the chart frame, I need to input data then the chart can be correct. How to add chart to excel with data without input?
    This is my code:
    private void chartButton_Click(object sender, EventArgs e)
    string path = pptPathTextBox.Text;
    OpenPPT(path);
    //Add a new slide
    int count = presentation.Slides.Count;
    presentation.Slides.Add(count + 1, PPT.PpSlideLayout.ppLayoutBlank);
    //Add a pie chart
    slide = presentation.Slides[count + 1];
    Graph.Chart aChart = (Graph.Chart)slide.Shapes.AddOLEObject(150, 150, 480, 320,"MSGraph.Chart.8", "", MsoTriState.msoFalse, "", 0, "",MsoTriState.msoFalse).OLEFormat.Object;
    aChart.ChartType = Graph.XlChartType.xl3DPie;
    aChart.Legend.Position = Graph.XlLegendPosition.xlLegendPositionBottom;
    aChart.HasTitle = true;
    aChart.ChartTitle.Text = "It is a pie chart";

    Try to use this
    Excel library, it can generate and edit many kinds of charts, add charts to powerpoint code here:
    private void btnRun_Click(object sender, EventArgs e)
    //create PPT document
    Presentation presentation = new Presentation();
    //set background Image
    string ImageFile = "bg.png";
    RectangleF rect2 = new RectangleF(0, 0, presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height);
    presentation.Slides[0].Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageFile, rect2);
    presentation.Slides[0].Shapes[0].Line.FillFormat.SolidFillColor.Color = Color.FloralWhite;
    //insert chart
    RectangleF rect = new RectangleF(presentation.SlideSize.Size.Width / 2 - 200, 100, 400, 400);
    IChart chart = presentation.Slides[0].Shapes.AppendChart(Spire.Presentation.Charts.ChartType.Cylinder3DClustered, rect);
    //add chart Title
    chart.ChartTitle.TextProperties.Text = "Report";
    chart.ChartTitle.TextProperties.IsCentered = true;
    chart.ChartTitle.Height = 30;
    chart.HasTitle = true;
    //load data from XML file to datatable
    DataTable dataTable = LoadData();
    //load data from datatable to chart
    InitChartData(chart, dataTable);
    chart.Series.SeriesLabel = chart.ChartData["B1", "D1"];
    chart.Categories.CategoryLabels = chart.ChartData["A2", "A7"];
    chart.Series[0].Values = chart.ChartData["B2", "B7"];
    chart.Series[0].Fill.FillType = FillFormatType.Solid;
    chart.Series[0].Fill.SolidColor.KnownColor = KnownColors.Brown;
    chart.Series[1].Values = chart.ChartData["C2", "C7"];
    chart.Series[1].Fill.FillType = FillFormatType.Solid;
    chart.Series[1].Fill.SolidColor.KnownColor = KnownColors.Green;
    chart.Series[2].Values = chart.ChartData["D2", "D7"];
    chart.Series[2].Fill.FillType = FillFormatType.Solid;
    chart.Series[2].Fill.SolidColor.KnownColor = KnownColors.Orange;
    //set the 3D rotation
    chart.RotationThreeD.XDegree = 10;
    chart.RotationThreeD.YDegree = 10;
    //save the document
    presentation.SaveToFile("chart.pptx", FileFormat.Pptx2010);
    System.Diagnostics.Process.Start("chart.pptx");
    //function to load data from XML file to DataTable
    private DataTable LoadData()
    DataSet ds = new DataSet();
    ds.ReadXmlSchema("data-schema.xml");
    ds.ReadXml("data.xml");
    return ds.Tables[0];
    //function to load data from DataTable to IChart
    private void InitChartData(IChart chart, DataTable dataTable)
    for (int c = 0; c < dataTable.Columns.Count; c++)
    chart.ChartData[0, c].Text = dataTable.Columns[c].Caption;
    for (int r = 0; r < dataTable.Rows.Count; r++)
    object[] data = dataTable.Rows[r].ItemArray;
    for (int c = 0; c < data.Length; c++)
    chart.ChartData[r + 1, c].Value = data[c];

  • JasperReport with chart in xml?

    Hi,
    I am using jasperreports 1.0 to create reports in my application. Some reports has charts.
    I'd like the legend stay of the right side of the chart instead in botton area.
    How can I determine the legend position in my xml file?
    I am not using java code to make the chart, I am using the xml file only.
    I am using the following tags in my xml:
    <pie3DChart> 
    <chart evaluationTime="Group" evaluationGroup="City"> 
    <reportElement x="0" y="40" width="500" height="200"/> 
    </chart>
    <pieDataset> 
    <dataset incrementType="None" incrementGroup="" resetType="Group" resetGroup="City"/> 
    <keyExpression>$F{address}</keyExpression> <valueExpression>$F{nrpeople}</valueExpression> 
    <labelExpression> </labelExpression>
    </pieDataset> 
    <pie3DPlot> 
    <plot/>
    </pie3DPlot> 
    </pie3DChart>
    Please, someone can help me?
    Thanks by help

    Hi all,
    I don't resolve this question yet.
    Please, someone can help me?
    Thanks in advance
    Hacinn

  • Google visualization charts

    I tried to add minor changes to the google visualization plugins but they were not taken into effect when the charts were rendered. Take, titlePosition and legend.position, for example.
    <pre>
    l_legend_position varchar2(30) := 'top';
    apex_javascript.add_attribute('legend.position' , l_legend_position )||
    </pre>
    Thanks.

    Things like the following did not work:
    <pre>
    apex_javascript.add_attribute('vAxis' , '{title: ''Year'',  titleTextStyle: {color: ''red''}}' )||
    </pre>
    Thanks.

Maybe you are looking for

  • How can i call a CGI script from java?

    The subject pretty much says it all. I want to call a perl cgi script so i can read from/write to files on a server. I don't know how to sign applets and this would be the easiest way for me, if someone could please tell me.

  • Can't delete iTunes Match music from Music app in iOS 6 Music app?!

    Totally insane - the ability to delete music downloaded from iTunes match has been removed from the iOS 6 Music app! No more "swipe left and delete". I can't find any way to delete music, in fact. Can someone please tell me this is a massive mistake

  • Windows 7 64 bit drivers for HP ENVY 17-j002er

    Hello, i am having trouble finding the appropriate drivers for OS. Could you please help me? Thank you in advance. This question was solved. View Solution.

  • BI 7 WAD integrated with Visual Composer

    Hello gurus! I need to know how can I add WAD item into VC report? I am using BI 7, and I havent found information about it, only from BW 3.x Somebody can help me, please??? Thanks a lot for all your help Best Regards Lety

  • Missing Handling Unit

    Hi All, I have a delivery with 3 line items. One of the operators forgot to create a handling unit for item 20. Is there a tcode I can use to create a handling unit and assign that handling unit to my delivery? Please help. Meghna