Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 364645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:27:31+00:00 2026-05-12T13:27:31+00:00

I am looking for a simple timeline chart, that I can display several events

  • 0

I am looking for a simple timeline chart, that I can display several events on over a varying timespan. I haven’t found any specific charts in Flex, has anybody created or used anything along these lines? I found this, Create a timeline from date to date in Flex/AS3, but that is only partially what I am looking for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:27:31+00:00Added an answer on May 12, 2026 at 1:27 pm

    I created a timeline using a mx:PlotChart. It looks like this:

    alt text

    I used a PlotChart with a DateTimeAxis across the bottom, and a LinearAxis up the side. I put this into a small little Flex app:

    <mx:Script>
        <![CDATA[
            import mx.charts.chartClasses.IAxis;
            import mx.charts.HitData;
            import mx.collections.ArrayCollection;
    
            [Bindable]
            public var max:Date;
    
            [Bindable]
            public var min:Date;
    
            [Bindable]
            private var notifAC:ArrayCollection;
    
            public function init():void
            {
                var notif1:Date = new Date(2009, 9, 8, 11, 30, 0, 0);
                var notif2:Date = new Date(2009, 9, 8, 12, 40, 0, 0);
                var notif3:Date = new Date(2009, 9, 8, 13, 45, 0, 0);
    
                notifAC = new ArrayCollection( [
                    { Date: notif1, Name: "Notif 1", Value: 1 },
                    { Date: notif2, Name: "Notif 2", Value: 1 },
                    { Date: notif3, Name: "Notif 3", Value: 1 } ]);
    
                //set min and max to outside most notifs
                min = new Date(notif1.getTime());
                max = new Date(notif3.getTime());
    
                //calculate the range between min and max
                var timelineRange:Number = max.getTime() - min.getTime();
    
                //if less than 2 hours switch to minutes
                if(timelineRange < 7200000)
                {
                    timelineDateAxis.dataUnits = "minutes";
                }
                //if greater than 2 days switch to days
                else if(timelineRange > 172800000)
                {
                    timelineDateAxis.dataUnits = "days";
                }
    
                //as long as the timeline has a range other than 0, add 10% to the min and max
                if(timelineRange != 0)
                {
                    min = new Date(min.getTime() - (timelineRange * .1));
                    max = new Date(max.getTime() + (timelineRange * .1));
                }
                //if the timeline does have a range of 0, add 1 minute to min and max
                else
                {
                    min = new Date(min.getTime() - 60000);
                    max = new Date(max.getTime() + 60000);
                }
                //set the min and max of the axis
                timelineDateAxis.minimum = min;
                timelineDateAxis.maximum = max;
            }
    
            public function timelineDataTips(e:HitData):String
            {
                return "<b>" + e.item.Name + "</b>\n" + dataTipsFormatter.format(e.item.Date);
            }
        ]]>
    </mx:Script>
    
    <mx:Style>
        .issueTimelineHolder
        {
            background-color:#787878;
        }
        .issueTimelineChart
        {
            padding-top:5px;
            padding-right:0;
            padding-bottom:0;
            padding-left:0;    
        }
        .timelineDateAxis
        {
            color:#ffffff;
        }
    
    </mx:Style>
    
    <mx:Stroke id="timelineDateAxisStroke" 
        color="#9B9B9B"
        weight="8" 
        alpha=".75"
        caps="none"
    />
    <mx:Stroke id="timelineTickStroke"
        color="#ffffff"
    />
    
    <mx:DateFormatter id="dataTipsFormatter" formatString="HH:NN:SS MM/DD/YYYY" />
    
     <mx:Canvas styleName="issueTimelineHolder" width="350" height="120">
         <mx:PlotChart id="issueTimelineChart" styleName="issueTimelineChart" width="100%" height="100%" 
            showDataTips="true" dataTipFunction="timelineDataTips" dataProvider="{notifAC}">
            <mx:backgroundElements>
                <mx:GridLines direction="horizontal" />
            </mx:backgroundElements>
    
            <mx:verticalAxis>
                <mx:LinearAxis id="timelineValueAxis" minimum="0" maximum="2" interval="1" />
            </mx:verticalAxis>
            <mx:verticalAxisRenderers>
                <mx:AxisRenderer axis="{timelineValueAxis}" showLabels="false" showLine="false"
                    tickPlacement="none" minorTickPlacement="none" />
            </mx:verticalAxisRenderers>
    
            <mx:horizontalAxis>
                <mx:DateTimeAxis id="timelineDateAxis" dataUnits="hours"
                    minimum="{min}" maximum="{max}" displayLocalTime="true"/>
            </mx:horizontalAxis>
            <mx:horizontalAxisRenderers>
                <mx:AxisRenderer axis="{timelineDateAxis}" styleName="timelineDateAxis" tickPlacement="outside">
                    <mx:axisStroke>{timelineDateAxisStroke}</mx:axisStroke>
                    <mx:tickStroke>{timelineTickStroke}</mx:tickStroke>
                </mx:AxisRenderer>
            </mx:horizontalAxisRenderers>
    
            <mx:series>
                <mx:PlotSeries xField="Date" yField="Value" />
            </mx:series>
        </mx:PlotChart>
    </mx:Canvas>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 239k
  • Answers 239k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer COM1 hold by printer's driver. This prevent opening port by… May 13, 2026 at 6:58 am
  • Editorial Team
    Editorial Team added an answer That seems like sensible behavior to me. As I see… May 13, 2026 at 6:58 am
  • Editorial Team
    Editorial Team added an answer Why not exploit tuples? colprint([(name, version[0].summary or '') for (name,… May 13, 2026 at 6:58 am

Related Questions

This is intended to be a lightweight generic solution, although the problem is currently
I have a web page with DIV s with a mouseover handler that is
I am trying to implement an algorithm in SQL (transact sql) and finding it
I am looking for a simple way to get a mime type where the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.