cawthor

Members
  • Content count

    11
  • Joined

  • Last visited

About cawthor

  • Rank
    Junior Member
  1. Is there a way to hide a zero value bar in a multi-series bar graph? If I have the set definition as <set /> then no bar is displayed, but there is still a gap on the graph where the bar would be displayed.
  2. a few possible IE and Save as Image bugs

    Has Bug 1 been resolved yet? I just encountered the same thing. Thanks.
  3. AJAX ModalPopupExtender & IE6

    Thank You! This works perfectly! I can't say I fully understand 'how' this works, I'm slightly confused as to what is happening in the following lines of code. But thanks once again! ' Ajax Control Adding Dim cm As ClientScriptManager = Page.ClientScript Dim cbReference As String = cm.GetCallbackEventReference(Me, "arg", "ReceiveServerData", "context") ' Add Javascript on page Dim callbackScript As String = "function CallServer(arg, context)" + "{" + cbReference + "; }" cm.RegisterClientScriptBlock(Me.GetType(), "CallServer", callbackScript, True) [code]
  4. AJAX ModalPopupExtender & IE6

    sorry, there are 2 'smiley' faces in my code!!! Don't know how to disable that. Both should be the ASP : Panel tag.
  5. AJAX ModalPopupExtender & IE6

    I've added a chart to my ASP .NET page, and made the chart a hotspot via the 'clickURL' property. When the user clicks the chart, I want to display a larger version in an AJAX Modal popup. This works fine in IE7, but won't work correctly in IE6. The pop-up appears but says 'No Data to display'. If I then hit F5 (refresh), it works fine (until I post-back then it's back to 'no Data...' and F5 to make it work again). I've pasted some test code below which works fine in IE7, but the above issue in IE6. Is there another way I can achieve this...or am I doing something incorrect? Thanks. default.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <SCRIPT LANGUAGE="Javascript" SRC="/FusionCharts/Includes/FusionCharts.js"></SCRIPT> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <title></title> <script> function showModal() { var strURL = "modalChart.aspx"; strURL = escape(strURL); var chartObj = getChartFromId("modalChart"); chartObj.setDataURL(strURL); $find("ModalPopupExtender1").show(); } </script> </head> <body> <form id="form1" runat="server"> <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true" EnableScriptLocalization="true" ID="ScriptManager1" /> <center> <%=GetChartHtml()%> </center> <div style="display:none; visibility:hidden;"> <asp:Button runat="server" ID="hiddenButton" /> </div> <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="hiddenButton" PopupControlID="PNL" OkControlID="ButtonOk" /> <asp:Panel ID="PNL" runat="server" style="width:800px; height:500px; background-color:White; border-width:2px; border-color:Black; border-style:solid; padding:6px;"> <center> <%=GetModalChartHtml()%> <br /> <asp:Button ID="ButtonOk" runat="server" Text="OK" /> </center> </asp:Panel> </form> </body> </html> default.aspx.vb Imports System.Data Imports System.Data.SqlClient Imports InfoSoftGlobal Imports System Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.HtmlControls Partial Class _Default Inherits System.Web.UI.Page Public Function GetChartHtml() As String Dim xmlData As StringBuilder = New StringBuilder() xmlData.Append("<chart clickURL='javascript:showModal()' decimals='2' labelstep='2' imageSave='1' drawAnchors='1' anchorAlpha='100' slantLabels='1' borderAlpha='100'><categories>") xmlData.Append("<category label='7/23/2008' />") xmlData.Append("</categories>") xmlData.Append("<dataset>") xmlData.Append("<set value='100' />") xmlData.Append("</dataset></chart>") Return FusionCharts.RenderChart("/FusionCharts/Charts/MSColumn3d.swf", "", xmlData.ToString(), "test", "435", "228", False, True) End Function Public Function GetModalChartHtml() As String Return FusionCharts.RenderChart("/FusionCharts/Charts/MSColumn3d.swf", "", "<chart></chart>", "modalChart", "760", "425", False, True) End Function End Class modalChart.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="modalChart.aspx.vb" Inherits="modalChart" %> modalChart.aspx.vb Imports System.Data Imports System.Data.SqlClient Partial Class modalChart Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim xmlData As StringBuilder = New StringBuilder() xmlData.Append("<chart decimals='2' labelstep='2' imageSave='1' drawAnchors='1' anchorAlpha='100' borderAlpha='100'><categories>") xmlData.Append("<category label='7/24/2008' />") xmlData.Append("</categories>") xmlData.Append("<dataset>") xmlData.Append("<set value='200' />") xmlData.Append("</dataset></chart>") Response.ContentType = "text/xml" Response.Output.Write(xmlData.ToString()) End Sub End Class
  6. I added the following to the FusionCharts.js file in order to prevent existing page controls from appearing behind the FusionCharts graph (eg drop-down menu): this.addParam('wmode', 'transparent'); However, this has had an adverse effect when enabling rotation on a 3d doughnut. Instead of a fluid rotation, the rotation effect is staggered. It looks like it freezes then jumps to the new rotation point (if you know what I mean).
  7. Hi, I'm using the grid and have initially set the border color to black and the border alpha to 100. If I then change the alternate row bg color (instead of using the default), no border is displayed on the alternate rows. Actually, the pixels are there for a border, they're just colored the same as the alternate row instead of the black previously defined.
  8. Charts with Control Limits

    Are there any charts that calculate control limits for you (UCL & LCL) based on the data sample? Either available in FusionCharts or PowerCharts? I noticed on one of the line graphs in the 'Chart Gallery', upper and lower control limits were highlighted (as trend values). I didn't know if the values were automatically calculated based on the data, or whether I'd need to calculate that and apply the values to the graph. Thanks.
  9. Caption for Gauges?

    Am I just missing it or is there no caption option for Gauges? Seems like this would be a standard. Every graph / chart needs a header!
  10. Out of memory error multiple charts

    Any updates on this issue? I have the same problem. If I register 2 gpahs with javascript then I get the Out of memory error. However, this seems to be PC specific. I have a desktop and laptop both running Windows XP Professional SP2 and the page works fine on 1 and I get the error on the other.
  11. I am following the drill-down example using ASP in the evaluation version. In order to call the detail graph, you use the following syntax to set up the links: strXML = strXML & "<set label='" & ors("FactoryName") & "' value='" & ors2("TotOutput") & "' link='updateChart(" & oRs("FactoryId") & ")'/>" When calling the 'updateChart' function, I want to pass a date value, so it needs to be quoted. How do I correctly add quotes around the date value without terminating the string? This is what I'm trying to do, but adding the single quotes around the date value terminates the string being built. I've tried various ways of escaping the quotes, like '', /'...etc. strXML = strXML & "<set label='" & RS("SYS_DATE") & "' color='ABC4D6' value='" & RS("AMOUNT") & "' link='updateChart('5/27/2007')'/>"