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.
Can you provide some more information about your scenario? I am not sure I have ever seen a scenario where string data is useful on a scatter chart axis.
Also, if we supported DateTime values on the Y axis would that satisfy your requirement? That would let you create a line chart, or as Max suggested a Point chart that accepts DateTime values on the Y and string data (like categories) on the X axis.
Devin
Thanks for the replies.
Max,
I was thinking about converting the "categories" to numerics, then formating the axis labels, but wasn't sure how to do it. The closest example I could find was the date converter/formatter.
I'll try a Point Chart and investigate this idea further.
Devin,
Maybe a small similar data set would help give you some context.
(Jan,HR,Fail),(Jan,Accounting,Fail),(Jan,Sales,Fail)
(Feb,HR,Fail),(Feb, Accounting,Pass),(Feb,Sales,Fail)
(Mar,HR,Fail),(Mar, Accounting,Pass),(Mar,Sales,Pass)
etc...
I built a prototype as a POC. Essentially a grid, with y axis (HR, Accounting,Sales), x axis (Jan, Feb, Mar, etc...) and each datagrid cell a color(green for pass, red for fail).
Of course it's not as pretty, functional, or elegant as Infragistics.
Gabe
Here's a small point chart example that you might be able to use: <my:XamChart Background="AliceBlue" x:Name="chart"> <my:XamChart.Series> <my:Series ChartType="Point"> <my:Series.DataPoints> <my:DataPoint Value="3" Label="Jan"/> <my:DataPoint Value="5" Label="Feb"/> <my:DataPoint Value="2" Label="Mar"/> <my:DataPoint Value="1" Label="Apr"/> </my:Series.DataPoints> </my:Series> </my:XamChart.Series> <my:XamChart.Axes> <my:Axis AxisType="PrimaryY"> <my:Axis.Label> <my:Label Format="Category:{0}"/> </my:Axis.Label> </my:Axis> </my:XamChart.Axes> </my:XamChart>
Is there a way to plot random point using point chart.
For example I want to plot a point at (2,5) and the next point at (5,8). The starting coordinate for x axis is 0 ending coordinate is 10. The y axis is also divided in a similar way.
Thanks,
Junaid
Not for a point chart. Point charts use a string X axis, which cannot be expressed as a true numeric range. You should look into the scatter series, where you can have both numeric axes.
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.
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>