Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 Showing years labels in a wide date range

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
guyguy2003 Posted - 28 Apr 2008 : 23:08:50
Dear Sir/Madam

I have a problem with the Time Plot, that I hope you guys can help me solve. When the data I am showing is not very wide (say 10 years) It shows the years on the X axis with no problems. However in the applications I am writing the data range can be for 100 years, in which case there are no labels on the X Axis at all until I zoom in.
Is there a way to show labels with say 10 year gaps in case the date range is so wide?
I am adding the code I used to put the labels on the x axis:

xAxis = New TimeAxis(pTransform)

chartVu.AddChartObject(xAxis)

Dim xaxistitle As New AxisTitle(xAxis, axisTitleFont, "")
chartVu.AddChartObject(xaxistitle)

Dim xAxisLab As New TimeAxisLabels(xAxis)
xAxisLab.SetTextFont(theFont)

xAxisLab.SetAxisLabelsFormat(ChartObj.TIMEDATEFORMAT_Y)

chartVu.AddChartObject(xAxisLab)

Cheers

Guy Rotenberg
NRW Queensland, Australia
2   L A T E S T    R E P L I E S    (Newest First)
guyguy2003 Posted - 29 Apr 2008 : 21:45:46
Thanks guys!

your solution worked ok without the zoom (I got 00, 10, 20 for years - yy format) but I have noticed today that zooming out does change the type of labels you have - I had set yy format for years and when zooming out even when i have only 2 years data it shows as m/yyyy when zooming back out - is that what you are trying to fix?

Cheers

Guy
quinncurtis Posted - 29 Apr 2008 : 10:12:01
The auto-axis routines don't go out that far. We will have to add that range in a subsequent version. In the meantime you can just set a couple of axis properties, in bold.

xAxis = New TimeAxis(pTransform)
    xAxis.AxisMinorNthTick = 1
    xAxis.AxisMinorTicksPerMajor = 10
chartVu.AddChartObject(xAxis)


This will draw the time axis OK initially. But if you are zooming the axis, starting at this point, when you return to the original scale the axis will revert to its old form. We will have to fix the auto-scale routine internally before zooming will work across such a wide range. Contact support@quinn-curtis.com in couple of days for an updated DLL.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07