Dynamic series in flash chart & color specified for each series

Example of data:
Date     Series 1     Series 2     Series 3     Series 4     Series 5     Series 6     Series 7     Series 8
A     12     22     23     22     22     10     10     10
B     10     9     55     8     8     20     20     20
C     55     2     5     88     5     15     15     15
In excel, I can get a stacked horizontal bar chart with the numbers of different series stacked and it is easy to specify the color for each series (it works with Dephi aslo).
I use a PL/SQL to generate the dynamic series for the chart. And in my application, I need to show some serires with the same color (group of series, each has a specified color). One of the solution I am trying is to input a fixed color sequence and loop it many times in the custom color theme and then insert dummy series into the SQLS. But this could be a disaster while the number of group goes up.
Anyone has better idea on this? Or is this a limiation of apex?
Thanks.

As I tried, apex can support 300 series at most. Dynamic series here is not a good solution still.

Similar Messages

  • How to customize Flash Chart color scheme (Look 1 etc..)

    Hi,
    Is their any way I can customize the Flash Chart color schemes (Look 1, Look 2). I know there's a "Custom" option but I'd like to define what Look 1 is so that I don't need to use custom values for each chart.
    Thank you,
    Martin
    [http://apex-smb.blogspot.com/]

    Thank you Dimitri
    What you suggest is what I am currently doing.
    But let's say I have to change the colors in all my graphs, I would have to go through all of them and change the "Custom Colors".
    I was looking for something similar to a template where I would only have to change the color definition in one place...

  • Display Dynamic HTML beside Flash Chart in Chart Region

    Hello,
    I have a vertical 3D flash chart with some categories I,II,IV... on x-axix. I have to show a legend beside the chart dynamically depending on the categories displayed like (I - PC, II - TV, IV-Laptop....) First I tried to do this with static data. I modified, Region Source of Chart region to include the legend. I am successful to create a table & put some static html code. Now I want this to be dynamic.
    I found that with shotcuts I can put dynamic HTML code. I created shortcut with PL/SQL & successfully displayed them in a 'HTML REGION WITH SHORTCUTS', but I want that in Chart Region, not as a separate region. Shortcut is not working in Chart region.
    How can I achieve this? Is there a way to call a process or substitution string or some thing from Chart Region to display my legend dynamically beside the chart.
    Experts any hint is appreciated.
    Sowji.

    Experts,
    Can you please give any hint how this can be achieved? If I keep the dynamic legend as HTML with Shortcut region, the width & height are not matching with the chart region as it is dynamic. Also, I am unable to combine both 'chart' & 'html with shortcut' region to look like one region. So I am looking for options to insert the dynamic html in to chart region.
    Sowji.

  • Chart color customization for Sentinel Log Manager (and RD)

    Hi all,
    I am trying to customize the color of the chart provided by the SDK. I
    based on the
    top 10 Report as modification. The default severity 0 color is WHITE.
    I tried to change the files of color_RGB.csv or Key_color.csv of the
    entry to GREY4 but
    it turns out it is not reading it at all during build-report.xml.
    Does it mean:
    1) I have to put those csv files in parameter directories?
    2) Do I have to run the autoparam build?
    3) Or I have to work with JFreeChart via the eclipse and rebuild the
    java files first?
    Thanks,
    Geoffrey
    geocheng
    geocheng's Profile: http://forums.novell.com/member.php?userid=90913
    View this thread: http://forums.novell.com/showthread.php?t=425353

    The original csv files are in the AA-common directories. I changed it,
    and using the build-report.xml. The result is negative. The chart
    severity color does not change.
    So I put the modified csv files into the parameter directors under by
    report build directory. Same problems.
    So from the documents, it should be referring to the csv files to
    define color mapping. So I cannot be sure where to put those files or do
    some java programming with JFreeChart in order to achieve it.
    Thanks,
    Geoffrey
    geocheng
    geocheng's Profile: http://forums.novell.com/member.php?userid=90913
    View this thread: http://forums.novell.com/showthread.php?t=425353

  • Built-in "Camera RAW style" color correction for each clip in CS6

    Camera RAW has the best sliders for image control. Super easy and ultra natural looking.
    I mean if you want to fix White Balance with in-camera like precision or lift shadows or fix highlights Camera RAW is the quickest tool that produces amazing results.
    I have compared Davinci Resolve, Phase One (Capture One), Adobe SpeedGrade and Color Finese. And the best "quick fix" results are archived in Camera RAW even with 8-bit TIFFs exported from Premiere's DSLR timeline.
    The point is, why can't we add simple sliders for Temperature / Tint / Exposure / Contrast / Highlight / Shadows / Clarity  / Vibrance directly to Premiere's clip.
    So the user will not waste time to export TIFFs to Camera RAW or DPX to SpeedGrade.
    Some more comments.
    1. Three Way Color Corrector contains too much submenus and often doesn't produces results wanted.
    Wheel-type color mixers are more suitable for Secondary color correction in my opinion.
    At first it nice to setup correct White Balance using sliders and only then make some sylish tuning with these wheels.
    2. It's a pity that Camera RAW exported sequences tend to flicker sometimes. I guess it's because of photo-like processing style. It adapts to every single image. Would be cool to have an option to disable this adapting feature, especially useful for timelapses. Have anyone encountered this problem with Camera RAW?
    Maybe someone knows a plugin for Premiere and AE that has direct slider for Temperature and Tint?

    @mandurphy: If you haven't already done so, you might want to submit a formal feature request: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&loc=en
    You're also welcome to post "Me too" in as many threads as you like, but doing that a hundred times will not get as much attention from the decision-makers in charge of the feature priorities as submitting a single genuine feature request.

  • Date Picker Result Used in Query for Flash Chart

    Hello,
    I'm creating a flash chart using an SQL Query. The query uses two date pickers for the beginning and ending date of the data the query returns. For some reason the substitution string for the data pickers do not work and do not return any data. If I hard wire the start and end date to something like '12/01/2008' and '01/31/2009' the query and the flash chart work just fine. When use the string representing the data pickers (:P65_BEGIN_DATE and :P65_END_DATE) the query does not return any data. Is there some problem using substitution strings in queries for flash charts??
    For what it's worth here is the query. (Look near the bottom to see where I reference the data pickers):
    SELECT 'Link',
    to_char(Day, 'Mon DD'),
    ((Count("Item Number")-Sum("Devaition"))/Count("Item Number"))*100 as "Precentage"
    from
    (SELECT
    to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd') as Day,
    F4141.PJLITM AS "Item Number",
    sum(F4141.PJTQOH) AS "Sum Qty On Hand",
    sum(F4141.PJTQCT) AS "Sum Qty Counted",
    (decode(sum(F4141.PJTQOH)-sum(F4141.PJTQCT), 0, 0, 1)) as "Devaition"
    FROM F4140 INNER JOIN F4141 ON F4140.PICYNO = F4141.PJCYNO
    WHERE (((F4140.PICYCS) In ('40','50')) AND ((F4141.PJCCCD)='1'))
    GROUP BY to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd'), F4141.PJLITM
    HAVING to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd')
    between to_date(:P65_BEGIN_DATE, 'DD-Mon-YYYY') and to_date(:P65_END_DATE, 'DD-Mon-YYYY') )
    group by Day

    I look at the debug output without changing anything and I am not really sure where the two date pickers are being populated. However I do have defaults set up for each datepicker of:
    P65_BEGIN_DATE: to_char(sysdate - 30, 'DD-MON-YYYY')
    P65_END_DATE: to_char(sysdate, 'DD-MON-YYYY')
    and the dates I would expect show up in the date picker.
    Also I created a Computation of Before Header type with the following PL/SQL expression:
    to_char(sysdate-180, 'DD-MON-YYYY')
    and I see the following output when in debug mode:
    0.05: Computation point: BEFORE_HEADER
    0.05: ...Perform computation of item: P65_BEGIN_DATE, type=PLSQL_EXPRESSION
    0.05: ...Session State: Save "P65_BEGIN_DATE" - saving same value: "03-AUG-2008"
    0.05: Processing point: BEFORE_HEADER
    So I think the datapickers are being populated but the flash chart is still not working.

  • Separate chart for each field

    I have a table with 74 numerical fields for a given date.  The table looks something like
    RecordDate Field1
    Field2 Field3
    .... Field74
    I would like a line chart for each field with the value on the Y axis and date on the X axis.  That part is easy enough.
    The problem is that if I put 74 lines on the same chart it will be unintelligible.  Unfortunately I think the best way to observe trends in the data over time is a line chart for each.
    I know that I could manually add a separate chart for each one.  However, I'd like to dynamically add a chart for each field.  We may potentially add Field75 down the road, so avoiding reengineering the report each time is desirable.  Is something
    like this possible?
    Thanks!

    Hi Mateoc15,
    If I understand correctly, you want to specify a Chart Area for a Series in order to increase the readability of the chart.
    In Reporting Services, the bar, polar, or shape series can only be combined with series of the same chart types in the same chart area. If you are using a Polar or Shape chart, you can consider using a separate chart data region for each field that you wish
    to show.
    For the details, please refer to the link:
    Specify a Chart Area for a Series (Report Builder and SSRS)
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Problem in displaying dynamic values in dropdown list for each row

    I want to display dynamic values in a drop down list for each row, and these values depends on the column value in each row(ptaid), based on each ptaid i need to fetch values for drop down list. so how can i achieve this..
    Thanks
    Babu

    Babu,
    This has been discussed in many old threads, try to find them. Also u can refer to article "Dependent Dynamic message choicelists ", at my blog
    http://www.mukx.blogspot.com/
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • For Each Child in Controls

    To clear all the checkboxes on a form, I can do either this:
            Dim chk As CheckBox
            For Each ctl As Control In Controls
                If TypeOf ctl Is CheckBox Then
                    chk = CType(ctl, CheckBox)
                    chk.Checked = False
                End If
            Next ctl
    Or this:
            For Each chk As CheckBox In Controls.OfType(Of CheckBox)()
                chk.Checked = False
            Next chk
    However, this will not clear checkboxes inside a container such as a groupbox.
    How can I clear the checkboxes in all the containers at once?
    Solitaire

    Excess code in examples which use recursive control searches.
    Top and bottom examples may be best. 2nd and 3rd examples have code but I don't understand the ienumerable functions used really. They're over my head.
    If all controls were added to a List(Of Control) in form load using a recursive search then just the list could be used to set controls of certain types I would guess. Which would keep from requiring a recursive search of controls each time. Unless
    controls are dynamically added and removed while the app is running I suppose.
    Option Strict On
    Public Class Form1
    Dim ObjColorDict As New Dictionary(Of String, Color)
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.CenterToScreen()
    ObjColorDict.Add("Me", Me.BackColor)
    Me.BackColor = Color.White
    For Each Item As Control In Me.Controls
    If Item.BackColor <> Nothing Then
    ObjColorDict.Add(Item.Name, Item.BackColor)
    Item.BackColor = Color.White
    GetAllChildControls(Item)
    End If
    Next
    For i = 0 To ObjColorDict.Count - 1
    RichTextBox1.AppendText(ObjColorDict.Keys(i).ToString & " Color = .. " & ObjColorDict.Values(i).Name.ToString & vbCrLf)
    Next
    End Sub
    Private Sub GetAllChildControls(ByVal ctrlParent As Control)
    For Each Item As Control In ctrlParent.Controls
    If Item.BackColor <> Nothing Then
    ObjColorDict.Add(Item.Name, Item.BackColor)
    Item.BackColor = Color.White
    End If
    ' If the control has children,
    ' recursively call this sub
    If Item.HasChildren Then
    GetAllChildControls(Item)
    End If
    Next
    End Sub
    End Class
    Option Strict On
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.CenterToScreen()
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    For Each RdoButton As RadioButton In Me.Controls.Cast(Of Control).SelectMany(Function(ctrl) GetAll(ctrl, GetType(RadioButton)).Concat(Me.Controls.Cast(Of Control)).Where(Function(c) c.[GetType]() = GetType(RadioButton)))
    RdoButton.Checked = False
    Next
    End Sub
    Public Function GetAll(control As Control, type As Type) As IEnumerable(Of Control)
    Dim controls = control.Controls.Cast(Of Control)()
    Return controls.SelectMany(Function(ctrl) GetAll(ctrl, type)).Concat(controls).Where(Function(c) c.[GetType]() = type)
    End Function
    Private Sub UncheckAllRadios(ContainerControl As Control)
    For Each C As Control In ContainerControl.Controls
    If C.Controls.Count > 0 Then
    UncheckAllRadios(C)
    End If
    If TypeOf C Is RadioButton Then
    DirectCast(C, RadioButton).Checked = False
    End If
    Next
    End Sub
    Private Sub ClearForm(ByVal ctrlParent As Control)
    Dim ctrl As Control
    For Each ctrl In ctrlParent.Controls
    If TypeOf ctrl Is TextBox Then
    ctrl.Text = ""
    End If
    ' If the control has children,
    ' recursively call this function
    If ctrl.HasChildren Then
    ClearForm(ctrl)
    End If
    Next
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    For Each RdoButton As RadioButton In Me.Controls.Cast(Of Control).SelectMany(Function(ctrl) GetAll(ctrl, GetType(RadioButton)).Concat(Me.Controls.Cast(Of Control)).Where(Function(c) c.[GetType]() = GetType(RadioButton)))
    RdoButton.Checked = False
    Next
    End Sub
    End Class
    Option Strict On
    Public Class Form1
    Dim TableLayoutPanelList As New List(Of TableLayoutPanel)
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    For Each Item As TableLayoutPanel In Me.Controls.Cast(Of Control).SelectMany(Function(ctrl) GetAll(ctrl, GetType(TableLayoutPanel)).Concat(Me.Controls.Cast(Of Control)).Where(Function(c) c.[GetType]() = GetType(TableLayoutPanel)))
    Dim ContainsItem As Boolean = False
    If TableLayoutPanelList.Count = 0 Then TableLayoutPanelList.Add(Item) : ContainsItem = True
    If TableLayoutPanelList.Count > 0 Then
    For i = 0 To TableLayoutPanelList.Count - 1
    If TableLayoutPanelList(i) Is Item Then
    ContainsItem = True
    End If
    Next
    End If
    If ContainsItem = False Then
    TableLayoutPanelList.Add(Item)
    Else
    ContainsItem = False
    End If
    Next
    End Sub
    Public Function GetAll(control As Control, type As Type) As IEnumerable(Of Control)
    Dim controls = control.Controls.Cast(Of Control)()
    Return controls.SelectMany(Function(ctrl) GetAll(ctrl, type)).Concat(controls).Where(Function(c) c.[GetType]() = type)
    End Function
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    RichTextBox1.Clear()
    If TableLayoutPanelList.Count > 0 Then
    For Each Item In TableLayoutPanelList
    RichTextBox1.AppendText(Item.Name & vbCrLf & " " & Item.BackColor.Name.ToString & vbCrLf)
    Next
    End If
    End Sub
    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    For Each Item As ColumnStyle In TableLayoutPanel1.ColumnStyles
    RichTextBox1.AppendText(Item.SizeType.ToString & vbCrLf & " " & Item.Width.ToString & vbCrLf)
    Next
    End Sub
    End Class
    Option Strict On
    Public Class Form1
    Dim FormControlsList As New List(Of Control)
    Dim TblLoutPanel As TableLayoutPanel
    Dim TblLoutPanelsAdded As TableLayoutPanel
    Dim ColorNames As New List(Of String)
    Dim ColorName As System.Type = GetType(System.Drawing.Color)
    Dim ColorPropInfo As System.Reflection.PropertyInfo() = ColorName.GetProperties()
    Dim Rand As New Random
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
    For Each CPI As System.Reflection.PropertyInfo In ColorPropInfo
    If CPI.PropertyType.Name = "Color" And CPI.Name <> "Transparent" Then
    ColorNames.Add(CPI.Name)
    End If
    Next
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Button1.Enabled = False
    TblLoutPanel = New TableLayoutPanel
    With TblLoutPanel
    .Name = "TableLayoutPanel1"
    .Size = New Size(400, 400)
    .GrowStyle = TableLayoutPanelGrowStyle.FixedSize
    .CellBorderStyle = TableLayoutPanelCellBorderStyle.InsetDouble
    .Left = 20
    .Top = Button1.Bottom + 20
    .ColumnCount = 3
    .RowCount = 3
    .RowStyles.Clear()
    .ColumnStyles.Clear()
    For i = 0 To .ColumnCount - 1
    .ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
    Next
    For i = 0 To .RowCount - 1
    .RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
    Next
    .BackColor = Color.FromName(ColorNames(Rand.Next(0, ColorNames.Count)))
    End With
    Me.Controls.Add(TblLoutPanel)
    For i = 2 To 10
    TblLoutPanelsAdded = New TableLayoutPanel
    TblLoutPanelsAdded.Name = "TableLayoutPanel" & i.ToString
    With TblLoutPanelsAdded
    .Size = New Size(100, 100)
    .GrowStyle = TableLayoutPanelGrowStyle.FixedSize
    .CellBorderStyle = TableLayoutPanelCellBorderStyle.OutsetDouble
    .Anchor = AnchorStyles.None
    .ColumnCount = 2
    .RowCount = 2
    .RowStyles.Clear()
    .ColumnStyles.Clear()
    For j = 0 To .ColumnCount - 1
    .ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
    Next
    For j = 0 To .RowCount - 1
    .RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33!))
    Next
    .BackColor = Color.FromName(ColorNames(Rand.Next(0, ColorNames.Count)))
    End With
    For Each ctl As Control In Me.Controls.OfType(Of TableLayoutPanel)()
    If ctl.Name = "TableLayoutPanel1" Then
    ctl.Controls.Add(TblLoutPanelsAdded)
    End If
    Next
    Next
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    FormControlsList.AddRange(RecursiveControlSearch(Me).ToArray)
    End Sub
    Private Function RecursiveControlSearch(ByRef Ctl As Control) As List(Of Control)
    Dim Temp As New List(Of Control)
    For Each Item As Control In Ctl.Controls
    Temp.Add(Item)
    GetAllChildControls(Item)
    Next
    Return Temp
    End Function
    Private Sub GetAllChildControls(ByVal ctrlParent As Control)
    For Each Item As Control In ctrlParent.Controls
    FormControlsList.Add(Item)
    If Item.HasChildren Then
    GetAllChildControls(Item)
    End If
    Next
    End Sub
    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    RichTextBox1.Clear()
    For Each Item In FormControlsList
    RichTextBox1.AppendText(Item.Name & vbCrLf)
    Next
    End Sub
    End Class
    La vida loca

  • Changing the custom XML for a flash chart dynamically

    Hello
    I am wondering if anyone has found a way to change the custom XML
    for a flash chart dynamically.
    For instance.
    On the www.anychart.com website their is a gallery with charts.
    I have studied one called "2Dlinetimechart. It has hours on the X-axis.
    When I view the XML for this chart.
    I found this enrty
    - <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
    <set value="0" argument="0" name="00:00" />
    <set value="1" argument="0" name="01:00" />
    It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
    I have not found a way to do this in application express 3.0.
    Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
    Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
    Hope this makes sence ?
    Ulf
    PS this is related to my question about
    http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
    using dates on the x-axis.
    But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.

    String value = ResultSet.getObject("myfield").toString();
    String opvalue = "15";
    <OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>>

  • Dynamic Series creation for Plot Chart

    Hi,
    I am using a plot chart which takes data from an external XML file.
    Based on certain fields in the data, I create 3 different plot series.
    I use a Combo box to show different plot series based on the selected value from it.
    I am placing another Combo box
    How can do the below task:
    I need to create some dynamic series based on some node elements in the series for which the chart is currently shown.
    I create another Combo box to show the above generated plot series based on the selected value from it.

    Hi,
    I am using a plot chart which takes data from an external XML file.
    Based on certain fields in the data, I create 3 different plot series.
    I use a Combo box to show different plot series based on the selected value from it.
    I am placing another Combo box
    How can do the below task:
    I need to create some dynamic series based on some node elements in the series for which the chart is currently shown.
    I create another Combo box to show the above generated plot series based on the selected value from it.

  • Can I access Flex's default Chart colors? Or can I access a Series' current color?

    I've created a popup to dynamically add/remove Series from a LineChart and/or AreaChart.  Problem is, I want to keep the Series' line color consistent, and Flex wants to re-assign them from it's default list, which is confusing.
    I don't want to just set the Series.visible to false for two reasons:
    1. I also want the LegendItem to disappear from the Legend
    2. Stacked AreaCharts (type == 'stacked') get messed up when you set one of its Series.visible = false
    So to avoid color reassignment, I want to explicitly set the lineStroke for my Series.  But if I'm using Flex's default colors, I need to either:
    a. Have access to the static default color array - does anyone know where this is???  or
    b. After the Series are drawn (updateComplete?), I need to query each for its lineStroke color and then explicitly set it to that same color.  How do I do this???  getStyle('lineStroke') returns null, and I can't see a way to get at the renderer.
    I'm essentially re-posting the following unanswered posts, which I promise to link back to this if someone can please help:
    Binding to Rendered Chart Data [http://forums.adobe.com/message/186840#186840]
    Getting the default pie chart colors [http://forums.adobe.com/message/36410#36410]
    Please help!

    Matt, thanks for your reply, but unfortunately, for LineCharts, LineSeries.getStyle('fill') always returns 0xffffff (white).
    I finally found that after my LineChart is completely rendered, (sometime after LineSeries' updateComplete), LineSeries.getStyle('lineStroke') and getStyle('stroke') both return the correct Stroke.color values ("lineStroke" refers to the line segment and "stroke" to the data point).
    Rather than fooling around with collecting the actual values dynamically, I just generated some trace() output from a  LineChart with a bunch of Series to create my own static Array from which I can initialize my Series.setStyle(color) as I dynamically add them to my LineChart:
            public static const DEFAULT_FLEX_SERIES_COLORS:Array = [
                0xe48701, 0xa5bc4e, 0x1b95d9, 0xcaca9e,
                0x6693b0, 0xf05e27, 0x86d1e4, 0xe4f9a0,
                0xffd512, 0x75b000, 0x0662b0, 0xede8c6,
                0xcc3300, 0xd1dfe7, 0x52d4ca, 0xc5e05d,
                0xe7c174, 0xfff797, 0xc5f68f, 0xbdf1e6,
                0x9e987d, 0xeb988d, 0x91c9e5, 0x93dc4a,
                0xffb900, 0x9ebbcd, 0x009797, 0x0db2c2
    It turns out there's only 28 unique color values before the color pattern repeats.  I don't see a numerical pattern; perhaps someone with more time on their hands can figure out if there's a function behind this series of values (printed here in binary, decimal, and hex):
            111001001000011100000001  14976769  0xe48701
            101001011011110001001110  10861646  0xa5bc4e
            000110111001010111011001  01807833  0x1b95d9
            110010101100101010011110  13290142  0xcaca9e
            011001101001001110110000  06722480  0x6693b0
            111100000101111000100111  15752743  0xf05e27
            100001101101000111100100  08835556  0x86d1e4
            111001001111100110100000  15006112  0xe4f9a0
            111111111101010100010010  16766226  0xffd512
            011101011011000000000000  07712768  0x75b000
            000001100110001010110000  00418480  0x0662b0
            111011011110100011000110  15591622  0xede8c6
            110011000011001100000000  13382400  0xcc3300
            110100011101111111100111  13754343  0xd1dfe7
            010100101101010011001010  05428426  0x52d4ca
            110001011110000001011101  12968029  0xc5e05d
            111001111100000101110100  15188340  0xe7c174
            111111111111011110010111  16775063  0xfff797
            110001011111011010001111  12973711  0xc5f68f
            101111011111000111100110  12448230  0xbdf1e6
            100111101001100001111101  10393725  0x9e987d
            111010111001100010001101  15440013  0xeb988d
            100100011100100111100101  09554405  0x91c9e5
            100100111101110001001010  09690186  0x93dc4a
            111111111011100100000000  16759040  0xffb900
            100111101011101111001101  10402765  0x9ebbcd
            000000001001011110010111  00038807  0x009797
            000011011011001011000010  00897730  0x0db2c2
    Anyway, it sure would have been nice to have access to this in the API - hopefully I've saved someone else the time I've wasted...

  • How to add line series dynamically to a line chart in flex?

    hi..i need to add line series dynamically to a line chart..depending on an array..the application is this..i have an array which stores the details of the users connected to an fmi server..the chart should display the bandwidth of each client..so the users should be added and removed from the chart dynamically...

    Hi
    1.I am giving you solution for dynamically adding values to the dropdown
    public void addValue( )  //Method Name in Component controller
        //@@begin addValue()
              IWDNodeInfo nodeinfo = wdContext.nodeNodeTestData().getNodeInfo();// Node should be map to the view's Node
              IWDAttributeInfo att = nodeinfo.getAttribute("VechileTypes");// Attribute by which dropdown in bound//
              IModifiableSimpleValueSet svSet = att.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
              svSet.put(wdContext.currentNodeTestDataElement().getInpAtt(),wdContext.currentNodeTestDataElement().getInpAtt());
        //@@end
    2.   wdThis.wdGetLangCompController().addValue(); // call this method in the point where u want to add values to the dropdown.

  • Flash chart with dynamic sql query does not display

    Hi,
    In my schema SIVOA I have a lot of tables declared like this :
      CREATE TABLE "SIVOA"."EVV_xxxx"
       (     "CLEF_VAR" NUMBER(4,0),
         "DATE1" DATE,
         "VALEUR" NUMBER(16,8) Only the last part of the name changes "xxxx". For example E009, E019, etc....
    I am making a chart page with report and want the user to select a name of a table and I will display using dynamic sql query, the table report and chart.
    P184_ENAME is a select list returning the last part of the name of the table, fro example 'E009', 'E019', etc.
    P8_CLEF_VAR is an item containing a value. This value is a key retrieved like this :SELECT CLEF_VAR
    FROM SIVOA.SITE_ECHELLE
    WHERE SITE = :P184_ENAMEI built a classic report using a sql dynamic function :DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, VALEUR FROM SIVOA.EVV_'
    || UPPER(:p184_ename)
    || ' WHERE CLEF_VAR = :p8_clef_var' ;
    RETURN (x);
    END;:p8_clef_var is an itme containing the value '4544'.
    This works perfectly fine !
    When I use this sql fucytion into a flash chart it does not work. I get this message "No data found".
    I do not understand why a the report get a result and not the chart !
    But if i hard-code the number of the CLEF_VAR instead of fetching it from :p8_clef_var I get a nice chart ! Go figure !DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, VALEUR FROM SIVOA.EVV_'
    || UPPER(:p184_ename)
    || ' WHERE CLEF_VAR = 4544 ' ;
    RETURN (x);
    I cannot stay with the key (CLEF_VAR) hard-coded unformtunately !
    My question is how to get the chart displaying properly ??
    Thank you for your kind answers.
    Christian                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Alex,
    Using your request, with the classic report I get results (data), but I get the same message with the Flash chart : "No data found" ! I don't know how to investigate this. i tried many things but nothing works.
    Christian
    PS I tried this :
    DECLARE
       X   VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL, DATE1, ROUND(VALEUR,2) FROM SIVOA.EVV_'
          || UPPER (:p184_ename) ||
          ' WHERE CLEF_VAR = '
          || :p8_clef_var ||
          ' AND DATE1 BETWEEN TO_DATE ('''
    ||:P8_DATE_DEBUT||''', ''DD/MM/YYYY HH24:MI'') AND TO_DATE ('''
    ||:P8_DATE_FIN||''', ''DD/MM/YYYY HH24:MI'')'
    RETURN (X);
    END; But it does not work either. I could find that the SLQ syntax generated is good becaus I put it into an item which display the return done by the pls/sql.
    What is sttange also with the classic report is that if I do click on next or previous to see another rows, I get the message "No data found". If I try to export the report I get an excel file with "No data fouid".
    Does anybody already tried my "need" here ? i find strange thant I should not be the firs one trying to get a report an tables which name would be "dynamic".
    Tahnk you.
    Edited by: Christian from France on Feb 13, 2009 3:05 AM

  • How to create dynamic ed flash charts based on user selected fields in Orac

    Hi all,
    Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex".
    Thanks
    Manish

    Hello,
    Lots of different ways to do this, I blogged about one way (using a Pipelined function) here -
    http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
    Other options include using a PL/SQL function returning the string to use as the dynamic query etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

Maybe you are looking for