Ask for help with chart subAxes

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Wzt
Newbie
Newbie
Posts: 3
Joined: Fri Jul 12, 2019 12:00 am

Ask for help with chart subAxes

Post by Wzt » Fri Sep 15, 2023 10:04 am

hello.

I want to show the x-axis of a chart as a datetime.
I want to show the x-axis in hh:mm format, and I want to show the yy-MM-dd format through subAxes.

I want the subAxes to only appear when the date changes.

For example, I want to show only two dates: 23-09-14 and 23-09-15.

And when the date changes, I want it to be displayed at 00:00.

If you have a good way to do this, please help me.
Attachments
111.png
111.png (36.79 KiB) Viewed 19837 times

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Ask for help with chart subAxes

Post by Pep » Mon Sep 18, 2023 7:59 am

Hello,
looking at all your questions, first of all I'd suggest that you take a look at the NETDemo example that is included into the TeeChart for NET installation and that also can be found on our github account here
where searching for ""datetime" or "custom axes" you will find some good example that will guide you to set datetime on axis, format datetime latebels and create custom axes.
You can also make use of the OnGetAxisLabel event in order to customize other axis labels requirements.

Please, do not hesitate to contact us in the case you need anything else.

Wzt
Newbie
Newbie
Posts: 3
Joined: Fri Jul 12, 2019 12:00 am

Re: Ask for help with chart subAxes

Post by Wzt » Wed Sep 20, 2023 12:40 am

Thanks for the reply.
I've searched all the sources, but I can't find anything about OnGetAxisLabel.

Can you please give me a more precise answer so that I can check the project?

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Ask for help with chart subAxes

Post by Pep » Wed Sep 20, 2023 5:26 am

Hello,
you can find a good example showing the use of the GetAxisLabel event at the NETDemo, inside All Features -> Axes -> Labels -> Using GetAxisLabel.
netdemoimage.png
netdemoimage.png (175.21 KiB) Viewed 19561 times

Wzt
Newbie
Newbie
Posts: 3
Joined: Fri Jul 12, 2019 12:00 am

Re: Ask for help with chart subAxes

Post by Wzt » Wed Sep 20, 2023 11:52 pm

Thank you very much.
However, I didn't see the results I was hoping for.

I am now considering upgrading the version.
I'm also considering purchasing the support pack, so I'll be back soon.

Post Reply