Creating a dynamic chart

I would like to create a chart that displays information using a link from another page.
so basically, i have a list of items that act as links, they already populate a report region with information when clicked. (e.g i click 'item 1' and only information about item 1 is displayed on the next page)
i want the chart to also display information based around this theory.
at the moment it shows information for all the objects currently in the list of items, i want it to show information for the specific item that is clicked on.
can anybody point me in the right direction.

The data that generates the chart is just a SQL statement and, like for reports, can be filtered based on the value of a field item.
I would suggest having a hidden field above the chart that will contain the value you want to filter by (eg, "1"), then update the branch to set this value, then update your chart's SQL statement to include a WHERE clause (eg, "WHERE Item = :FILTER").
Andy

Similar Messages

  • How can I creat a dynamic chart legend?

    Will,I want to show multi hosts' dynamic CPU performance (the host ip can be changed).I use those code below for a test:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" backgroundColor="0xFFFFFF" initialize="init()">
         <mx:Script>
              <![CDATA[
                   import mx.charts.ChartItem;
                   import mx.charts.chartClasses.IAxis;
                   import mx.charts.chartClasses.LegendData;
                   import mx.charts.chartClasses.Series;
                   import mx.charts.events.ChartItemEvent;
                   import mx.charts.series.LineSeries;
                   import mx.collections.ArrayCollection;
                   import mx.containers.Canvas;
                   import mx.containers.HBox;
                   import mx.controls.Alert;
                   import mx.graphics.SolidColor;
                   [Bindable]
                   private var dayTimeV:int = 0;
                   [Bindable]
                   private var legendDP:ArrayCollection = new ArrayCollection();
                   //for record whether the ip changed by using the length
                   private var latestIp2Length:Object = new Object();
                   [Bindable]
                   public var statsPpg:ArrayCollection = new ArrayCollection([
                        new ArrayCollection([{dayTime:dayTimeV,CPU:24.0, IP:"100.0.2.0"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:27.6, IP:"100.0.2.1"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:35.4, IP:"100.0.2.2"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:31.6, IP:"100.0.2.4"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:28.3, IP:"100.0.1.6"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:27.2, IP:"100.0.1.9"}])
                   private function init():void{
                        latestIp2Length["100.0.2.0"] = 1;
                        latestIp2Length['100.0.2.1'] = 1;
                        latestIp2Length['100.0.2.2'] = 1;
                        latestIp2Length['100.0.2.4'] = 1;
                        latestIp2Length['100.0.1.6'] = 1;
                        latestIp2Length['100.0.1.9'] = 1;
                        initLegend();
                        createLineSeries();
                   private function createLineSeries():void{
                        for(var i:int = 0 ;i < statsPpg.length ;i++){
                        var lineSeries:LineSeries = new LineSeries();    
                        lineSeries.yField = "CPU";    
                        lineSeries.displayName = "CPU";
                        lineSeries.dataProvider = statsPpg[i];
                        lineSeries.id = "lineSeries"+i;
                        lineSeries.setStyle("adjustedRadius",2);
                        lineSeries.setStyle("radius",40);
                        lineSeries.setStyle("fill","#55CC33");
                        var series:Array = chartPPG.series;
                        series.push(lineSeries);
                        chartPPG.series = series;
                   //find the record using ip
                   private function indexOf(ip:String):int{
                        for(var i:int = 0 ; i < statsPpg.length ;i++){
                        if(statsPpg[i].getItemAt(0).IP == ip)
                             return i;
                        return -1;
                   private function modifyData():void{
                        dayTimeV++;
                        //all new added data
                        var forAdded:ArrayCollection = new ArrayCollection([
                             {dayTime:dayTimeV,CPU:24.0+Math.random()*10, IP:"100.0.2."+dayTimeV},
                             {dayTime:dayTimeV,CPU:27.6+Math.random()*10, IP:"100.0.2."+(dayTimeV+1)},
                             {dayTime:dayTimeV,CPU:35.4+Math.random()*10, IP:"100.0.2."+(dayTimeV+2)},
                             {dayTime:dayTimeV,CPU:31.6+Math.random()*10, IP:"100.0.2."+(dayTimeV+3)},
                             {dayTime:dayTimeV,CPU:28.3+Math.random()*10, IP:"100.0.1."+(dayTimeV+4)},
                             {dayTime:dayTimeV,CPU:27.2+Math.random()*10, IP:"100.0.1."+(dayTimeV+5)}
                        //the data(IP) appear at first time
                        var waitedForAdded:ArrayCollection = new ArrayCollection();
                        for(var i:int = 0 ; i < forAdded.length ;i++){
                             var index:int = indexOf(forAdded[i].IP);
                             if(index != -1){//if we found,append it
                                  statsPpg[index].addItem(forAdded[i]);
                             }else{//if not,
                                  waitedForAdded.addItem(forAdded[i]);
                   var j:int = 0;
                    for(i = 0 ; i < statsPpg.length ;i++){
                         // if length not changed,delete old data and add new
                         if(latestIp2Length[statsPpg[i][0].IP] == statsPpg[i].length){
                              delete latestIp2Length[statsPpg[i][0].IP];
                              var legendIndex:int = findLegendDPData(statsPpg[i][0].IP);
                              statsPpg[i].setItemAt(waitedForAdded[j],0);
                              latestIp2Length[waitedForAdded[j].IP] = statsPpg[i].length;
                              legendDP.setItemAt(newLegendData(waitedForAdded[j].IP),legendIndex);
                              j++;     
                         }else{//if length changed,the data appended already
                              latestIp2Length[statsPpg[i][0].IP] = statsPpg[i].length;
                   private function addData():void{
                        dayTimeV++;
                        newData();
                   private function newLegendData(ip:String):LegendData{
                        var legendData:LegendData = new LegendData();
                        legendData.label= ip;
                        legendData.marker= new HBox();
                        legendData.aspectRatio=1;
                        return legendData;
                   private function findLegendDPData(ip:String):int{
                        for(var i:int = 0;i < legendDP.length;i++){
                             if(legendDP[i].label == ip)
                                  return i;
                        return -1;
                   /* [Bindable]
                   public function get legend():ArrayCollection
                        var legend:ArrayCollection = new ArrayCollection();
                        for (var i:int = 0; i < statsPpg.length; i++)
                             var dataObject:Object = statsPpg[i][0];
                             legend.addItem(newLegendData(dataObject.IP.toString()));
                        return legend;
                   [Bindable]
                   public function set legend(legendData:ArrayCollection):void
                             legend = legendData;
                   private function initLegend():void
                        for (var i:int = 0; i < statsPpg.length; i++)
                             var dataObject:Object = statsPpg[i][0];
                             legendDP.addItem(newLegendData(dataObject.IP.toString()));
                   private function yAxisLabel(value:Object, previousValue:Object, axis:IAxis):String
                        return value + ' %';
              ]]>
         </mx:Script>
         <mx:Panel width="790" title="CPU.IP" layout="horizontal">
              <mx:LineChart  id="chartPPG" name="Comparison" showDataTips="true">
                   <mx:horizontalAxis>
                        <mx:CategoryAxis dataProvider="{statsPpg[0]}" categoryField="dayTime" title="Days" id="categories"/>
                   </mx:horizontalAxis>
                   <mx:verticalAxis>
                        <mx:LinearAxis labelFunction="{yAxisLabel}"  title="CPU" id="yAxis"/>
                   </mx:verticalAxis>
                   <!--<mx:series>
                        <mx:LineSeries id="CPU" yField="CPU" xField="dayTime" displayName="CPU  "/>
                        <mx:LineSeries id="IP" yField="IP" xField="IP" displayName="IP  " />
                   </mx:series>-->
              </mx:LineChart>
              <!--<mx:Legend dataProvider="{chartPPG}" markerWidth="50" markerHeight="4" legendItemClass="MyLegendItem" direction="vertical"  width="174"/>-->
              <!--<mx:Legend id="myActionScriptLegend" creationComplete="createDynamicLegend(event)" />-->
              <mx:Legend id="userLegend" dataProvider="{legendDP}"/>
              <mx:Button label="AddNewData" click="modifyData()"/>
         </mx:Panel>
    </mx:Application>
    the result is here:
    Question:
    1.I using the binding ArrayCollection  legendDP as the Legend's dataprovider, the Legend's showing not changed  when the legendDP changed
    2.How can I fill the Legend's color,the result has no color showed.

    Can anyone help?

  • [DW + PHP + MySQL] is there an extension to create dynamic charts?

    Hi all
    is there an extension for DW (I have DW 8) that let you
    create dynamic
    chart based on a mysql database?
    Once upon a time there was an interakt extension that was
    created just
    for this kind of applications, but now it is discontinued
    (thanks
    adobe) and I can't even buy it.
    Is there an alternative?
    Thanks in advance.
    tony

    Check
    http://www.webassist.com. They
    have one.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sweetman" <[email protected]> wrote in message
    news:[email protected]..
    > Hi all
    >
    > is there an extension for DW (I have DW 8) that let you
    create dynamic
    > chart based on a mysql database?
    >
    > Once upon a time there was an interakt extension that
    was created just
    > for this kind of applications, but now it is
    discontinued (thanks
    > adobe) and I can't even buy it.
    >
    > Is there an alternative?
    >
    > Thanks in advance.
    >
    > tony

  • Create Dynamic Chart from sql / plsql

    Hi can anybody help with this problem. I need to know the process I can use to create a dynamic pie chart from plsql.
    i.e. the functionality is -> user selects a table, then selects a subset of columns and then generates a pie chart of these columns.
    I cannot find a way of generating the pie chart sql syntax on the fly. Can anybody do this?

    See: Re: SVG Charts - How to use dynamic tables in select statement

  • Create a number of Dynamic Charts based on "Work Centre" in BEx Workbook?

    Hi all,
    We are on BI 7.0
    I am trying to create a number of dynamic charts in a BEx workbook based on the different values of "Work Centre" so that each unique work centre has its own chart.
    All titles and descriptions would have to be dynamic based on the work centre.
    I.e If there are 20 work centres we would need 20 charts. 30 work centres 30 charts etc.
    Also to add a little more complexity we need to only show a chart if a key figure (Demand Hrs) has a value greater than ZERO.
    Would be very grateful and would assign generous points for a solution.
    This needs to be done in a BEx workbook.
    Thanks in advance,
    Steve Jones
    BI Consultant

    Hello,
    The only possible way you can have a work around is with help of VB macros.
    The logic would be simple: Have a VB Script to check the varying work centres from the report. Then for each work centre check for demand hrs greater than zero. Then you can go with a for or while loop to create the graphs as per needed.
    Take help of VB Script expert for this if needed. Also if you want to work around for yourself you can check the record marco functionality of the excel. VB Script Macro is your only way out and as in your case youu2019re using workbook, this satisfies your need.
    Regards,
    Shashank

  • Create and Load Chart dynamically  in Flex

    Hi Friends,
    I want to create the chart dynamically [N numbers] . I try
    to create one line chart and add line series by action script , but
    i stuck up at how to embed that chart object in mxml code. I want
    to load the [action script created ] chart in canvas container.
    Plz help me if u have any ideas ,
    thanks
    ksam.

    what i would like to have is like this...
    XML Template :
    <class name="TaskA" getters="true" setters="true">
    <properties name="id" type="java.lang.Long" defaultValue="0"/>
    <properties name="name" type="java.lang.String" defaultValue="null"/>
    <properties name="priority" type="java.lang.Integer" defaultValue="3"/>
    </class>
    And using some java code i could generate a class at runtime, the prototype of which would be something like this...
    public class TaskA {
    java.lang.Long id=0;
    java.lang.String=null;
    java.lang.Integer priority=3;
    ..................... //Getters and Setters of the properties.
    }

  • InDesign CS5 -- dynamic charting workflow?

    Hi,
    I searched the forum but I feel like I haven't quite found my answer.  Basically, my organization, in the past, has produced a dynamic 'demographic fact sheet' document for communities in the Denver, Colorado USA region. (example: http://www.drcog.org/communityprofiles/PDFs/ArapahoeCounty.pdf)  This was previously done with an Access database and a mail merge in Microsoft Publisher (I know, I know), but we would like to bring this process into CS5, since our graphic designers work in InDesign CS5 and would like to redesign the look and feel of this document while automating this workflow so that it isn't as time-consuming as manually copying and pasting charts for each community.
    What kind of workflow would most easily produce a document like this?  It is essentially a mixture of charts and graphs along with some dynamic text.  I've read about Data Merge and XML, but I'm not sure about the charting and graph part of this -- most of the information I've found online talks about using Illustrator to make dynamic charts, but I'm not quite sure how to put everything together.  Basically, I'd like the process to work like it did with Publisher and Access, if possible.  We basically set up a template and then based on the data, Publisher generated a document that showed the appropriate data  (and correct values in graphs/charts) for every community.  The graphic designers have the CS5 Design Premium package, so they do have access to Illustrator and other Adobe apps if these are necessary.
    The data is stored in an enterprise database now (not Access), so extracting it to a CSV or other type of format is not a problem.
    InDesign is not my area of expertise, but I want to help with the process as much as I can.
    Thank you so much for any insight or recommendations!
    Jonathan

    This type of project would be too data intensive for Indesign. ID's data merge and ID's xml capabilities would not be sufficient either. Not to say that Indesign could not be used to create content, but the data portion would have to be driven with a 3rd party solution, something like XMPie.This type of solution typically is postioned at the print end and ties all the components: content created from ID, variable image, variable text, data export file to create custom chart, etc. to produce a finished customized print piece.

  • How to create a Dynamic UI that can work as a Graphic builder

    Hi Guys
    I have a requirement here
    There should be a Graphic Builder ...........like the way we see our Flex Builder
    But this should be a web application with the following functionality
    Lot of widgets on your left panel like say meter , cricle, chart, line graph etc. All this would be a different flex widgets(say compiled swf file loaded separately in the main application
    On the right Panel there would be dash board where they can drag and drop this above widgets and create a separate page like dragging a chart. user would be given option to configure the points for chart ....................and the data for the live chart would be feed from the backend
    Now I am little confused to how to go about ?
    Creation of separate widgets is ok ?
    Creation of applcation with this widgets is ok
    Giving an option to drag and drop , configure is ok ?
    But the main thing is that If we have to save the pages created by different user ? What is the best way to do that ? Do we use xml to save the customized widget pages including the UI layout information like widget Graph at coordinate x= 120 and y=56 etc etc then parse these xml to get the Layout back and putting the widget back to their location as the way the user created those pages
    Any suggestion ..................
    Regards
    Biswamit

    assign your library images each a class.  you can then use the "new" constructor to create instances dynamically.

  • CHART BUILDER ERROR WHEN TRYING TO GENERATE DYNAMIC CHARTS ON A JSP PAGE

    I'm working with J Develop 9.03 on Windows 2000 Professional Edition.
    I'm using the JSP demo files provided with Oracle Chart Builder to generate
    dynamic charts. The user specifies the query parameters, including the date
    range and the query results are returned by means of a line chart (with date on
    the x axis and values on the y axis).
    When trying to compile the project I get the following error messages:
    Error(165,2): class FileOutputStream not found in class _graph
    Error(170,5): class File not found in class _graph
    Error(176,4): exception java.io.IOException is never thrown in the
    corresponding try block
    I checked to see that the chartbuilder library (chartbuilder.jar) files are
    loaded into the project library. It's unusual that the class is not being
    found. I don't understand why. I developed my project using the following steps:
    1. Unzipped Chart Builder installation files into c:\Oraclechartbuilder
    2. Loaded chartbuilder class library
    c:\Oraclechartbuilder\chartbuilder\lib\chartbuilder.jar into J Developer class
    path (by selecting <Project Settings> <Paths> and browsing to the
    chartbuilder.jar file).
    3. Created a new JSP page in J Developer (graph.jsp)
    4. Copied JSP code syntax from the Word Pad demo file and pasted into graph.jsp
    5. Changed the DB connection parameters and static directory location on the
    JSP page.
    6. Compiled the project and received the above errors.
    I would like to know why the classes are not being found and how to fix the problem. Thanks, Jaafar

    Hi mshah101,
    This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher)

  • Dynamic charting in J2ME using SVG - based on SQL query from a web server

    Hi
    I am creating a J2ME application which needs to generate dynamic charts for the user.
    The data for generating the charts is stored on a web server. In order to have minimal computations on the mobile device, I want to generate the charts on the web server itself.
    I have written a code which generates svg (svg tiny) charts dynamically on a web server based on sql queries on a database . Now I want a J2ME client app to be able to retrieve this data through a web service.
    Can someone guide me as to how to return svg files from a java web service.
    Any help would be greatly appreciated.
    Regards
    Sparsh

    Hi
    Actually, I am developing my application using Netbeans 6. In order to connect to my web service , I am using the J2ME client to web service as the type of my project and that uses the above mentioned API's.
    My question is how do I enable my web service to return a SVG file , and then how do I retrieve it in the J2ME client. Any example application that anyone knows online would be really helpful

  • Flash AS3.0, Create  bar, pie chart.

    hi
    how to create flash bar and pie chart in actionscript3.0. any ideas about this, any refference file.
    any samples file give me
    thnks

    Hi Ned,
    I found a AS3 tutorial for Bar Chart.
    http://code.tutsplus.com/tutorials/create-a-dynamic-bar-graph-generator-using-xml-as3--act ive-2639
    How do I modify the height of the Graph Bar?
    How do i create increase or decrease the spacing between the Graph Bar?

  • Looking for the best dynamic chart utility

    Hi-
    I'm creating a piece of software which extensively uses dynamic charts. The charts I'm using need to be updated atleast twice a second with over 10000 points on them. I've tried using jfreechart but its just too slow. I'm running a 900mhz c3 processor w/ 256 megs of ram on slackware linux 9.1. Does anyone know of a faster dynamic chart utility?
    -thanks

    Just a thought.
    I make svg 'templates' holding all the static parts of the graph and then at run time add to the DOM for example at a polyline representing (x,y) data. Extremely light weight.
    This is also in preparation for sending DOMFrags across the net to update a dynamic part of a display running on a client.

  • Creating a dynamic array in Actionscript

    I am wondering how I would create a dynamic array in Acionscript, i.e. one that utilizes fields for mapping data like this:
    public var SMITH:Array = [
               {date:"29-Aug-05", close:45.87, profit:52},
               {date:"23-Aug-05", close:45.74, profit:32},
               {date:"21-Aug-05", close:45.77, profit:22},
               {date:"25-Aug-05", close:46.06, profit:51},
    but where you would just be reading in data without knowing what your data looks like.  In other words, I'd like to take something like a database table with X number of columns and have Actionsctipt map each row to an item in my array.  Something like this:
    for each row in table
    add {col1:value, col2:value, col3:value, ... colX:value} to Array
    So I won't know "date" or "close" or whatever at runtime, I'll just have X number of items for each element in the array. How would this be done?
    The reason I need this mapping feature is because I then want to map the table-like array as the data provider to charts, datagrids, etc.
    Thanks.

    If this post answers your question or helps, please mark it as such.
    You can download the lib for JSON in Flex here:
    http://code.google.com/p/as3corelib/downloads/list
    These pages describe using JSON and Flex, and databases:
    http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-json
    http://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databas e
    http://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating
    http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscri pt-3/

  • Dynamic chart using SharePoint list data

    Is it possible to create dynamic chart from SharePoint List data using OOB.
    I have column Status [ choice - Pending , Submitted, Resolved ] . I want to genrate graph[Pie or Bar] show number of items in each status
    V Jean

    Thanks Lakshmanan,
    But in my environment - chart webpart is not available [ restricted].
    Have tried below using script.. Hope might help for other
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/finally-dynamic-charting-in-wss-no-code-required.aspx
    V Jean

  • Is it possible to add Dynamic Charts into Layout

    Hi all,
    I got a requirement to add dynamic charts when generating the PDF forms .
    The flow is a form is send by mail to a user.
    He populated it and send it back by mail to SAP .
    When SAP receive the mail, data is update in the backend and another forms have to be generat and send by mail.
    In the second form i need to create charts in order to have a more user friendly representation of data .
    I look everywhere but i do't find something to do it in background .
    Does somebody can help me ?
    Best regards

    Problem cancel

Maybe you are looking for