c# - Remove marks on X-Axis -
i use wpf toolkit draw chart. bind list<keyvaluepair<string,int>> chart datacontext - result chart lineseries. on x-axis there marks (what mean - small lines on axis).
<chartingtoolkit:lineseries dependentvaluepath="value" independentvaluepath="key" itemssource="{binding}" datacontext="{binding}" margin="5.5,0,0,3"/> when specify x-axis
<chartingtoolkit:chart.axes> <chartingtoolkit:linearaxis orientation="x"> <chartingtoolkit:linearaxis.majortickmarkstyle> <style targettype="line"> <setter property="stroke" value="#bdb3ce" /> <setter property="strokethickness" value="0" /> <setter property="x1" value="-4" /> <setter property="x2" value="4" /> </style> </chartingtoolkit:linearaxis.majortickmarkstyle> </chartingtoolkit:linearaxis> </chartingtoolkit:chart.axes> it doesn't help, marks still on axis.
how remove marks?
i found solution on msdn forum.
i need specify x-axis <chartingtoolkit:lineseries.independentaxis> , add style axis :
<chartingtoolkit:categoryaxis orientation="x" majortickmarkstyle="{staticresource chartmajortickmarkstyle}"/> where chartmajortickmarkstyle next :
<style x:key ="chartmajortickmarkstyle" targettype="line"> <setter property="visibility" value="collapsed" /> </style> note : set style categoryaxis - don't know why when set style linearaxis exception problems binding. work lineseries, supposed set style linearaxis but...
Comments
Post a Comment