Excel Charts To MX Chart Compo
Hi all,
I have an excel file here, I was wondering if anybody knows how to apply an Excel file data to the Flash MX charting component like the barchart?
All opinions are welcome, I'm very willing to try your ideas.
Regards, Butch
FlashKit > Flash Help > Flash MX
Posted on: 11-10-2002, 12:43 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Inserting Pie Chart From Excel
I've got a Excel spread sheet that includes a 3D Pie Chart. Whenever I change data in a cell within Excel, the Pie Chart changes to reflect the new data.
I'd like to insert the Pie Chart into Flash MX and have it update if/when I make any changes in the Excel file.
Is this possible in Flash MX?
A Mask On A Layer With Button Compo Drops The Label
Hi
I think its a bug , when i create a mask over a layer witch contains a button component instance , the label of this button is masked by the mask while the button it self is displayed fine .
any ideas ?
thanks
ps : it does the same with any text field (static or dynamic) unless i embed the fonts and then its displayed fine .
[F8] Changing Caption Xml With The Change In The Video For A Single FlvPlayback Compo
Hi all,
I am having a problem in CaptionDisplay class used to add captions for a video.
In my project I have to show many videos in a flvPlayback component, and every video have their own caption xml file.
The caption file is working fine for the first video but when the video is changed the caption doesn't work, here is the code snippet I have used:
In the root I put this code:-
import mx.video.captions.*
var initObj:Object = new Object();
initObj.font = "_sans";
initObj.embedFonts = false;
initObj.textSize = 16;
initObj.textColor = 0xFFFFFF;
initObj.textShadowColor = 0x000000;
initObj.backgroundColor = 0x000000;
initObj.backgroundAlpha = 60;
initObj.overlay = true;
var CC=new CaptionDisplay(_root.tv,initObj);
var ccbtn_ref=new CaptionButton(_root.controls_mc.cc_mc,CC);
ccbtn_ref.toggled=true;
CC.useTimedText=true;
CC.source = "test.xml";
And when the video is completed then I call a function, in which I change the contentPath of the flvPlayback and also put this code :
'_root.CC.source = "test2.xml";'
but this way the next video keep playing but the caption is not shown for the second video.
I also tried to make a new CaptionDisplay object every time a video is changed for the same flvPlayback component. But doing that way the flvPlayback goes to "loading" state and never recover from that state.
Any help will be most welcome.
Thanks in advance,
Vikas.
Chart: Can't Change Chart Axis Properties
Hi,
I'm quite new to Flex, but I have managed to get a line chart going which gets data from some javascript outside. Next step is to control some of the axis setup from the outside with javascript as well.
I was able to create axis with code, i.e. new DatetimeAxis();, but I want to emed some of the formatting into the swf file directly. As per code below, I have a horizontalAxis 'hAxis', so I thought I can change parameters with hAxis.dataUnits = dateUnits; I have debugged the value of dateUnits in firebug.
Any help appreciated, I think I am confused over how variable scope works in flex/actionscript
Kind regards,
Jochen
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:bridge="bridge.*" layout="absolute" width="600" height="500" backgroundGradientColors="[#ffffff, #ffffff]" viewSourceURL="srcview/index.html">
<bridge:FABridge bridgeName="mybridge" />
<mx:Script>
<![CDATA[
import mx.charts.AxisRenderer;
import com.adobe.utils.IntUtil;
import mx.graphics.Stroke;
import flash.external.*;
import mx.charts.events.ChartItemEvent;
import mx.collections.ArrayCollection;
import com.adobe.serialization.json.JSON;
import mx.charts.series.LineSeries;
import mx.charts.DateTimeAxis;
import mx.charts.LinearAxis;
public function bindJSONToChart( data: Array ):void {
//var arr:Array = (JSON.decode(JSONString) as Array);
myChart.dataProvider = new ArrayCollection(data);
}
public function chartClicked(clickEvent:ChartItemEvent):void {
if( ExternalInterface.available ){
ExternalInterface.call('ChartClicked', clickEvent.hitData.item);
}
}
public function initChart(dateUnits: String,min: uint, max: uint): void{
hAxis.dataUnits = dateUnits;
hAxis.baseAtZero=true;
hAxis.interval = 1;
// Set this to false to display the leftmost label.
//hAxis.alignLabelsToUnits = false;
// Take the date in its current format and create a Date
// object from it.
hAxis.parseFunction = createDate;
vAxis.minimum = min;
vAxis.maximum = max;
myChart.verticalAxis = vAxis;
}
public function addSeries(series: Array, dn: String, c:uint):void {
// for each one.
// Create the new series and set its properties.
var localSeries:LineSeries = new LineSeries();
localSeries.dataProvider = new ArrayCollection(series);
localSeries.xField = "@date";
localSeries.yField = "@value";
// Set values that show up in dataTips and Legend.
localSeries.displayName = dn;
var ls:Stroke = new Stroke();
ls.alpha = .5;
ls.color = c;
localSeries.setStyle("lineStroke",ls);
// Back up the current series on the chart.
var currentSeries:Array = myChart.series;
// Add the new series to the current Array of series.
currentSeries.push(localSeries);
// Add the new Array of series to the chart.
myChart.series = currentSeries;
}
public function createDate(s:String):Date {
// Reformat the date input to create Date objects
// for the axis.
var a:Array = s.split("-");
// The existing String s is in the format "MM/DD/YYYY".
// To create a Date object, you pass "YYYY,MM,DD",
// where MM is zero-based, to the Date() constructor.
var newDate:Date = new Date(a[0],a[1]-1,a[2]);
return newDate;
}
]]>
</mx:Script>
<mx:Stroke id="axisStroke"
color="#828282"
weight="1"
alpha="1"
caps="square"
/>
<mx:LineChart id="myChart" showDataTips="true" width="600" height="500" x="0" paddingTop="2" paddingRight="5" paddingBottom="2" paddingLeft="5" y="0">
<mx:horizontalAxis>
<mx:DateTimeAxis id="hAxis" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis id="vAxis" />
</mx:verticalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer id="hAxRend" axis="{hAxis}" placement="bottom">
<mx:axisStroke>{axisStroke}</mx:axisStroke>
</mx:AxisRenderer>
</mx:horizontalAxisRenderers>
<mx:verticalAxisRenderers>
<mx:AxisRenderer id="vAxRend" axis="{vAxis}" placement="right">
<mx:axisStroke>{axisStroke}</mx:axisStroke>
</mx:AxisRenderer>
</mx:verticalAxisRenderers>
</mx:LineChart>
<mx:Legend dataProvider="{myChart}" x="38" y="171"/>
</mx:Application>
MX Pie And Bar Charts.
First off good job on whoever made the UI charts, really easy to use, however I'm having some problems figuring out how to make the charts dynamic.
I'm trying to pass variables from a CF page or even though XML or any other type of external data to create the bar and pie charts on the fly.
I'm guessing if the charts are using parameters in the dataprovider component, I should be able to load in my own values, however I'm getting lost a bit. Has anyone done this yet, and if so, what variables do I need to replace and where? FLA examples of this would save a lot of time if at all possible.
Thanks.
Charts
Does anyone know a good (easy and scalable) way of creating Charts (inc pie, bar and line graphs, also charts with miltiple series) from within flash - it's for delivery both on and off line, but I don't mind storing the data in external XML files.
Also, it has to animate well and look dead nice! I've been looking for compnents that could handle this, but as yet, have found none!
Cheers in advance,
//JonBoy
Pie Charts
Dose anyone have any idea how create a pie chart using action script?
I would like draw a wedge at a time rather than drawing circle and then drawing lines splitting the circle up with line.
Any help on this would be appreciated.
XML/SWF Charts 4.5
I am using XML/SWF Charts 4.5 and I can not get live data into the graph to save my life. Has anyone used this before? Basically I am having another source (matlab) kick out camera data to my xml file, well I have gotten this far and I am ripping my hair out!
any thoughts? php is killing me
AS3 Charts
Hey Guys, are there any AS3 simple 2d chart components? or some classes?
Org Charts
has anyone seen any good examples/tutorials of org charts in flash?
i like the ones by fusioncharts,
http://www.infosoftglobal.com/FusionCharts/CustomCharts.asp#bubbledrag
but i cannot use them in my movie.
=========================================
Don't sweat the petty things and don't pet the sweaty things.
Line And Bar Charts
Sorry for the newbie question, but I want to read figures in from a database (I program in PHP with Oracle database) and then graph them in a line and bar chart.
I want the line and bar chart to be somewhat animated..ie..the line moves from one week to the next until the graph is complete.
I think I understand the LoadVariables function from/to PHP but would like to know what's required for the actual creation of the line and bar chart.
If anyone has done this and could offer me some pointers, or if there are any tutorials, samples, etc, it would be greatly appreciated.
Thanks
Dynamic Pie Charts
...help!!! im new to actionscripting and im toying around with a script that i wrote fom scratch that will dynamically generate pie charts. I have everything laid out but there script needs help...if anyone has time to help it would be great...ill have to email you the .fla file
Pie Charts And Bar Graphs
Hi there, does anyone know where I can find some pie charts or bar graph components either for free or for sale, I have downloaded quite a few fla examples from flashkit but I am still looking for something suitable.
thanks
Charts Using Flash
Hi there! I'm kind of new to Flash, have been looking at v5 and MX a little. I'm looking to create a chart in Flash, dynamically. My idea is that tags in the web page will populate the parameters (from server side web code) and there will be picked up by the Flash movie to build and display a chart.
Does anyone know of components or examples like this? I've seen several charts in the libraries here but nothing quite like this, ultimately I'd like to email the charts and Flash seems the least "risk" in terms of what is allowed to display in an HTML email.
Any suggestions most welcome.
Chris.
Shrinking Charts
Hi,
Im using the Flash MX charting components, to draw a bar chart which alters over time. However for some data the chart seems to shrink down tot he right (i.e the whole thing goes very thin) The axis lables are unaffected, as is the caption...
Anyone any idea what might be happening here, I'm lost, completely...
Animated Charts
Hey there,
I'm curious to hear what others use for creating animated charts and graphs (swfs) and use in Flash MX.
I am currently evaluating a few products and have narrowed down my choice to Swiff Chart. The reason is based on 1)ease of use and 2)flexibility for my business partners using the application.
http://www.globfx.com/products/swfchart/
Does anyone know of other producst similar in functionality and ease of use?
Has anyone had success or issues with Swiff that they can share?
Thanks,
Jason Alstead
Graphs And Charts
Anyone know of any good customizable components or tutorials on making flash charts (line/bar/pie) dynamic with animation?
so far, all I got was graph zx
Thanks,
Jeff M
Best Way To Get Pie Charts To Work
I want to create a pie chart using flash that when I mouse over a section of the pie chart that it changes colors.
What is the best way to do this? I was figuring I could create the pie chart as a button but then create separate section and put it section in the over state..
Is this the best way to go?
Dynamic Charts
Good morning everyone!
I'm trying to find a tutorial to create dynamic flash charts. I only found a flash 5 version while I'm using 8. Tried with the flash 8 component from exchange manager but that's not working. My pc seems to crash on the script. Anyone been looking for the same thing and found something usefull, please let me know.
Grtz!!p
Flash Charts
Does anyone knows if there are any line charts for flash cs3 beside the astra components ?
Flash Charts
hey there,
I've been looking on google for some nice charts for flash.
But apperently most of them are SWF only. Does any1 know some good chart wich you can build within flash instead? Like some kind of component wich you can serve the right data, so you can have multiple charts within 1 document.
I.e. if you click something, the chart moves away and the next one pops in. This is quiet hard to do with just the SWF/HTML solution, probably means youre gonna have to refresh your browser.
Long story short, i'm looking for a flash class or component for charts (pie/bar)
thanks a lot!
Jim
Sub-Dividing Pie Charts
Hello all again,
After waiting some 2, 3 weeks for some type of reply, I must conclude that the problem I have cannot be solved.
This is what I wrote in my initial request. Is there something else I am maybe forgetting to include in order to give it a try in solving my problem? If not I would like to thank everyone that has taken the time to read my problem.
I am in the process fo creating a dynamic pie chart that is supposed to split the various sections of the chart in sub sections. So far I have been able to accomplish this by using this code. As I mentioned I need to subdivide each section in smaller parts i.e Knowledge" in 5 different zones, "Application" in 4 and so on. I am not sure on how to go about doing this. Any Help in solving this would be greatly appreciated....
/////////////////////////////////////////////////////////
function makePie() {
pie._visible=false;
_parent.label._visible=false;
last_angle=0;
for (i=0; i<total_elements; i++) {
angle = Math.round((share_value[i]/100)*360);
duplicateMovieClip(_parent.label, "label_" add i, i);
_parent["label_" add i].name = share_name[i];
_parent["label_" add i]._y += (_parent["label_" add i]._height+4)*i;
_parent["label_" add i].share_value = share_value[i];
patch_color = new Color(_parent["label_" add i].color_patch);
patch_color.setRGB(share_color[i]);
for (j=last_angle;j<last_angle+angle;j++) {
duplicateMovieClip(pie, "pie_" add j, j);
pie_color = new Color(this["pie_" add j]);
pie_color.setRGB(share_color[i]);
this["pie_" add j]._rotation = j;
}
last_angle = last_angle + angle;
}
}
makePie();
stop();
/////////////////////////////////////////////////////////
then, on the Pie Chart movie I have this:
onClipEvent (load) {
share_value=new Array();
share_color=new Array();
share_name=new Array();
// these are editable
total_elements = 5;
share_value[0] = 20;
share_color[0] = "0xff0000";
share_name[0] = "Knowledge";
share_value[1] = 15;
share_color[1] = "0x00ff00";
share_name[1] = "Thinking";
share_value[2] = 15;
share_color[2] = "0x00ffff";
share_name[2] = "Communication";
share_value[3] = 20;
share_color[3] = "0x0000ff";
share_name[3] = "Application";
share_value[4] = 30;
share_color[4] = "0xffff00";
share_name[4] = "Final";
// --------------------
}
Brutium
Pie And Bar Charts In Flash
Hi All:
I want to create Bar and Pie chart in flash. The data will come from PHP dynamically.
Is there any inbuild components available or do I need to create it?
How can I create it manually can anyone help me ?
Thanks & Best Regards
Razzak
Flex Charts
While working with flex charts I came across an issue that I cudnt fix yet. My array collection contains values ranging from -100 to 100 along the x-axis for the barchart. The y-axis is located at the least value, that is -100 in this case. I would like to have the y-axis pegged at 0 with bars flying out to either side of the axis. that is towards the negative x- axis and positive x-axis.
Anyone know the one setting that shifts the y-axis position from the least x-axis value to a value that we require.
Thanks in advance,
Flash Charts
Hi all,
has anyone used this:
http://www.infosoftglobal.com/FusionCharts/
If so, is it any good?
Finally, is anyone aware of any free alternatives, which is perhaps more tutorial-based?
Thanks guys.
Charts And Columns Out Of Xml
hey folks, does somebody made dynamic charts and columns out of an xml document? i tried it, but i dont know really where to start.
typ
Line And/or Bar Charts
Is it possible to create a line and/or bar chart in Flash using data from a database?
I know about the LoadVariables stuff but I want the line to gradually make its way from left to right, or I want the bars to grow. I dont want a static graph, but rather with movement.
I haven't been able to find any tutorials on this and was wondering if it is possible, and if so, how can it be done.
Thanks
Flash Charts Via PHP
Dear all,
I am seeking a flash chart generator able to be connected with PHP & MySQL. I have found a series of prestigious packages such as globfx but it is too expensive. Is there an opensource package with the same, high-quality aesthetics but free?
Please, reply to me ASAP.
Thank you,
Laz
X &Y Coordinates For Generator Charts
I'm trying to get an Object to follow the Curve that the chart generated by the Generator template has.
can anyone give me an idea of a script that will give me the x & Y coordinates for the object to follow
i have no idea in how to retrieve them from the Generator's dynamic generated movie
Graphs,charts In Flash 5
hi friends,
i want to create graphs and charts using flash 5 and ASP ..plzz help me out .
ramm
rammhere@rediffmail.com
Dynamic Charts In Flash
Anyone know of a way to create charts in flash that can be dynamically changed by the user? I downloaded the trial of Swiff charts but that doesn't allow the user to dynamically alter the parameters of the charts -- it's basically just eye candy.
I'm trying to create a tool where the user can input values and the chart will be dynamically created as they enter the values. Any help would be greatly appreciated!
Fresh To Flash - How To Do Charts -- HELP
Guys / Gals,
My first post to this wealth of knowledge site .
As the subject says, i'm fresh to flash. Not much experience but willing to learn. Been a long time user of FIREWORKS and DREAMWEAVER and now i need to learn flash...
Basically, I need to learn how to do line charts in FLASH.
i need 3 different lines in the one chart.
Data pref passed in by separate XML files.
The flash will sit either in a HTML page or a JSP page.
Anybody have good resource or even share some FLA files for me to poke at. In return I hope post all my findings and fla files to help other newbies to flash charting..
any help would be greatly appreciated.
Creating Charts Using Flash AS 2.0 And XML
hi,
I just want to create a pie chart using static xml file that has some stock quotes in it.
I want to generate the graph using the XML file in AS 2.0 and Flash 8.0
Can anyone suggest me the solution to how to go about it or any site refrences for it .
cheers
saikiran
saisen76@hotmail.com
sai.thedevil@Gmail.com
Animated Charts In Flash
DOES ANYONE KNOW OF A SOFTWARE THAT MAKES ANIMATED CHARTS IN FLASH. I WAS INTERESTED IN SWIFT CHART WHICH MAKES WONDERFUL CHARTS BUT IT WILL NOT WORK ON A MAC. I UNDERSTAND YOU MAKE THE CHARTS IN EXCELL, POWERPOINT OR A SIMILAR SOFTWARE PACKAGE AND THEN SWIFT CHART ANIMATES THEM.
I WOULD LIKE TO BE ABLE TO MAKE SUCH ANIMATED CHARTS IN FLASH BUT I HAVE FOUND ONLY BASIC SIMPLY CHARTS IN FLASHKIT. I WOULD APPRECIATE IT IF ANYONE KNOWS HOW I CAN MAKE MORE SOPHISTICATED ANIMATED CHARTS UTILIZING FLASHKIT. I PLAN TO PUT THE FINAL ANIMATED CHARTS INTO FINAL CUT STUDIO PRO AND THEN INTO A DVD PRESENTATION.
SWF Charts Into A Printable Medium...
I created several really nice charts and graphs on a project intranet that pull data from an XML file (which is created by another program that hooks into the database) and displays that data on the web page. Now my client wants to be able to create a monthly report using several of these flash files. And they want them to be vector.
I tried embedding them in Acrobat, but the charts seemed to not read in the XML and did not want to work. Plus, the client wants something more automated.
Is there some kind of page design program out there that I could create a monthly report on with all types of information and still be able to import SWF files linked to the XML data on the server.
If only InDesign would let me import interactive SWF files.
My dream would be to set up some sort of PDF that would be composed of hundreds of SWF files so that when a user pulled it up, they could print it out, browse through it page by page, etc...
I am not looking for anyone to solve this all for me...I realize it is a complicated request, but if anyone has any tips or can point me in the right direction, it would be greatly appreciated.
Animation Effects For Charts
I want to create animation effects in charts when some data changes.For eg: in a Pie Chart I want the slices to rotate based upon the new data values.And also highlight the slice whose data value got changed by setting its color to some other temporarily and then switch back to the original color.
I thought of using dynamic masking but somehow it doesnt seem to work. FYI I am using actionscript drawing APIs to create my pie chart dynamically.Each slice is an independent movieclip(so I have got control over them).
For your reference:
http://flexapps.macromedia.com/flex1.../explorer.mxml
go to Misc Techniques and examples-> Data drill down 3.
I want to have a similar kind of rotation effect.Plus I want to be able to highlight the effected slice.It will be great if somebody can suggest some techniques with a lit bit of detail or some pointers.
Just to reiterate I am generating everything in the chart dynamically(nothing in the stage or the library),thatsy unable to play around with dynamic masking.
Any suggestions are welcome.
Advice On Building Charts
Hi,
I'm looking into building charts using AS3 and would like some advice.
I took a look at black adder chart component for flash but they seem very basic, do people know of better free components or tutorials on how to build them?
I was wondering also is flash good enough for building attractive charts or would flex be the way to go?
I dont know a lot about flex. Is it geared more towards data driven application?
Thanks
dub
Astra Charts Help With Events
does anyone knows how to attach events to astra flash charts , for eg. have an event listner on mouse click over the points of a line chart to get the x,y values of the points ?
Refreshing Of Flash Charts
Hi,
We are using xml file as the data source to a html page ,which is going to plot the chart.We are using JBOSS server and we are placing xml and the html in webroot of the server.Whenever we change the value in the database ,that change is reflecting in xml what we are creating dynamically,but that change is not reflecting in charts.but once i close the browser and open it again,it shows the changes.
Any help on this.
Dynamic Line Charts [ASP.NET 2.0]
Demo here: http://www.kirupafx.com/Chart/Default.aspx (keep refreshing for random values)
To use this, simply copy and paste the following code into an ASP page (mine was called Default.aspx / Default.aspx.cs)
Code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
public partial class Chart_Default : System.Web.UI.Page
{
Graphics gfx;
Bitmap bmp;
protected void Page_Load(object sender, EventArgs e)
{
bmp = new Bitmap(400, 300);
gfx = Graphics.FromImage(bmp);
gfx.Clear(Color.White);
gfx.SmoothingMode = SmoothingMode.AntiAlias;
// Define Points
//int[] p = new int[] { 10, 12, 48, 102, 290, 15, 100, 25, 300, 200, 150, 200, 60, 40, 250 };
int[] p = generateRandomValues();
int[] k = new int[p.Length];
Array.Copy(p, k, p.Length);
Array.Sort(k);
DrawChart(p, k[k.Length - 1], k[0]);
}
private void DrawChart(int[] points, int maxValue, int minValue)
{
int bottomOffset = 50;
int leftOffset = 40;
int topOffset = 30;
int rightOffset = 50;
// Taking care of some bookwork (declaring/initializing variables)
int maxDataPoints = points.Length;
int chartHeight = bmp.Height - bottomOffset;
int chartWidth = bmp.Width - rightOffset;
double adjustedMax = maxValue * .10 + maxValue;
double adjustedMin = minValue - .50 * minValue;
double adjustVerticalRatio = (chartHeight-topOffset) / adjustedMax;
double adjustHorizontalRatio = ((chartWidth - leftOffset) / (maxDataPoints - 1));
int space = (int)bmp.Width / points.Length;
Pen chartPen = new Pen(Color.Orange, 3);
Pen gridLine = new Pen(Color.LightGray, 1);
int minYpos = chartHeight - topOffset;
int maxYpos = 10;
for (int i = 0; i < maxDataPoints - 1; i++)
{
int xPos = Convert.ToInt32(i * adjustHorizontalRatio) + leftOffset;
int xPos2 = Convert.ToInt32((i + 1) * adjustHorizontalRatio) + leftOffset;
int yPos = Convert.ToInt32(chartHeight - adjustVerticalRatio * points[i]);
int yPos2 = Convert.ToInt32(chartHeight - adjustVerticalRatio * points[i + 1]);
if (points[i] == minValue)
{
minYpos = yPos;
}
if (points[i] == maxValue)
{
maxYpos = yPos;
}
gfx.DrawLine(gridLine, new Point(xPos2, topOffset), new Point(xPos2, chartHeight));
gfx.DrawLine(chartPen, new Point(xPos, yPos), new Point(xPos2, yPos2));
gfx.DrawString(i.ToString(), new Font("Arial", 8), new SolidBrush(Color.Gray), new Point(xPos - 4, chartHeight + 10));
}
//Draw Border Lines
Pen borderLine = new Pen(Color.DarkGray, 2);
//Left Border
gfx.DrawLine(borderLine, new Point(leftOffset, chartHeight), new Point(leftOffset, topOffset));
//Bottom Border
gfx.DrawLine(borderLine, new Point(leftOffset, chartHeight), new Point(chartWidth, chartHeight));
//Right Border
gfx.DrawLine(borderLine, new Point(chartWidth, chartHeight), new Point(chartWidth, topOffset));
//Top Border
gfx.DrawLine(borderLine, new Point(leftOffset, topOffset), new Point(chartWidth, topOffset));
//Drawing Vertical Min/Max Values
gfx.DrawString(maxValue.ToString(), new Font("Arial", 8), new SolidBrush(Color.Gray), new Point(leftOffset - 25, maxYpos));
gfx.DrawString(minValue.ToString(), new Font("Arial", 8), new SolidBrush(Color.Gray), new Point(leftOffset - 25, minYpos));
gfx.DrawLine(gridLine, new Point(leftOffset - 25, minYpos), new Point(chartWidth, minYpos));
gfx.DrawLine(gridLine, new Point(leftOffset - 25, maxYpos), new Point(chartWidth, maxYpos));
//Finalizing and Cleaning Up
Response.ContentType = "image/jpeg";
bmp.Save(Response.OutputStream, ImageFormat.Jpeg);
bmp.Dispose();
gfx.Dispose();
Response.End();
}
private int[] generateRandomValues()
{
Random rand = new Random();
int numValues = rand.Next(10, 20);
int[] newArray = new int[numValues];
for (int i = 0; i < numValues; i++)
{
newArray[i] = rand.Next(100, 1000);
}
return newArray;
}
}
I might make a tutorial for the above for .NET or even for Flash, for they are both conceptually similar. Only the syntax varies, so it all depends on how much free time I can find between now and school starting back up
Flash Graphing & Charts
There are several Flash based Charting components out there... some are very polished and quite expensive (Fusion Charts) while others are free. Anyone had any success with the free versions? Examples would be great.
Free Flash Bar/Pie Charts
I'm looking for free flash charting solution that can offer at least the bar charts and ideally the pie charts as well. Should work with XML data feeds.
Any ideas ? Thanks :)
Flash And Coldfusion Charts
Hi,
I'm researching the possibilities for passing charts generated in coldfusion MX to flash via flash remoting.
I need graphs that allow me to have more than one data series so cannot use the flash components, and I dont want to purchase another package just for graphs when CF does the trick.
i need them in flash as I'm building a flash management dashboard similair to the advent labs example at the macromedia site.
the documentation implies it is possible but can't find any examples of it.
thanks in advance
Steve
Variable Generated Curve Charts
Ineed to generate a curve chart starting with 2 initial variables.One is time and the other can be anything,so when time stars running time,the movie will start drawing a curve.I donīt care the ecuation that it uses,but the method for generatin the curve.
Graph Charts- Input By User
Basically what i want to do is to let the user input a value, in a text box let's say, and in real-time a pie
chart will appear with the value the user put in the
text box. Let's say that 2 users answeared "yes" to a
question and 2 "no". The pie chart must -in real time- show that 50% answeared yes and 50% no. How can I do that?
Generating Charts Dynamically Using Flash
Hi all,
I would like to use Perl/CGI on a linux machine to send data dynamically to a Flash program to have it generate various types of charts, such as bar, line, scatter plot, etc. One constraint is I can't use Generator.
Question:
1) Is this doable?
2) Is there anything out there that I could use? Should I try to do this in Flash or should I try to write a program that outputs SWF instead? Which approach makes more sense in your opinion?
3) Would duplicating 5000 - 10000 movie clips (say for scatter plot, each movie clip contains a point) cause problem on the Flash end (such as loading time, etc.)
Thanks much.
- boon
|