DannyR

Members
  • Content count

    83
  • Joined

  • Last visited

Everything posted by DannyR

  1. Xml Attributes Between Flash And Javascript

    That's only part of the problem, Ayan.
  2. Xml Attributes Between Flash And Javascript

    Taking a look at it now Nik, will get back to you shortly.
  3. Xml Attributes Between Flash And Javascript

    Great, and your HTML/JS code?
  4. Xml Attributes Between Flash And Javascript

    Good morning. Please post your code here and I will help you out.
  5. Again, this is working in the Flash version, but not in the HC version (both for 2D as well as 3D): <script language="JavaScript"> var jsonData = { chart: { caption: "Title", palettecolors:"BF0900,00FF00,FFFF64", showvalues: "0" }, "data":[ { label: "Failed", value: "1", issliced: "1" }, { label: "Passed", value: "4" }, { label: "Unknown", value: "0" } ] }; FusionCharts.setCurrentRenderer("javascript"); var chart = new FusionCharts("../../js/FusionCharts/Pie2D.swf", "myChart-chartId", 400, 300); chart.setJSONData(jsonData); chart.render("myChart"); </script> You'll see that not only is a slice of the pie missing, but my colors aren't respected. The problem may be the "0" value for "unknown" - however this SHOULD be a valid value! FC team I like your product a lot, but I convinced my company to purchase on the basis of NON-flash support. We NEED to get these issues resolved before we can ship our next version!
  6. Html5 Bar Chart, X-Axis Names Not Showing

    Cool! Always glad to help. =]
  7. I'm confused. Why are you using MSColumn3DLineDY if all you want is a simple column chart? The whole purpose of that chart type is to combine two different types of charts that will generally (although not always) have two different Y Axis scales.
  8. Html5 Bar Chart, X-Axis Names Not Showing

    Again, you're welcome. You could try putting a formatter on your axis. For example, if you wanted to skip every other label in your first example, you could modify the X Axis like this: xAxis: { labels: { align: "right", rotation: 0, x: -5, y: 5, formatter: function() { if (this.index % 2 == 0) { return this.value; } else { return ""; } } } } So, change the 2 to 3 for every third, etc. I've never really used this, so let me know how you make out.
  9. Html5 Bar Chart, X-Axis Names Not Showing

    Actually, I might change xAxis.labels.x from 0 to -5 to bring the labels away from the axis a bit. I mean, as long as we've come this far.... ;]
  10. Html5 Bar Chart, X-Axis Names Not Showing

    You're welcome. This should get you to where you need to be - note that I've hard-coded a space of 200 pixels for your labels. IDEALLY, you would writesome kind of function to adjust that number based on your longest label. Of course, if you're using hard-coded data this isn't an issue: if (!!chart._overrideJSChartConfiguration) { chart._overrideJSChartConfiguration({ chart: { marginLeft: 200 }, xAxis: { labels: { align: "right", rotation: 0, x: 0, y: 5 } }, yAxis: [{ alternateGridColor: null, gridLineWidth: 0 }], plotOptions: { series: { dataLabels: { enabled: true, style: { fontSize: "7pt" }, color: "#FFFFFF", align: "right", x: -10, y: -2 } } } }); } - marginLeft is the space we're allowing for the labels - we're un-rotating the X Axis, and offsetting the labels by 5 pixels (in this chart type, axes are reversed) - I also added styling on the Y Axis to remove the yellow background striped and grid marks (to match the flash version) Interesting challenge! Enjoy...
  11. Html5 Bar Chart, X-Axis Names Not Showing

    You need to call it on YOUR instance of chart. So if you're using myChart instead of chart, then its myChart._overrideJSChartConfiguration...
  12. Html5 Bar Chart, X-Axis Names Not Showing

    Here's a solution for the bar labeling. Place this code before you call render(): if (!!chart._overrideJSChartConfiguration) { chart._overrideJSChartConfiguration({ plotOptions: { series: { dataLabels: { enabled: true, style: { fontSize: "7pt" }, color: "#FFFFFF", align: "right", x: -10, y: -2 } } } }); } Still working on the Y-Axis labels. I'll let you know.
  13. Eliminate Rounded Edges On Pie + Doughnut

    Yep, it's a lot to learn. I've only been using it for a month or two, but we have a big reporting push here so I've been working with it pretty much 7 days/week. Let me know how you make out, and if you have any other questions.
  14. Eliminate Rounded Edges On Pie + Doughnut

    If so, you can set use3DLighting="0" to get rid of the edge. You might want to set showShadow="0" as well, this will eliminate the slight drop-shadow around the pie. Take a look here: http://www.fusioncharts.com/docs/ChartSS/Pie2D.html
  15. Eliminate Rounded Edges On Pie + Doughnut

    Are you talking about the shadow on the edges, as seen here? http://www.fusioncharts.com/Gallery/Chart.asp?pie2d_2
  16. Pie2D Chart Label Problems

    Unfortunately, this is not possible until HighCharts 2.1 comes out (which is in beta now). You could hack it, but it would involve modifying the highcharts.js file (which might be a violation of your license).
  17. Ipad - Fusioncharts And Calendar

    Screenshots? Code?
  18. Error Rendering Chart With Javascript

    Btw, in case you're interested, we're a Dojo shop (not a big fan, but it gets the job done). So here's my test for Flash - works 100%: useFlash = !!dojox.embed.Flash.available; I'm sure there are plenty of free sniffers around that will do the same thing. My point is, its definitely possible to detect this scenario and respond properly to it. More evidence that this is a bug or AT THE VERY LEAST an enhancement request.
  19. Error Rendering Chart With Javascript

    I would file it as a bug. The scenario you present is reasonable. We know that (at least in Firefox) if Flash is present but disabled, the chart throws a Javascript error. Unless you and I can respond to this error to have the application take a different action, then that IS a bug.
  20. Javascript Fallback For Powercharts?

    I believe the answers are NO and YES. As to what the timeframe is, we don't know yet.
  21. Error Rendering Chart With Javascript

    The problem is that FC doesn't seem to know that Flash isn't turned on. If it did, you could just change the renderer. Seems like a defect to me. In my own application, we have a check for Flash and we force the renderer based on that check (with the option to override via a URL param). You may have to go outside FC to do that. I'm looking at the objects they expose and I'm not seeing an sort of "Flash awareness". So my short-term solution to you is try a Flash sniffer, email support, and I'll keep digging (for you as well as my own curiosity). Update: I can find no way from within FC to get this to work. Seems that it thinks that Flash is enabled. I don't know if the client is reporting a Flash version number, or what it is. I've tried several different things. I'd say this was a bug, personally. Now, if you just want to test render a Javascript chart, that part is easy. Just set: FusionCharts.setCurrentRenderer("javascript"); before you call the renderer. I just do it before I instantiate the object.
  22. Error Rendering Chart With Javascript

    Yep, I'm with you now. My bad, I had path error in my link to the SWF file. Curious that it rendered the object anyway... but whatever. I've got debug on now in my local version and I'm having another look at it.
  23. Chart Y-Axis Label Alignment..

    There is not currently a way to move the yAxisName as you requested.
  24. X-Axis Limit Problem

    Mayuresh, please include a snippet of your code with your request.
  25. Error Rendering Chart With Javascript

    Bizarre. When I try your code, I get nothing (in normal mode, Flash turned on) in Firefox, IE & Crome! Weird thing is, the code executes without errors - I even turned on debug mode. Looking in Firebug, it creates the following code snip: <object style="visibility: visible;" id="myChartId" data="../../js/Doughnut2D.swf" class="FusionCharts" type="application/x-shockwave-flash" width="400" height="300" lang="EN"> <param value="noScale" name="scaleMode"/> <param value="noScale" name="scale"/> <param value="opaque" name="wMode"/> <param value="always" name="allowScriptAccess"/> <param value="best" name="quality"/> <param value="lang=EN&debugMode=1&DOMId=myChartId&registerWithJS=1&chartWidth=400&chartHeight=300&InvalidXMLText=Invalid data.&dataXML=%3Cchart%20%20isSliced%3D'0'%20streamlinedData%3D'0'%20showPercentValues%3D'1'%20isHollow%3D'0'%20showLabelsAtCenter%3D'0'%20chartBottomMargin%3D'20'%3E%3Cset%20label%3D'Retirement'%20value%3D'50'%2F%3E%3Cset%20label%3D'Vacation%20Home'%20value%3D'14'%2F%3E%3Cset%20label%3D'College'%20value%3D'10'%2F%3E%3Cset%20label%3D'Boat'%20value%3D'9'%2F%3E%3Cset%20label%3D'Camper'%20value%3D'2'%2F%3E%3Cset%20label%3D'World%20Travel'%20value%3D'10'%2F%3E%3Cset%20label%3D'Wedding'%20value%3D'5'%2F%3E%3Cstyles%3E%3Cdefinition%3E%3Cstyle%20type%3D'font'%20name%3D'captionFont'%20size%3D'15'%20color%3D'000000'%20%2F%3E%3Cstyle%20type%3D'font'%20name%3D'subCaptionFont'%20color%3D'555555'%20%2F%3E%3C%2Fdefinition%3E%3Capplication%3E%3Capply%20toObject%3D'CAPTION'%20styles%3D'captionFont'%20%2F%3E%3Capply%20toObject%3D'SUBCAPTION'%20styles%3D'subCaptionFont'%20%2F%3E%3C%2Fapplication%3E%3C%2Fstyles%3E%3C%2Fchart%3E&dataURL=" name="flashvars"/> </object> So, I never got to testing the "no-Flash" problem. May I ask, what version of FC are you using?