NoBullMan

Members
  • Content count

    11
  • Joined

  • Last visited

Posts posted by NoBullMan


  1. I got the labels to display on two lines but can't get the % sign to show:

     

    for (int i = 4; i < table.Columns.Count - 2; i++)<div>{</div><div>        xmlData.AppendFormat("<category label='" + table.Columns[i].ColumnName + "\n " + SomeValue + " (" +  Some_Percentage + "%)' />");</div><div>}</div><div>xmlData.Append("</categories>");</div><div>
    


  2. How do I break labels on two lines?

    My chart labels come from a specific column of a data table I use to plot the chart. But I need to add additional info below it (like value and percentage).

     

    for (int i = 4; i < table.Columns.Count - 2; i++)
    {
       xmlData.AppendFormat("<category label='" + table.Columns[i].ColumnName + " " + some_value_here + " (" +
       percentage_here + "%)' />");
    }
    
    

     

     

    I need some_value_here (percentage_here) to be below the label values.


  3. When exporting the charts as images/PDFs using server-side Export Handlers, there are two actions that you can choose from:

    1. Download to end user - Return the generated image/PDF back to the client (browser) for downloading

    2. Save on server disk - Save the image on server-disk and return the URL of the same to callback JavaScript functions

     

    For more detail on 'Exporting Charts as PDF or Images > Server-side export > Returning the exported output as download', please refer to the link below,

    http://docs.fusionch...erDownload.html

     

    For more detail on 'Exporting Charts as PDF or Images > Server-side export > Saving exported output on server disk', please refer to the link below,

    http://docs.fusionch...ServerSave.html

     

    Find attached illustration for your reference.

     

    Thanks for the reply.

     

    I have already got the exporting to work using "Download" method. But it is initiated through context menu. As you are familiar witht users, it might not dawn on them to righ click on the chart to get the context menu and initiate a download. I wanted to add a link button with some text like "click here to download chart" and was wondering how I can initiate the downloading in the OnClick event of the link button.


  4. Hi,

     

    If your willing to export chart via client side process refer the following links:

     

    Please refer this post: http://forum.fusionc...h__1#entry43885

     

    For more information about client-side export refer this: http://docs.fusionch...ientSimple.html

     

     

    I create the XML in code behind dynamically and use FusionCharts.RenderChartHTML to render the chart. I need to be able to do this on server side. Is it possible?


  5. Hi,

    I have a couple of questions:

     

    How can I add an image, like the application logo, to the top right corner of a chart, on the same line as the caption/subcaption?

     

    For my x-axis I have values like 1, 2, 3, ..., 24+, 48+. When I plot the chart the + sign does not display. Not all values have the + sign, just a couple of them.

     

    Is there a way to add a link/button that would save the chart to a file, like PDF?

     

    Thanks.


  6. Hi,

    I am getting Invalid XML Data error and not sure how to resolve it. Some charts display OK and some don't. When I compare the content of XML Data between the ones that work and the ones that don't, the only difference between them is the existence of special characters, like &.

    Before appending Label/Value pair, I replace all occurences of special characters with their html equivalant ('&' with '&', single quote with '''. etc.) but still get the error. Not sure what else to do or waht else could be wrong.

    (I am doing this in ASP.Net, C#):

     

    foreach (DataRow dr in table.Rows)

     

    {

     

    string sLabel = dr["Name"].ToString().Replace("'", "'").Replace("&", "&").Replace("\"", "&quote;").Replace("\\", "\\\\");

     

    xmlData.AppendFormat("<set label='{0}' value='{1}' /> ", sLabel, Convert.ToInt16(dr["Count"]));

     

    }

     

    xmlData.Append("</chart>");

     

    return FusionCharts.RenderChartHTML("Charts/FusionCharts/Pie3D.swf", "", xmlData.ToString(), "Dist", "500", "250", true);

     

    ]

     

    I traced the code and turned on debugging for chart and this is the final XML data (it is 3-D Pie Chart):

     

    <chart caption='Machine Distribution' subcaption='(12/14/2010)' lineThickness='1' showValues='1' labelDisplay='Stagger' formatNumberScale='0' anchorRadius='2' divLineAlpha='20' divLineColor='CC3300' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridColor='000099' shadowAlpha='40' labelStep='1' numvdivlines='5' chartRightMargin='35' bgColor='FFFFFF,000099' bgAngle='270' bgAlpha='10,10' alternateHGridAlpha='5' yAxisName='Rate' yAxisMaxValue='50' lineColor='FF5904'>

     

    <set label='ANCHORAGE AMF ' value='11' />

    <set label='CEDAR RAPIDS (IA) PDF' value='11' />

    <set label='DENVER (CO) PDC ' value='89' />

    <set label='DES MOINES (IA) PDC' value='30' />

    <set label='EVERETT PDF' value='24' />

    <set label='KANSAS CITY (MO) PDC' value='60' />

    <set label='MINNEAPOLIS (MN) P&DC' value='61' />

    <set label='OMAHA (NE) PDC' value='24' />

    <set label='PHOENIX (AZ) PDC' value='7' />

    <set label='PORTLAND (OR) PDC' value='33' />

    <set label='QUAD CITIES (IL) PDF' value='12' />

    <set label='SAINT PAUL (MN) PDC' value='46' />

    <set label='SALT LAKE CITY (UT) PDC' value='39' />

    <set label='SEATTLE (WA) PDC' value='39' />

     

    </chart>

     

    This is the error I see in debug window:

     

    ERROR: Invalid XML encountered. An attribute value is not properly terminated. Click the above "dataURL Invoked" link to see the XML in browser Or check the XML data provided.

     

    Also, it says 'click the above dataURL Invooked link', but I don;t see any such link to click.

     

    Thanks.