set HorizontalDateTimeAxis style

May 27, 2009 at 12:18 PM

I am using the horizontaldatetimeaixs in my code and it works fine now.

by default, the date and time(hour) is showed in one line below the plotter with yellow background.  is that possiable i remove it?

 

Jun 25, 2009 at 12:09 PM

Hi,

I also need the solution for this.

set maximum height for bottom panel. This may solve your purpose temporarly.

BottomPanel.MaxHeight = 24;

But this is not proper solution.

Regards

Ravi.

Jun 29, 2009 at 2:12 PM

Hi Mikhail,

Can you give  the proper solution for this.

I checked  with different properties, But I didn't get.

Regards

Ravi.

Editor
Jul 6, 2009 at 1:37 PM

Hi!

 

What do you want to remove? A yellow background? Or this second line entirely?

If 1st, it is not easy do it because this bcakground and stuff around it are hardcoded into DateTimeLabelProvider. If you need, I can change it so it would be easy to change the view of this mayor labels from outside.

If 2nd, you should simply set axis.MayorLabelProvider to null, where axis is an axis for which you want to remove these mayor labels.

 

Best regards,

Mikhail.

Jul 7, 2009 at 7:54 AM

Hi,

Better if the second line is configurable just like legend.

I mean the second line should be removable, It should allow .Remove()

I know it is difficult to modify code, I think It is added to bottom panel, If we remove bottom panel, it is removing entire date time axis.

Setting MayorLabelProvider to null => but this is resetting the valeues of yellow line to January 001.   

Regards

Ravi 

Editor
Jul 7, 2009 at 9:36 AM

Hi, Ravi,

 

I was unable to reproduce bug you've described when setting axis.MayorLabelProvider to null causes resetting values of mayor label ticks, so please test the recent version of D3 - http://cid-eaf0a921258b5980.skydrive.live.com/self.aspx/.Public/D3/D3%20for%20VPV.zip

Mikhail.

Oct 8, 2013 at 9:02 AM
In latest version you can remove it by setting:
    dateAxis.ShowMayorLabels = false;
This will make that panel disappear.

Regards,
virious