NoBullMan

Members
  • Content count

    11
  • Joined

  • Last visited

Everything posted by NoBullMan

  1. Labels On Multi-Line

    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.
  2. Labels On Multi-Line

    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>
  3. Hi, how can I initiate the exporting of a chart to image or PDF through anything but context menu (e.g. through link button, button, drop down list selection, etc.)? Thanks.
  4. Initiate Export Through Link

    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.
  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. Initiate Export Through Link

    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?
  7. Adding An Image, Axis Values And Printing

    Thanks. HttpUtility.UrlEncode worked.
  8. Initiate Export Through Link

    Is it possible to do this on server side, in link button's OnClick event?
  9. Adding An Image, Axis Values And Printing

    I found "Export charts to image/PDF --> Server Side Exporting" in the documentation page.
  10. Invalid Xml Data

    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.
  11. Invalid Xml Data

    Found my answer here: http://forum.fusioncharts.com/topic/7805-pie-chart-not-work-if-is-present-in-label-or-value/page__p__31239__hl__%2Binvalid+%2Bxml+%2Bdata__fromsearch__1#entry31239 I needed to replace '&' with '%26' (URLEncode instead of HTMLEncode)