How the control number of the minorticks between two tick marks of the axis?

Hi guys,.

I want to draw a number of minor ticks between two graduations of the vertical axis of the column chart based on user input.

ex: If user provides 2 there are two minor ticks between two tick marks on the axis.

Thanks in advance.

From what I can tell with sleeping with her, minorInterval value divides the vertical County to get the appropriate number of ticks between each interval.



In the example above, I have the interval to 10 and when I put the minorInterval at 2, then I get 5 ticks.  The first tick is the interval and then followed by 4 more ticks.

In your example, in order for me to see 2 ticks between intervals, then, I must assign the minorInterval 3.5 .

10 / 3.5 = 3 (2 ticks)

The forumla should be something like:

ViewableTicks = interval / (selected ticks + 1);

So, if I created a drop down list with 1-9 ticks (because 0 does not work if you are showing minor ticks), then when the option is changed, I calculate the value for minor ticks and set the component LinearAxis (countAxis) this new value.

protected function tickViewList_changeHandler(event:IndexChangeEvent):void
{
 var tickCount:int = tickViewList.selectedItem;
 var tickView:Number = countAxis.interval / (tickCount + 1);
 countAxis.minorInterval = tickView;
}

I created a blog post showing my example.

Post edited by: DeanLoganBH - add link post blog with photos of example

Tags: Flex

