Page 1 of 1

Ask for help with chart subAxes

Posted: Fri Sep 15, 2023 10:04 am
by 15686644
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.

Re: Ask for help with chart subAxes

Posted: Mon Sep 18, 2023 7:59 am
by Pep
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.

Re: Ask for help with chart subAxes

Posted: Wed Sep 20, 2023 12:40 am
by 15686644
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?

Re: Ask for help with chart subAxes

Posted: Wed Sep 20, 2023 5:26 am
by Pep
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 14066 times

Re: Ask for help with chart subAxes

Posted: Wed Sep 20, 2023 11:52 pm
by 15686644
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.