Create checkbox from Chart in ActionScript

Hi all. Have a little problem hope someone has already solved it.
So i have 2 ArrayCollections with a same format but diferent data:
public var santiagoPast:ArrayCollection = new ArrayCollection([
          {Month:"Ene", Fee:1000, Kiosco:10, Web:256, Movil:87, No_detectado:6, Sin_informacion:10},
          {Month:"Dic", Fee:195, Kiosco:320, Web:100, Movil:33, No_detectado:5, Sin_informacion:5}  
public var santiagoNow:ArrayCollection = new ArrayCollection([
                            {Month:"Ene", Fee:800, Kiosco:10, Web:256, Movil:87, No_detectado:6, Sin_informacion:10},
                            {Month:"Abr", Fee:600, Kiosco:78, Web:234, Movil:78, No_detectado:32, Sin_informacion:8}
So with them, i create a Multi data chart via ActionScript. The first data: "santiagoPast" will be LineSeries and the second one: "santiagoNow" will be ColumnSeries.
Then, also via ActionScript i create a checkbox for each serie. That way, the user can check or uncheck to show or hide that serie in the chart.
Im trying to not to create a checkbox for the ColumnSerie, but the only way that ir works is when i create a checkbox for all the series. The code where i create the checkbox is this:
private function crearcheckbox():void{
                      for each(var serie:Series in linechart.series){
                                var combo:CheckBox = new CheckBox();
                                combo.data = serie;
                                combo.id = serie.id;
                                combo.label = combo.data.yField;
                                combo.addEventListener(Event.CHANGE, cambio);
                                comboboxes.addChild(combo);
And i tried changing the for each(var serie:Series in linechart.series) to for each(var serie:LineSeries in linechart.series) but doesnt work.
Any ideas?
Thanks for your time!

Solved it adding:
for each(var serie:Series in linechart.series){
                                if(serie is ColumnSeries){
simple but didn´t knew it

Similar Messages

  • Creating a pie chart from a list of indicators

    Hello:
    I'm working with WebIntelligence XI R2 and I have created a table that displays a list of indicators:
    Indicator 1   15
    Indicator 2   35
    Indicator 3   40
    Indicator 4   10
    The problem is that I want to create a pie chart from this table but it seems that Webi is unable to convert a list of numbers in a pie chart.
    Is there any workaround to make this chart, without having to change the universe? ( I suppose that if I convert the four indicators into a single dimension it will be possible, but I would like to avoid that).
    Thanks in advance and regards,
    Joaquín Castellano

    Please disregard. i went back to the original blog code and started over, and figured this out.

  • From SharePoint2013 list item data how to create Google Interactive Chart?

    HI All,
    From SharePoint2013 list item data how to create Google Interactive Chart?
    Thanks in advance!

    Hi,
    To push data from list items to Google Chart, we can use JavaScript Client Object Model or REST API to retrieve the data needed.
    Here are two links about using JavaScript Client Object Model to access list items:
    http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    From the links from the official site of the Google Chart, we can find out the method to populate data into Chart:
    https://developers.google.com/chart/interactive/docs/quick_start
    https://developers.google.com/chart/interactive/docs/examples#gauge_example
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to create a pie chart from a pop-up menu in Numbers?

    I would like to be able to select a persons name from the Pop-up menu in the E column to chose who has bought an item. I would then like to create a pie chart showing how much money each person has spent on buying the items and have this update automatically. I have no idea how I would go about doing this. Any help would be greatly appreciated.
    Thanks

    Costs per person, with "Ali & Baker" as a separate entity (since no provision for separating costs)
    The formula is this:
    =SUMIFS($Cost, $Who Bought it?, "="&$Who Bought it?, $Bought?, "=TRUE")
    The reasoning is:
    Sum all Costs, if the following conditions are true:
    $Who Bought it?, "="&$Who Bought it?
    Group items in the 'Who Bought it? column that match the item in the same row as the formula.
    $Bought?, "=TRUE"
    Only include items that have actually been bought.
    Screenshot
    I have highlighted the selected cell in red. 
    The coloured columns show which ones are relevant to the formula.
    To create the totals, I added Footer rows to the table.
    You could make a separate table if you prefer.
    To create the pie chart, I selected just the costs in the footer rows, and clicked on Charts.

  • I have a main fillable form.  From this main form the user may need additional forms.  I want to create checkboxes that link to these additional forms.  This part I believe I know how to do (Properties/Actions/Open a File).  What I want to add is a javasc

    I have a main fillable form.  From this main form the user may need additional forms.  I want to create checkboxes that link to these additional forms.  This part I believe I know how to do (Properties/Actions/Open a File).  What I want to add is a javascript to the checkbox that when the new file (or form) opens some of the data (the repetitive data like name, date, etc.) from the main form is placed into the form opened where the same form fields exist.  Is this possible?

    Yes, but then it all has to be done using a script. You can't use the built-in Open A File command.

  • How to create real time chart with candle stick for displaying Open, High, Close, Low values from BSE/NSE EOD data

    Please help with sample windows form C#.Net Example

    Hi Goutam,
    Please refer to the following link with examples: http://www.codeproject.com/Questions/234865/create-real-time-chart
    Hope this helps you!
    Regards,
    Mitch!

  • Creating floating bar charts in Numbers '09

    I have what seems a fairly simple requirement, but can't quite work out how to do it in Numbers...
    I have a set of price ranges (quotes) and I want to put them on a graph, so I can see at a glance how they they tend to fall.
    Ideally, I'd like the X axis to be price and the Y axis to be basically nothing - each quote gets its own line.
    So I'm after a stack of horizontal bars indicating the from - to price range.
    It doesn't seem that this should be too onerous, but I simply can't spot an appropriate graph type.
    Anyone?

    I am trying to picture what you mean but I can't seem to. But I'll give it a shot.
    EDIT: I wrote all this then re-read your post and this isn't what you were asking for. Oops.
    All charts (graphs) need X's and Y's, though the Y's could be all be the same constant value. So the data you need to plot is a column of quotes (X data) with a column of 1's or checkboxes (Y data) next to it. I am guessing that you want your quotes to be spread across the X axis, not spaced evenly like they are in the bar charts. Otherwise you probably wouldn't be asking. You have two choices on how to do this.
    First way:
    If you can create a list of evenly spaced quotes in the header column (A) with a column (B) of checkboxes next to it, you can use a bar chart. You would put a check next to any quote you want to appear on the chart. So you might have a column with quotes of $1, $2, $3, etc with checkboxes next to each which you can check/uncheck. This probably isn't practical in this case but I don't know your data so I'm throwing it out there.
    Second way:
    Have a non-header column (B) of quotes and a corresponding column of 1's. Create a scatter chart. This will give you data points, not bars. In the Chart Inspector, Series tab, click on Advanced and add error bars to the Y axis. Make them negative only and 100%. Set the data point symbol to None. Then go to the Graphic Inspector and change the error bars so the line type is a straight line, the width is greater, and the color is what you want. This still isn't a bar chart but it is more like one.
    There are variations on the second method. You can remove the Y axis gridlines and value labels so you have a single horizontal line (the X axis). You can plot 0's instead of 1's and make positive, fixed value error bars.
    Message was edited by: Badunit

  • Trying to remove a checkBox from a list of checkBoxes

    Hello,
    I have a dictionary that has TKey equal to a Decimal and with TValue equal to a List<CheckBox>. I declare it like so:
    Dictionary<Decimal, List<CheckBox>> entireCheckBoxList = new Dictionary<Decimal, List<CheckBox>>();
    The reason for doing this is that I can pass it a NumericUpDown value (which only is in Decimal), then I can find any created CheckBox's that corespond to the NumericUpDown value. So let say I have my NumericUpDown equal to 1, when I click on the up
    arrow, I pop-up a new form window that lets me enter data lets say folder name and file name. Then, when I click my save button, I create check boxes for a folder name and under that check box is a the file name but it is slightly indented to the right and
    under it:
    So the reason why I have a Decimal TKey is that when i pop up a new form to create checkBoxes, I can create as many check boxes as I want and only want to assign them to one number. So if I create 4 check Boxes in one form pop-up form, then I want the numberUpDown
    value to only be increased by one when I save it and create them. 
    So my main question is, when I click down on the numericUpDown arrow, I want to remove the index associated with the numericUpdown from both the control and this dictionary. I am able to remove from the dictionary like so:
    entireCheckBoxList.Remove(numbericUpDownValue);
    However now I want to remove from the control with something like this:
    this.tabPage1.Controls.Remove(entireCheckBoxList[numbericUpDownValue]);
    But I am receiving the following errors:
    Error 1
    The best overloaded method match for 'System.Windows.Forms.Control.ControlCollection.Remove(System.Windows.Forms.Control)' has some invalid arguments
    Error 2
    Argument 1: cannot convert from 'System.Collections.Generic.List<System.Windows.Forms.CheckBox>' to 'System.Windows.Forms.Control'.
    All I want to do is remove the check boxes associated with the numericUpDown value from the control that correspond to the ones created and stored in my dictionary List<CheckBoxes>. I am just not sure how to do it.
    Kind Regards.

    Ok great thanks for this. 
    I have just realized that if I can just remove the last item in the entireCheckBoxList dictionary added, then there is no reason for the numbericUpDownValue look up. I just need to remove the last item in this dictionary.
    I have tried many things to get the last item in the dictionary but are all out of ideas.
    Any clue?
    I have done this:
    var test = entireCheckBoxList.Last();
    then since this gives me the last value, I have then looped through like so:
    foreach (CheckBox item in test.Value)
    Then to remove only the last items created, since they are done in pairs, i have done this:
    count++;
    if ((count == test.Value.Count - 1) || (count == test.Value.Count))
    this.tabPage1.Controls.Remove(item);
    else
    if (!yourlist.Contains(item))
    yourlist.Add(item);
    entireCheckBoxList.Add(count, yourlist);
    where count is an int declare above. So the final solution is this:
    var test = entireCheckBoxList.Last();
    int entireCheckBoxCount = entireCheckBoxList.Count;
    List<CheckBox> yourlist = new List<CheckBox>();
    int count = 0;
    entireCheckBoxList.Clear();
    foreach (CheckBox item in test.Value)
    count++;
    if ((count == test.Value.Count - 1) || (count == test.Value.Count))
    this.tabPage1.Controls.Remove(item);
    else
    if (!yourlist.Contains(item))
    yourlist.Add(item);
    entireCheckBoxList.Add(count, yourlist);
    What do you think?
    Kind Regards.

  • How to create checkboxes in BIP templates?

    I am creating BI Publisher Template for use with Siebel. In the datastream, values for boolean fields are passed as Y or N.
    However if I place a MS Word checkbox object and give the field as the property, nothing happens at all.
    I have tried using conditional sections and Wingdings font to display checked and unchecked icons depending on the value of the flag. But, when report is run in PDF, Wingdings can not be used.
    When exposing the field directly, it populates with "Y" or "N". However, we want checkboxes.
    Any ideas appreciated.

    I have similar issue.
    1) I have copied Wingdng2.ttf file to $BIHome/jdk/jre/lib/fonts/ folder.
    2) I have created xdo.cfg file and configured to use Wingdings 2;82;163 for checkbox display.
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
    <fonts>
    <truetype path="c:\windows\fonts\WINGDNG2.ttf"/>
    </fonts>
    <properties>
    <property name="rtf-checkbox-glyph">Wingdings 2;82;163</property>
    </properties>
    </config>
    Problem: The checkbox displays fine under English locale, however it is displayed as Rhombus/Diamond under French locale (when .xlf file is used). I am using BIP 10.1.3.4.2.
    Does anyone know how to fix this issue? It looks like the translation of checkbox from english to french is messed up.

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • How to create the custom charts?

    how to create a custom charts? for example the donut shapes, but for the data can be automatically adjust (like a available charts on keynote)

    Keynote and Numbers do not have a tool for making Donut Graphs. There are ways to make them using HTML, but I prefer to cheat:
    1 Create your first graph as a pie chart and add a circle of solid color to the center
    2. If you need more, take a screenshot of the pie chart with the center fill  and drag the screenshot into Preview - in Preview > Select Tool (pulldown from Toolbar) > Instant Alpha and remove the inner filled circle and outer fill then Save As > PNG with Alpha
    3. Drag your new hollow shape into Keynote. This chart can be placed over another pie chart with a filled center (the fill should match the background)
    Not as graceful as a special tool but can get the job done quickly - changing the data requires starting it over since at least one of your donuts my be an image rather than a pie chart with variable data.
    Try it. If you need more specific tools, Google Donut Shaped Charts for starts.
    Good luck

  • Creating a new chart in PowerPoint 2013 with Chart Styles applied

    In PowerPoint 2013 when I manually insert a new chart into a slide, the chart automatically has the Chart Style "Style 1" applied. This has the effect of setting the font sizes of chart labels to 12.
    However, no Chart Styles are applied if I try to add a new chart to PowerPoint 2013 using the following C# code:
    var ppt = new Microsoft.Office.Interop.PowerPoint.Application();
    var presentation = ppt.Presentations.Add();
    var layout = Microsoft.Office.Interop.PowerPoint.PpSlideLayout.ppLayoutChart;
    var slide = presentation.Slides.Add(1, layout);
    var shapes = slide.Shapes;
    shapes.AddChart();
    Font sizes seem to default to 18. Is there any way to create a chart or to set Chart Styles using Interop so that it matches a chart produced manually (i.e. has Chart Styles applied)?
    I am aware of the Chart.ChartStyle property but it only seems to change chart colors and legend placement, not font size. There is no Macro recorder in PowerPoint, so I can't generate VBA code to replicate the action of creating a new chart.

    Hi
    >> there any way to create a chart or to set Chart Styles using Interop so that it matches a chart produced manually (i.e. has Chart Styles applied)?
    You can add using shapes.AddChart2() instead of the last sentence shapes.AddChart(), I have tested in my projects, if I using AddChart(), the label size and the space will be different from manually insert a chart into a slide, but AddChart2() is the same
    with manually operating.
    And This object, member, or enumeration is deprecated and is not intended to be used in your code.
    More details you cab refer to the following link
    https://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.shapes.addchart.aspx
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while creating the Flash Chart

    Hi ,
    While creating the Flash Chart i got the following error..
    Error Item ID (4789301958029267) is not an item defined on the current page.
    What does it mean????
    My Chart Series is:
    SELECT NULL LINK, DISTRIBUTOR, CLGASSETS, FOLIOS FROM (
    select NULL Link, distributor,SUM(Clgassets) Clgassets,SUM(folios) FOLIOS from (
           select Month,distributor,
                  clgassets,sales,red,trxns,folios,
                  row_number() over(partition by SchType order by clgassets desc) rn,
                  dense_rank() over(partition by SchType order by clgassets desc) den_rank
              from(
                    Select Month,
                    Scheme_type SchType,
                    Broker Distributor,
                    sum(CLGASSETS)  CLGASSETS,
                    sum(SALES) SALES,
                    sum(RED)  RED,
                    sum(TRXNS) TRXNS,
                    sum(FOLIOS) FOLIOS
          from TABLE
                    MFDEX_TOPN_QUERY_PKG.TOPN_REPORT_QUERY
                 'OWNPERF',
                 :p_amc_code,
                 'X',
                 'X',
                 :p6001_month,
                 'X',
                 'X',
                 'X'                       
                    )  op where instr(':'||:P6001_schtype||':',':'||scheme_type||':') > 0
                   group by Month, Scheme_type,Broker
                   order by CLGASSETS DESC)
             order by clgassets desc)
    where den_rank<=5
    GROUP BY DISTRIBUTOR
    ORDER BY Clgassets DESC)
    WHERE ROWNUM<=5Help me out to clear this error.
    Cheers,
    Shan.

    Hi Sa'ad
    Its been a little while since I used Web Analysis but I remember that there are issues if you have more than 1 dimension in rows or columns. What I cannot remember is whether it automatically shifts a dimension to the page or whether as you suggest it just doesn't display.
    Pie charts can only display data from two dimensions (1 rows, 1 columns), you can filter using dimensions on pages. If that doesn't give you what you need then I'm afraid you need to stick to a different chart type.
    Hope this helps
    Stuart

  • Create PDF from webpage font color turns white

    While using Create PDF from a web page the text in the final PDF is colored white so I cannot see it.  Italicized text remains black and is find.  However, the font color of standard text is turned white.  I know the text is there because I can use the text editing tool to copy the text out into notepad.  This problem occurs with Adobe Acrobat X and XI.  However, when I use Adobe Acrobat VIII there is not problem.  Furthermore, with the website I am converting to PDF the problem only happens if I try to convert the entire site, which is about 1,100 pages.  If I stop the job half way, the font color remains fine.
    Any ideas?

    Under the Settings... button in the Create PDF from web page dialog, do you have the checkbox selected for "Force These Settings for All Pages"?

  • How to create checkbox in mail content

    Hello,
    I have created a program to send mail. The requirement is to write some text in mail content along with pdf.
    The issue I am facing is that the mail content(body) should contain check boxes.
    At present the mail body fetches all text from SO10 standard text. I have tried inserting symbol in SO10 ( SAP-SYMBOLS ) but the out displays <697>,, instead of checkbox in mail.
    How should I create checkbox that are displayed in mail body.?
    <removed by moderator>
    Edited by: Thomas Zloch on Aug 10, 2011 12:01 PM

    go to the standard text > change editor > select PC editor
    now you can put an HTML TAG
    <br>
    <input type="checkbox" name="option1" value="Milk"> Milk
    <br>
    I can see the check box in SAP, but not in OUTLOOK... not sure whether we an issue with SAP or OUTLOOK or we entirely look in different way..

Maybe you are looking for