Charting using ActionScript and chart height,width and axis labels

hello, i am creating charts using action script but can't
seem to do 2 things right now. 1. put labels on the axisis. 2. i
can't set the height/width to 100%. does anyone know how?...below
is the function i use to create the charts
public var myChart:BarChart;
public var series1:BarSeries;
public var legend1:Legend;
private function addGraph():void {
// Create the chart object and set some
// basic properties.
myChart = new BarChart();
myChart.showDataTips = true;
myChart.dataProvider = feedRequest.lastResult.root.data;
// Define the category axis.
var vAxis:CategoryAxis = new CategoryAxis();
vAxis.categoryField = yAxis;
vAxis.dataProvider = feedRequest.lastResult.root.data;
myChart.verticalAxis = vAxis;
myChart.width=100;
myChart.height=100;
var la = new LinearAxis;
// Add the series.
var mySeries:Array=new Array();
series1 = new BarSeries();
series1.xField=xAxis;
series1.yField=yAxis;
series1.displayName = xAxis;
mySeries.push(series1);
myChart.series = mySeries;
// Create a legend.
legend1 = new Legend();
legend1.dataProvider = myChart;
// Attach chart and legend to the display list.
chartWindow.addChild(myChart);
chartWindow.visible=true;
}

use the percentWidth and percentHeight properties.

