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

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -