Hi,
I'm looking for a chart to display non numerical data points. Something simple like months on the y axis, categories on the x axis, and simple points to represent them.
DataSet might look like, (Feb, Cat1), (Jan, Cat3).
I was hoping to use the scatter plot. However, the axis didn't like non numeric data.
Thank you for your suggestions in advance.
if your points have XY coordinates, then you need a scatter series, not a line series. unfortunately these two series types cannot be combined in XamChart, so you would need to convert your lines to scatterline series, then add the scatter series on top.
or, you could use the new XamDataChart control, which does allow line series to be combined with scatterline series (you just need a 2nd x-axis).
I will try to look into scatterline. I am attaching the screenshot of the graph which I am trying to implement. I have the line chart which I plotted by reading the data from a collection. This line chart is used as a template. Now I want to plot random points on the graph. These points may or may not fall on the line chart.(Points may not coincide with the line). The first point could be at (2,5) and the next point could be at (4,7). In the screenshot I was able to plot two points but I could only reference the Y axis not both the X and the Y axis. The points are not random. When I plot a new point it appears immediately after the point previously plotted on the X axis. I need a solution to the problem.
Thanks,
Ju
There is a workaround, or rather a possible guideline for using Point chart with Line chart, that I have outlined in the previous post in the last paragraph. However, If you just want to draw a marker over one of the points in the line series, you can simply set a marker on one of the data points, like so: <igChart:Series ChartType="Line"> <igChart:Series.DataPoints> <igChart:DataPoint Value="3"/> <igChart:DataPoint Value="2"/> <igChart:DataPoint Value="5"> <igChart:DataPoint.Marker> <igChart:Marker Type="Circle" Format=" "/> </igChart:DataPoint.Marker> </igChart:DataPoint> <igChart:DataPoint Value="3"/> </igChart:Series.DataPoints> </igChart:Series>
I cannot use scatter chart as I am trying to plot these points on a line chart.
I have a line graph and now I want to plot a few points on these lines. I tried to use scatter chart but its not compatible with line charts. Is there a solution to this.
I'm not sure I understand. So you're combining a line series and point series? There may be several workarounds here, which may or may not work for you, since I can't see the big picture.
You can use ScatterLine series to display lines on a numeric scale. Then, you can use scatter series to display random disconnected points.
If you must use a series with a string X axis, then your options are very limited. You can still use a point series to display disconnected points if you pad the series with empty values. For example, if you have 10 values on the x axis, your point series can have something like null, null, 5, null ... etc to draw a point at (2,5). These don't have to be nulls, they could be zeroes, negatives, or empty values, whatever makes them not visible.
Hope this helps you.