Similar Messages

  • Using ActionScript and FABridge to call JavaScript

    Hi,
    I understand how to use FABridge to register JavaScript
    functions as event listeners on Flex
    components. In my case, however, I want to programatically
    call a function that I've passed
    from JavaScript to my Flex app using ActionScript. Simply
    calling the function from AS, e.g.,
    my_js_function(), doesn't work and I suspect there's some
    vital FABridge proxy magic I should
    be using. All the FABridge examples I've seen cover the same
    ground: basic bridge set-up,
    changing Flex properties, registering JavaScript callbacks,
    etc. Can anyone point me to an
    example (or bridge documentation) showing how to program an
    ActionScript call to a JavaScript
    function through the bridge?
    Thanks, Garry

    Hi,
    Have you tried using ExternalInterface? Does that fail as
    well (it should be supported on Safar 1.0.3)

  • Stacked bar chart with custom x axis labels

    Is there a way to build this simple chart in labview that I did in Excel?  I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set. 
    Attachments:
    Excel.JPG ‏33 KB

    Hi id,
    Thank you for your response. I hope you are doing well.
    There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
    How Can I Customize the X-Axis Labels On My LabVIEW Graph/Chart So They Appear Vertically?
    http://digital.ni.com/public.nsf/allkb/1F7C1B089E4​5908E86256C8C0051894A?OpenDocument
    Let me know if these examples help.
    Best regards,
    Anna L
    Applications Engineer
    National Instruments

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

  • How to get response header using ActionScript and MXML?

    So... I have a URL like www.example.com/stream/
    I need to make any request to this url and get Http Rewspons header (like this one:
        HTTP/1.0 200 OK
        Content-type: video/x-flv
        Cache-Control: no-cache
    I do not need reponse body at all. After I get header need to emmidiatly close connection to that url (so stop to obtain data from it)
    How to do such thing (I use Flash builder)?

    Hai Mahesh
    Check the following Code
    Data : i_entamiot     LIKE   ehswas_entamiot.
    DATA: gv_batchattributes LIKE bapibatchatt.
    DATA: batchstatus    LIKE bapibatchstatus.
    DATA: lt_bapi_ret        LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
          CALL FUNCTION 'BAPI_BATCH_GET_DETAIL'
            EXPORTING
              material        = i_entamiot-matnr
              batch           = i_entamiot-charg
              plant           = i_entamiot-werkss
            IMPORTING
              batchattributes = gv_batchattributes
              batchstatus     = batchstatus
            TABLES
              return          = lt_bapi_ret.
    Thanks & regards
    Sreenivasulu P

  • How can I create a new label using Pages and Avery Labels products?

    How can I create a new label using Avery LAbels and PAges on an imac?

    Contacts prints to Avery labels.
    Otherwise just open the appropriate Word template from Avery's website, in Pages.
    Peter

  • Using Third Party APIs with Tomcat and Axis

    I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
    Thanks in advance

    If you're using Tomcat, JARs in the /common/lib directory are available to all applications deployed on that instance of Tomcat.
    I prefer putting them in the WEB-INF/lib of my web app, even if that means duplication. That way my app doesn't depend on having the server set up a certain way. I deploy them as a WAR file with everything they need enclosed within,no more and no less. They're completely portable to any servlet/J2EE engine that way.
    %

  • Using Actionscript to draw a link button

    I cannot seem to get a linkButton to be displayed using
    actionscript. I have the following:
    button_lnk.label = "SHOW ME";
    button_lnk.visible = true;
    button_lnk.x = a *10 + 20;
    button_lnk.styleName = "topMenu";
    //Alert.show (button_lnk.label);
    button_lnk.width = 100;
    button_lnk.height = 30;
    button_lnk.includeInLayout = true;
    button_lnk.id = "link123_"
    This code is called in a function, and I do know the function
    is getting called
    Any ideas?
    Thanks

    i did not understand what you are looking for.
    Is it on how to create buttons with a custom style (or controls in general)?
    Then have a look at http://www.drdobbs.com/jvm/a-javafx-20-custom-control/229400781
    If you really want to know how to use the path class to draw anything, just pop up a sample stage and start drawing. The JavaDoc for Path provides some good examples.
    you could as well just phrase your exact problem.

  • Line chart x-axis label overloaded with labels

    Hi,
    I have a Line chart filled by a large resultset (hundreds of rows). Each row contains a decimal value and a timestamp. The interval between timestamps is short so it is impossible to plot every single date/time in the x-axis label because there is no space.
    I would like to hide the the x-axis label for most rows and plot this label for each x rows. Something like this:
      18/12/2009 09:00            18/12/2009 10:00           18/12/2009 11:00            18/12/2009 12:00
            |---------------------------|---------------------------|---------------------------|
    In the previous x-axis example there are many timestamps between 18/12/2009 09:00 and 18/12/2009 10:00 but they are not plotted in the chart. It is possible to do something like this in MII charts?
    Thank you,
    Wilson Freitas
    Vetta Technologies

    Hi,
    I think Michael is right about the Ticks per label parameter. Looks like it is not working for me because the chart data binding is not behaving as expected.
    The chart rowset is composed by two fields: decimal and date time. The date time field is already converted to string. The rowset comes from a BLS transaction.
    I think this forum has no support for file upload so I will add links to the xMII workbench screenshots so you guys can see my chart/query configuration.
    This is the XACUTE Query used by the chart: http://www.vetta-group.com:8080/imgs/xacute_config.PNG
    This is the Line Chart configuration:
      - Chart area:http://www.vetta-group.com:8080/imgs/chart_area.PNG
      - Data mapping: http://www.vetta-group.com:8080/imgs/data_mapping.PNG
      - X-axis: http://www.vetta-group.com:8080/imgs/xaxis.PNG
      - Y-axis: http://www.vetta-group.com:8080/imgs/yaxis.PNG
      - Server scaling:http://www.vetta-group.com:8080/imgs/server_scaling.PNG
      - Data series:http://www.vetta-group.com:8080/imgs/data_series.PNG
    The chart row set is:
    <?xml version="1.0" encoding="UTF-8" ?>
    <Rowsets DateCreated="2010-02-02T20:50:08" EndDate="2010-02-02T20:50:07"
         StartDate="2010-02-02T19:50:07" Version="12.0.8 Build(24)">
         <Rowset>
              <Columns>
                   <Column Description="" MaxRange="1" MinRange="0" Name="TAG_TIMESTAMP"
                        SQLDataType="1" SourceColumn="TAG_TIMESTAMP" />
                   <Column Description="" MaxRange="1" MinRange="0" Name="TAG_VALUE"
                        SQLDataType="8" SourceColumn="TAG_VALUE" />
              </Columns>
              <Row>
                   <TAG_TIMESTAMP>01/12/2009 12:00:00</TAG_TIMESTAMP>
                   <TAG_VALUE>80.723414730584</TAG_VALUE>
              </Row>
              <Row>
                   <TAG_TIMESTAMP>01/12/2009 12:23:59</TAG_TIMESTAMP>
                   <TAG_VALUE>87.33149769706</TAG_VALUE>
              </Row>
              <Row>
                   <TAG_TIMESTAMP>02/12/2009 12:47:59</TAG_TIMESTAMP>
                   <TAG_VALUE>86.966843701221</TAG_VALUE>
              </Row>
              <Row>
                   <TAG_TIMESTAMP>02/12/2009 01:11:59</TAG_TIMESTAMP>
                   <TAG_VALUE>83.989991258174</TAG_VALUE>
              </Row>
         </Rowset>
    </Rowsets>
    When I run the chart I get this result: http://www.vetta-group.com:8080/imgs/chart1.PNG
    As you can see the chart has no X-Axis labels ans I need to add the date/time to the X-axis. If I add the field to "X-Axis label columns" the field values are ploted but the parameter "Ticks per label" is ignored and hundreds of labels are ploted together and is impossible to read them. I think the "Ticks per label" parameter only works for fields added to Labels columns (in data mapping). The problem I am facing is: when I add the date field (http://www.vetta-group.com:8080/imgs/data_mapping2.PNG) to Label columns I get an empty chart like this: http://www.vetta-group.com:8080/imgs/chart2.PNG
    What am I doing wrong?
    Thank you

  • Creating X/Y chart with X-Axis labels in between

    Hello all.
    I would like to create a Numbers 09 scatter/XY chart with the X-Axis labels between the gridlines instead of on them.   How can I do this with a line chart also?  Or, does thids format require a Combination chart?  If so, how can what I'm trying to create be made?

    I'll give you the basic steps. I might miss one or two along the way.  The basic steps are to create the chart, remove all the unecessary parts of the chart and set the fill color to none, create & format the table, slide the table under the chart, align the two, then lock them.
    Create a chart from your data. I said the chart above was a line chart but it was actually a scatter chart.
    I'd recommend making up a few "special" data points (overwriting a few points in your actual data for the time being) that you can use to align the table and chart.  In the chart above, I used something like (1.5, 0.1) and (30.5, 0.9), two points that should align exactly with the X & Y gridlines if the chart and table are properly aligned.
    Set the min and max for both axes.
    Size and place the chart where you want it
    Set the fill color to none
    Remove the value labels, gridlines, axes, etc.
    Create a plain table with the necessary number of columns and rows. The one above has 32 columns and 7 rows.
    Put the value labels in the table. I vertically centered the Y axis labels in the cells using the icon on the toolbar. I didn't horizontally center the X axis labels but maybe I should have.
    Make the table borders the color & thickness you want.  At this point, the X&Y axis labels will also have borders.
    Turn on Border Selection in the Table menu
    Select the borders you want to remove and change them to no line. You click on a border to select the entire thing then click again to select a segment. You can command-click to select multiple border segments. Be careful you don't miss when clicking or your entire selection will disappear. I recommend selecting & changing a few at a time
    Select the table and send it to the back using Arrange/Send to Back.
    Slide the table under the chart.
    With the entire table selected so that it has the little squares at the corners and sides, drag on the squares to get the table about the right size. Hold down Command when dragging to turn off snaps. Try it without Command and you'll see what I mean.
    Use the Table Inspector to fine-tune the row & column sizes so the table "gridlines" match the chart. You are trying to line up the gridlines with your two "special" data points. You might want to adjust the size of the chart some too.
    You can move the table around by dragging to get it close to where it should be. You can select the chart and use the arrow keys to move it pixel-by-pixel.
    You'll have to repeat the steps above until everything is aligned. Then you can get rid of those "special" data points.
    When it all looks good, lock the table and chart so nothing gets changed or moved accidentally.
    That was it off the top of my head. It comes out to alot of steps but once you've done stuff like this a few times it gets easy.

  • OBIEE 10g Drill Down Chart From Axis Label

    Hello All
    Does any one know if OBIEE 10g can drill down values in a chart by clicking the axis labels of the charts.
    In other words, if there was a bar chart with two bars, one for May and one for June, could a user click on the label 'May' or 'June' to drill down in the chart or can OBIEE only drill charts by clicking on the actual bar in the chart?
    Thanks!

    Hi,
    In 11g chart navigations have changed.They are now moved to the criteria level and are therefore not available in results view.In your case, navigate to the criteria ->interaction tab and add the target as action link.
    Refer-
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/navigation-between-charts-obiee-11g-4086065
    Hope this helped/ answered
    Regards
    MuRam

  • Third Party API with Tomcat and Axis

    I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
    Thanks in advance

    what kind of third party API are using ?

  • About jdbc and axis

    hello..!
    I want to learn webservices using java and MySql. can anybody tell me how can I set up jdbc connection in my w/s? I am using tomcat and axis.
    Thank you.
    .Mohit

    Axis and JDBC aren't really related technologies. Learn how to write a JDBC program. Learn how to write an Axis program. Er... that's it.

  • Using graph and chart

    hello,
    i want to use graph and chart work in my application.please tell me any links,where i have to search for FREE sourse.
    regards,
    j.mouli

    I am developing a free chart library called JFreeChart:
    http://www.jrefinery.com/jfreechart/index.html
    On the JFreeChart web page you will find links to some of the other free chart libraries also. Evaluate a few, and use whichever works best for you.
    Regards,
    Dave Gilbert.

  • HT1541 im using ipad2 and recently when i go to App store - top chart it gives a massage "Cannot Connect ti App Store" can anyone help please

    im using ipad2 and recently when i go to App store - top chart it gives a massage "Cannot Connect ti App Store" can anyone help please

    FYI - I just did a full wipe out and set up as new device, and the problem got solved.... But obviously it was a pain in the butt to download all the purchased apps back... This seems to be the only way to go about it... :(

Maybe you are looking for

  • CSS IE fine not Firefox,safari, etc Please help

    Hi, I am new and learning. I build a website and online the CSS works fine with IE (windows), but Firefox( windows,mac) and Safari (mac) are  not using the css.  I did run the browser compatibility check in Dreamweaver and says it's ok, not issues. 

  • Getting error in Bex

    Hi, I am getting the following error while doing any changes in a workbook in Bex analyzer: An error occured in the communication with BW server. Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION Symtex error in program CL_RSR_RRKO_PARTITIO

  • Count the number of visitor, display on welcome page, limit only 1 for next

    Hi everyone: 1. This is my first problem I m currently develop a web server, using tomcat, as a web container. i have use strut by refer to Jakarta Struts for Dummies. I have done a user registration, login verify from database MySQL. My project is a

  • Year shift in Fiscal Year

    Hi Anyone can help me regarding the above issue. When we will give 1, or -1 Thnaks in advance. Rajani

  • Multiple Attachement in Apex Mail

    Hi, Can we add more than one attachment in a mail ? , I tried using APEX_MAIL.ADD_ATTACHMENT, In this only 1 attachment i am able to add. I have a requirement to attach more than one, Please suggest me how to add more than one attachment. I am using