Similar Questions

  • How to send and receive text messages between two simulators?

    I launched the first Simulator by inputing D:\Program Files\Eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16 «»
    ents\simulator > 8300.bat/sms-source-port = 5000/sms-destination-port = 5001 "cmd

    tnen second Simulator by inputing E:\simulator>8300.bat/sms-source-port = 5001/sms-destination-port = 5000 in cmd

    but I can't not Simulator send and receive sms

    I assume that you have followed all of these steps?

    How - send SMS text messages between two BlackBerry Smartphone simulators

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801083/How_To _...

    Can you elaborate on what does not work?  You see errors?  When missing to?

  • How to calculate if an object is between two points

    Okay so I'm an RTS game, and ive got my participants

    displacement = false;

    CheckIt = false;

    startPt = {};

    Start = {};

    var i = 0;

    Fill._alpha = 0.1;

    onMouseDown = function() {}

    move = true;

    startPt.x = _xmouse;

    startPt.y = _ymouse;

    }

    onMouseUp = function() {}

    displacement = false;

    CheckIt = true;

    endPt.x = _xmouse;

    endPt.y = _ymouse;

    square_mc var = this.createEmptyMovieClip ("" + i, i ++);

    square_mc.beginFill (Fill);

    square_mc. MoveTo (startPt.x, startPt.y);

    square_mc. LineStyle (4, 00000000, 50);

    square_mc. LineTo (_root._xmouse, startPt.y);

    square_mc. LineTo (_root._xmouse, _root._ymouse);

    square_mc. LineTo (startPt.x, _root._ymouse);

    square_mc. LineTo (startPt.x, startPt.y);

    square_mc.endFill ();

    square_mc = null;

    }

    onEnterFrame = function() {}

    If (! dragging and checkit) {}

    scroll through the objects and see if they are with startPt, endPt

    CheckIt = false;

    }

    }

    And I want to check if my workers are between the two points (well 4) of:

    startPt.x

    startPt.y

    endPt.x

    endPt.y

    Ive tried this

    If (_root.workers [i] ._x > startPt.x & & _root.workers [i] ._y > startPt.y & & _root.workers [i] ._x > endPt.x & & _root.workers [i] ._y > endPt.y | _root.workers [i] ._x < startPt.x & & _root.workers [i] ._y < startPt.y & & _root.workers [i] ._x > endPt.x & & _root.workers [i] ._y > endPt.y) {}

    workers [i]. Selected = true;

    Workers [i] .gotoFunction ();

    }

    But I don't think that it's actually calculate if the worker [i] is between these points.

    so could someone please tell me how to calculate if my work is between these points, so I could do then selectable

    Thanks in advance

    I don't think you have this conditional is to check what you're saying, you want to check... try...

    If (_root.workers [i] ._x > startPt.x & _root.workers [i] ._y > startPt.y & _root.workers [i] ._x)< endpt.x="" &&="" _root.workers[i]._y=""><>

  • How can I set sharing of files between two iMacs?

    I want to set up the sharing of files between two iMacs in my office. Both work on iOS 10.11.3 and both are on the same WiFi network. I'll Finder, select the name of the other computer under 'sharing', then ' connect under... ". ", and then enter the name and password of the other computer. On a computer, I am told that it is connected with each other. However, the second computer always shows "the connection failed". I tried the 'Registered user' choice of "Guest" and "using Apple ID", but none will establish the connection. There must be something obvious that I'm missing, but I wasn't able to find out. I also tried to see if they would communicate with Bluetooth. Bluetooth screens on each computer show the the other is detectable by the proper name, but is never establish a connection.

    Connect to the same network.

    Enable sharing of files on both machines.

    Select the items to share on each machine and check the box in the dialog box information.

  • How to find a point of intersection between two paths in the hierarchy? (2 G 11)

    Hi all!

    I need your help to write a hierarchical query.

    Suppose that we have a table hierarchycal as

    WITH h AS (SELECT 0 AS rn, to_number(NULL) AS prn, 'root' AS point_name   FROM dual
    UNION SELECT 1 AS rn, 0 AS prn, 'a' AS point_name  FROM dual
    UNION SELECT 2 AS rn, 1 AS prn, 'b' AS point_name  FROM dual
    UNION SELECT 3 AS rn, 1 AS prn, 'c' AS point_name  FROM dual
    UNION SELECT 4 AS rn, 2 AS prn, 'd' AS point_name  FROM dual
    UNION SELECT 5 AS rn, 3 AS prn, 'e' AS point_name  FROM dual
    UNION SELECT 6 AS rn, 2 AS prn, 'f' AS point_name  FROM dual
    UNION SELECT 7 AS rn, 3 AS prn, 'g' AS point_name  FROM dual
    UNION SELECT 8 AS rn, 6 AS prn, 'h' AS point_name  FROM dual
    UNION SELECT 9 AS rn, 5 AS prn, 'i' AS point_name  FROM dual
    UNION SELECT 10 AS rn, 7 AS prn, 'j' AS point_name  FROM dual
    UNION SELECT 11 AS rn, 10 AS prn, 'k' AS point_name  FROM dual)
    SELECT h.* 
    FROM h 
    CONNECT BY PRIOR h.rn=h.prn
    START WITH h.prn IS NULL
    

    I chose a single line, with rn = 11 for example, as a "starting point." After that I need to select one or more rows in this table under certain conditions. Whether rn = 8 and 9, for example. By the same query, to the next step, for each point that I chose by condition, I need to calculate, how far is it to the "starting point".

    I think, I need to find a point of intersection of the path from the root to the selected point along the same path of the "starting point". By comparing this tip I'll can understand which of them is closer to the "start".

    The only thing that I have arrived, it's trying to compare the results of sys_connect_by_path...

    Hello

    This indicates to what extent each of the nodes 'interest' are from the node of "start":

    WITH connect_by_results AS

    (

    SELECT CONNECT_BY_ROOT rn: the NURSE

    CONNECT_BY_ROOT SUBSTR (point_name,

    1

    8

    ) AS node_type

    rn AS ancestor

    LEVEL AS lvl

    H

    START WITH point_name = 'start '.

    OR point_name LIKE '% interest '.

    Rn = prn PRIOR CONNECTION

    )

    SELECT i.rn

    , MIN (i.lvl + s.lvl) - 2 AS distance

    Connect_by_results I have

    JOIN connect_by_results s ON s.ancestor = i.ancestor

    WHERE s.node_type = 'start '.

    AND i.node_type = 'interest '.

    GROUP BY i.rn

    ORDER BY i.rn

    ;

    Exit: (from your sample data, where 11 is the starting node):

    DISTANCE OF RN

    ---- --------

    8        7

    9        5

    14 3

  • How to configure a direct cable connection between two computers in Windows 7

    Hello

    I'm trying to set up a connection by serial cable with serial cable RS232 DB9 female-female between 2 PCs, one with Windows 7 and Windows 8.
    For the initial check of the cable, I used a terminal program such as HyperTerminal, PuTTY, RealTerm. But none of the PC was able to read/write data from the port. I shorted her transmit and receive pins (2 & 3) at one end with a jumper (PIN stapler) for a loop to return the data to the Terminal. Terminal exits each letter typed twice, that is to say the cable and the COM port works correctly for two computers. But with 2 PCs connected, the Hyperterminal does not output nothing written of another PC Hyperterminal.
    Possible suspects: -.
    1. in the device-> PORTS (COM and LPT) Manager - there are 3 elements in both PC
    Communication Port (COM1), Communications Port (COM2), the Printer Port (LPT1).
    while I plug / unplug the cable at the PC, nothing changes in this section.
    2. the drivers for this type of cable to not installed.
    3. different OS installed on the PC.
    4 or I have to create a new connection , and then connect directly to another computer as mentioned in http://support.microsoft.com/kb/305621/en-us . But I didn't know how to do these steps in Windows 7/8.
    Any idea about this problem is appreciated.

    The problem is your trying to use both ports 'exit' to connect two computers / never going to work.

    VGA ports are for v's t. 'If' they are able to c.p.. otherwise, you will need to use a HDMI to the TV which is also an exit from the c.p.

    If you notice your computer and your monitor using a DVI port connection not a VGA.

    And no you can not use a DVI cable either :)

  • How can I move my cursor back between two monitors?

    I have two screens and I would use two separate software at the same time.  To do this, I need to know a quick way to move the cursor back between the two monitors.

    Thank you

    Doug AC

    The only way is to drag your cursor to the other monitor.

  • How do divide you a virtual machine between two data stores?

    We just installed a new SAN ICSI and created an ISCSI target on it. We have created a new data store on our server ESXi 4.0 and reminded our Iscsi target. Our virtual machines have two logical drives, for the system partition C: and E: for data. At present, all virtual machines are residing on the 1 data store, which is located on the local hard drives of the esxi server. How pass readers E: of the virtual machine to the SAN and let C: readers where they are?

    Hello

    Or if you don't have a Vmotion, you can use stand-alone Vcenter converter to migrate your VM on the same ESXi host. and during this process on the Advanced tab, you can divide your virtual disks in the desired data store. You can keep the C: drive as it is on the same data store and add new vmdk and select its data store that you want, and then can move E: or D: drive until the new vmdk.

    In this way, you can split your C: and other disks on different vmware disks on different data warehouses.

    Let me know if it helps.

    Kind regards

    Sumit

  • Calculate the number of days between two dates

    Hello

    Can someone help please change my formcalc script to calculate the number of working days between two date fields.  My script currently calculates the total number of days between two dates, including the weekends which must be excluded from the total.

    If

    (HasValue (Start_Date1) & HasValue (End_Date1)) then

    $

    = Date2Num (End_Date1, "YYYY-MM-DD" "en_IE") - Date2Num (Start_Date1, "YYYY-MM-DD" "en_IE") + 1

    on the other

    ""

    endif

    Any help will be most appreciated.

    Thank you.

    Check...

    (1) you said that you put the script on the event «days1» calculate My sample imitates the variable names used in the original message, "Start_Date1" and "End_Date1". If the names of variables for the start and end dates are different, you will need to modify the script to account for these names.

    (2) the Date2Num functions in the calculation of the "totalDays" use the date format "YYYY-MM-DD". If your date habits differ from "YYYY-MM-DD" FormCalc will complain.

    Steve

  • The way of writing to a wireless bridge between two different routers.1:broadband and dir 2:dlink 605 l

    I want to bridge.and wireless I can't do that... Please send me how to write to a wireless bridge between two different routers.

    1:broadband
    and
    2:Dlink dir 605 l,

    Hi Mohammed Ehsan Jourah,.

    Thanks for posting the request in the Microsoft community forums.
    I understand that you need to know how to make a wireless bridge between two different routers

    What version of the operating system is installed on the computer?

    To connect multiple computers, install a network adapter in each and run a network CAT5 cabling to connect each one to a hub (and thus the other.) The computer that will serve as a transition will have a standard network card for wired and a wireless network adapter that will connect to the wireless (WAP) access point or gateway on the second network.

    A network bridge is software or hardware that connects two networks or more so that they can communicate. You can create only a single bridge network on a computer, but a bridge can handle any number of network connections.

    You can try the steps at the bridge between two different routers wireless.
    a. determine the coverage area. When using two or more routers, the coverage area should be divided, and each router should be placed in a central location in each subdivision. If you add a wireless router to an existing network, this may mean moving the first router.
    b. decide which router is the main router. The main router is connected to the Internet, a LAN cable or other networks. It should be as close to the wired network connections or who has the best line of sight to another wireless network. In addition, the main router should be a high range router, allowing large tables of State and more users.
    c. buy a spare antenna, as the antennas that come with most routers do not have very good range. Quality omnidirectional antennas can push the range and signal strength of each of the routers, which, in turn, will reduce the cost by allowing routers less cover more space overall.
    d. deploy the primary router carefully. This router is the most important and requires most of the time of installation and options. Set the WEP (Protocol) encryption Service Set Identifier (SSID) and wireless, set up the Internet connection and test the router with some clients (computers). Once you get the main router deployed, deploy other routers should be easy.
    e. deploy the secondary routers, which must be configured to operate in "mode of transition." Secondary routers should be deployed around the perimeter of a large area or 'hot spots' where users placed - for example, will convene a bench Park or the table.

    Links:
    Create a network bridge:
    http://Windows.Microsoft.com/en-us/Windows7/create-a-network-bridge

    Add a connection to a network bridge:
    http://Windows.Microsoft.com/en-us/Windows7/add-a-connection-to-a-network-bridge

    Hope this information helps you. If you need to get help or information with decision-making wireless bridge between two different routers, I'll be happy to help you.

  • Increase the police the axis labels and plot little away from the card.

    Hello friends,

    I developed a JavaFx program in which I traced a barchart.
    I'm not able to increase the font of the axis labels and also I want to print some for chart axis labels so that the tick-mark labels, and axis labels would not cross.

    In this table, I have "BOLD" axis-lines only in the left side and down. I also want the axis lines "BOLD" upstairs and to the right. If there is any way or method that please suggest me.

    My program is given below: -.

    SerializableAttribute public class BarChartHorzFx extends Application
    {
    the final static string AUSTRIA = "Austria";
    the final static string BRAZIL = "Brazil";
    final FRANCE Shared As String = "France";
    final static string Britain = "Britain";
    the final static string USA = "USA";

    /**
    * Main method
    @param args
    */
    Public Shared Sub main (String [] args)
    {
    Launch (args);
    }

    /**
    * FX lettering from here.
    */
    @Override
    public void start (steps) throws exceptions
    {
    final NumberAxis xAxis = new NumberAxis (0, 120000, 20000);
    xAxis.setLabel ("Value");
    xAxis.setTickLabelRotation (90);
    xAxis.setTickLabelFont (do ("Arial", 12));

    last axis desabscisses yAxis = new CategoryAxis();
    yAxis.setLabel ("Country");
    yAxis.setTickLabelFont (do ("Arial", 12));

    final BarChart < number, String > barChart = new (BarChart < number, String >
    xAxis, yAxis);
    barChart.setTitle ("summary of country");

    XYChart.Series < number, String > firstSeries = new XYChart.Series < number, String > ();
    firstSeries.setName("2007");
    firstSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(25601.34, AUSTRIA));
    firstSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(20148.20, BRAZIL));
    firstSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(10000, FRANCE));
    firstSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(35804.15, BRITAIN));
    firstSeries.getData () .add (new XYChart.Data < number, String >(12000, USA));

    Second series...
    XYChart.Series < number, String > secondSeries = new XYChart.Series < number, String > ();
    secondSeries.setName("2008");
    secondSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(57401.85, AUSTRIA));
    secondSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(41941.19, BRAZIL));
    secondSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(45263.37, FRANCE));
    secondSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(117320.16, BRITAIN));
    secondSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(14845.27, USA));

    Third series...
    XYChart.Series < number, String > thirdSeries = new XYChart.Series < number, String > ();
    thirdSeries.setName("2009");
    thirdSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(45000.65, AUSTRIA));
    thirdSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(44835.76, BRAZIL));
    thirdSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(18722.18, FRANCE));
    thirdSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(17557.31, BRITAIN));
    thirdSeries.getData () .add ((in English only)
    new XYChart.Data < number, String >(92633.68, USA));

    Addition of serieses to barchart
    barChart.getData () .addAll (firstSeries, secondSeries, thirdSeries);

    Scene = new Scene (barChart);
    stage.setScene (scene);
    stage.setTitle ("Histogram");
    internship. Show();
    }
    }

    See tables to style with CSS documentation-online http://docs.oracle.com/javafx/2.0/charts/css-styles.htm#CIHGIAGE.

    Fonts and the location can be changed via the - fx - police-* css types and -- translate - fx * types (see http://docs.oracle.com/javafx/2.0/api/javafx/scene/doc-files/cssref.html).
    Code can be validated at the clearer in the forums if surrounded by markers of code between the brackets.

    Info of the axis can be looked up and changed via css as below (since the graphics to style with CSS documentation):

    .axis {
        -fx-font-size: 1.2em;
        -fx-text-fill: #462300;
        -fx-tick-label-fill: #914800;
        -fx-font-family: Tahoma;
        -fx-tick-length: 20;
        -fx-minor-tick-length: 10;
    }
    
  • sharing between two apple ID

    How can I share contacts and calendars between two Apple ID?  Also my wife and share our music iTunes between our IDs?

    See the following topics:

    http://www.Apple.com/icloud/family-sharing/

    Family shares - Apple Support

    Implement the family sharing - Apple Support

  • How to use the same control between two forms of Visual Basic 6?

    I have two forms and must share text between two controls forms such that I get a value in the text box in Form-A should update the same value in the text box in Form-B...

    Is this possible? If so, how can I apply it in my project?
    I tried to create a control array, but that did not help.

    Hello

    I suggest you to ask your question in the Visual Basic forum: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads

    Thank you.

  • How to control the spacing between the objects as they scale

    Hello community Muse,

    I am re-creating a report of InDesign in Muse and came across an issue where, when the browser width shrinks I graphic scale but they end up with huge gaps between them.  I'm eager to graphics to remain hidden under the other.  Can someone help me understand how to control this Muse?

    Thank you!

    Please see the link test here:

    Homepage

    Everything should work normally, as you'd expect. Just trying to help Muse idetifying objects, which should be pushed down: ensure that these objects don't overlap and combine them.

  • How to control the number of fields in the Advanced mode in &lt; af:query &gt;

    Hello

    How to control the number of fields in the Advanced mode in < af:query >?

    Say I have 20 fields in my table, and I created a view of criteria with 2 fields. This would work perfectly in basic mode. But in Advanced mode , the choice of fields is possible by clicking on the Add fields button. I didn't have the customer to search with all 20 fields. Only 10 fields must be listed in the Advanced Mode, even if there are 20 fields in my table.

    How can I control the list of fields in ADDFields button?

    Any ideas?



    KR

    You can uncheck the contestable ownership of attributes that you must not appear in the Advanced Mode (but they will not appear in the other modes too!) or by programming the value the same as those mentioned here.

    http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.html

    Also, you can hide the button AddFields as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/

Maybe you are looking for