Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
drkshih #1
Dynamically / Programmically create chart ColumnSeries
Hi, I want to dynamically create the chart column series in a column chart. If
example, according to the selection in a ComboBox, I need to populate chart
with one column or two columns of information per category. Also, I want to
dynamically assign a color to each column. Is it doable?
Thanks,
Derek
drkshih Guest
-
Dynamically changing chart labels
HI I'm after an how too really, point me in the right direction is possible. I have a new dashboard app, monitoring a server, last part is load... -
How do I dynamically add a series to a chart? flex 1.5
I have a problem where I'm trying to add a series to a line chart and it just doesn't work correctly. Here's a test fiel that i created to test... -
dynamically creating pie chart
I have a format that we use to create pie charts and i would like to create a tool to generate the chart in the format we want just by passing 3... -
GD::Graph - Can it create a stock chart
I would like to know if GD::Graph can be used to create a "Stock Chart". This is a series of lines with three data points representing the... -
components for dynamically displaying data chart or graph in ASP
Hello, I tried to find some components I can use to dynamically generate chart or graph from database in ASP. It seems to me that only some... -
peterent #2
Re: Dynamically / Programmically create chartColumnSeries
Each chart has a series property which is an Array of all of the series
(surprise). You can add new series dynamically using addItem:
var column = new ColumnSeries();
column.yField = "population"; // assuming that is the field in the
dataProvider you want to graph
// set other ColumnSeries values, see the Flex documentation
column.setStyle("fill", new SolidColor(0xFF0000,100)); // bright red
column.setStyle("renderer", new SimpleBoxRenderer); // only if you don't want
a ShadowBoxRenderer which is the default
myChart.series.addItem(column);
For the fill, you can also use a Gradient - see the Flex documentation for
details.
peterent Guest
-
drkshih #3
Re: Dynamically / Programmically create chartColumnSeries
Great. That's what I want. So for CatesianChart, I can add both ColumnSeries
and LineSeries to myChart.seriers, right?
Ok, now if I want to add a horizontal line across the chart, say like 'y=100'.
I need to apply this kind of line to indicate a 'target' or in a control chart.
Is it doable?
Thanks,
Derek
drkshih Guest



Reply With Quote

