charts - WPF Charting toolkit change axis interval labels programatically -
i'd programatically change interval of labels on x axis of line chart. thing i've found how in xaml file: https://stackoverflow.com/a/8944925/2302510 , works fine. can hours/days/months etc. need change according interval i'm displaying. user can choose display 1 week, 1 month, 1 year or other given interval , when leaving default overcrowds x axis dates makes quite confusing. advice.
you can assign name axis , call code-behind.
xaml:
<chartingtoolkit:datetimeaxis x:name="xaxis" orientation="x" intervaltype ="hours" interval="1">
c#
xaxis.intervaltype = datetimeintervaltype.days; // month, hours xaxis.interval = 1
Comments
Post a Comment