Jump to content
Software FX Community

Point Markers in Gantt Charts


User (Legacy)

Recommended Posts

I have a Gantt Chart and I need to plot Point markers in the activity lines.

To draw the Gantt Chart we only have to set the IniValue, initial date, and

the Value, which is the last date for the activity. The problem is that I

need to plot point markers in the activity line. When I turn on PointLabels

on the last point is shown.

How can I fill the other points of my series so that I can see the point

markers

Thanks in advance

post-2106-13922365950792_thumb.png

post-2106-13922377139848_thumb.png

Link to comment
Share on other sites

By PointLabels I mean the property PointLabels to turn on the Tag associated

with a Point. I have used the the code below to setup the Chart and the

Point configuration:

oChart.Gallery = SoftwareFX.ChartFX.Gallery.Gantt

oChart.Titles(0).Text = "Timeline Arbitragem"

oChart.Titles(0).Gap = 10

oChart.Titles(0).Font = New System.Drawing.Font("Arial", 9,

System.Drawing.FontStyle.Regular)

oChart.Font = New System.Drawing.Font("Arial", 6,

System.Drawing.FontStyle.Regular)

oChart.PointLabelMask = "%L"

oChart.BackColor = Color.White

oChart.Border = False

oChart.TopGap = 0

oChart.LeftGap = 0

oChart.RightGap = 0

oChart.BottomGap = 0

oChart.AxisY.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.Date

oChart.AxisY.LabelsFormat.CustomFormat = "yyyy-MM"

oChart.AxisY.Visible = True

oChart.AxisY.Min = aDateMin.ToOADate

oChart.AxisY.Max = aDateMax.ToOADate

oChart.AxisY.Gridlines = True

oChart.AxisY.Line.Color = Color.LightGray

oChart.AxisY.Grid.Color = Color.LightGray

oChart.AxisY.Grid.Style = Drawing2D.DashStyle.Dash

oChart.AxisY.Staggered = False

oChart.AxisY.LabelAngle = 45

oChart.AxisX.Gridlines = True

oChart.AxisY.Line.Color = Color.LightGray

oChart.AxisX.Grid.Color = Color.LightGray

oChart.AxisX.Grid.Style = Drawing2D.DashStyle.Dash

oChart.Scrollable = False

'Filling the oChart with random data

oChart.OpenData(SoftwareFX.ChartFX.COD.Values, 1, COD.Unknown)

oChart.OpenData(SoftwareFX.ChartFX.COD.IniValues, 1, COD.Unknown)

Dim series As SoftwareFX.ChartFX.Internet.Server.SeriesAttributes

series = oChart.Series(0)

series.PointLabels = True

series.PointLabelAngle = 45

series.PointLabelAlign = LabelAlign.Top

The following code sets the chart points:

oChart.IniValue(0, nPoint) = anIniDate.ToOADate

oChart.Value(0, nPoint) = aFinalDate.ToOADate

oChart.Legend(nPoint) = PointName

oChart.Point(0, nPoint).Color = Color.Black

oChart.Point(0, nPoint).Tag = PointDescription

This works OK, the Chart appears OK and the Text associated with the Tag

property appears but only in <aFinalDate>, whose value I set to

oChart.Value, as you can see in the code.

The problem is that in the range that starts with <anIniData> and ends in

<aFinalDate> I have a lot of important events and I would like to show them

in the activity line, as tick marks, and I don't khnow how to do it !!!!!!!

I have looked in all the documentation and didn't find a way th show these

points in a Gantt Chart.

Please Help me.

Thanks

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:HS%23SJRdbEHA.3152@webserver3.softwarefx.com...

> Do you mean Point Labels (text) ?

>

> If so, you may need to use the LabelAlign property to align your labels so

> that they remain inside of your bars and are not overlapped by other

> segments.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

I sedn you the attachmente of with my Chart. I hope this can help

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:JJB$vWmbEHA.3152@webserver3.softwarefx.com...

> I'm sorry, I don't understand the problem.

>

> Can you please attach a screenshot and annotate what you would like to

have.

>

> --

> FP

> Software FX

>

>

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

There is definitely some kind of communication problem here.

1st post:

"I have a Gantt Chart and I need to plot Point markers in the activity

lines."

2nd post:

"By PointLabels I mean the property PointLabels to turn on the Tag

associated

with a Point. "

3rd post:

"I would like to plot markers over the lines to highlight important events"

Which one of these is what you want ?

By Point Labels I understand: String labels, a text on top of the bars (or

beside them).

By Point Markers I understand: Markers such as a circle, square, triangle,

etc.

I think I already explained how to align the Point Labels.

For putting markers on top of this you will need to create a combination

chart, a Bar chart combined with one or more scatter charts (1 for each type

of marker you want to display) as follows:

chart1.Gallery = GANTT

chart1.Series(0).Gallery = GANTT

chart1.Series(1).Gallery = SCATTER

chart1.Series(2).Gallery = SCATTER

...

Alternatively, you can use annotation object to create these markers.

--

FP

Software FX

timeline.bmp

timeline.bmp

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...