Hi
Is it possible to customize the xamChart such that I can decide to make one line thicker or thinner?
i.e. I have a line chart that represents the amount of hair on my head vs the amount of hair on my friends head over time (From age 10 - 50). [Both bars go down :-( unfortunately].
How can I bold the vertical bar that represents the age 30 so that we can see exactly where we each were at that stage?
Thanks in advance,
Mike
Try using the MinorGridline for this...
<igCA:XamChart> <igCA:XamChart.Axes> <igCA:Axis AxisType="PrimaryY"> <igCA:Axis.MinorGridline> <igCA:Mark Unit="30" Stroke="Red" StrokeThickness="8" /> </igCA:Axis.MinorGridline> </igCA:Axis> </igCA:XamChart.Axes> </igCA:XamChart>
This works here, but not the exact solution. The "Unit" that is specified here is the "distance between two neighboring gridlines". So 0,30,60,90 ... are highlighted as per this code.
I have a situation to highlight only 30. Any solution?
Regards.
not quite. you can try using the Axis.Stripes collection, but axis stripes are meant to start from 0 and repeat at a given interval. the stripes you're describing occur at a defined minimum and do not repeat.
alternatively, you could try changing the ControlTemplate for the GridArea and putting in a Grid panel with varying background colors, but you would need to work out the positioning of stripes manually.
Thanks for the reply.
That's fine David. Not an issue.
Can i paint the background of the chart in between two grid lines? 0-20 in say red color and 40-50 in green color. Does xamChart support this?
Regards,
Sreeram.
unfortunately we don't have a solution for this right now. you can submit a feature request here: http://devcenter.infragistics.com/protected/requestfeature.aspx