Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
XamDataChat StepLineSeries to show binded string property value on Y-Axis.
posted

Hello,

I have a xamdatachart that needs to show both Line Series (Numeric y-Axis and DateTime on X-axis) and StepLineSeries (Strings on Y-Axis and DateTime on X-axis).

Line series is fine, but with StepLineSeries I have some problems.

1.) Right now I am mapping string values to some numeric values like 0,1,2 ... etc. to plot it againts Datetime x-axis. Is this the only way or can I bind the string values directly to y axis keeping datetime x-axis as it is?
2.) If I use the numeric y axis, to support both series on the same chart (using above mentioned way), I am having trouble with y-axis labels. How to bind the y-axis label with the 'Label' property (string type) that I have in the model class the series is binded with the collection of?

PS: I know the Y2 axis as well and that too needs to be handled the same way Y1 axis will be.

Please answer ASAP. Thanks in advance.