scottvv Posted June 18, 2007 Report Share Posted June 18, 2007 How do i hide the lines in a line chart, but keep the markers? In other words, all i want is the markers, but not the lines. Is there a way to hide the lines, or can i accomplish what i want with another type of chart? Link to comment Share on other sites More sharing options...
Frank Posted June 19, 2007 Report Share Posted June 19, 2007 Then you don't want a line chart. You want a Scatter chart. Link to comment Share on other sites More sharing options...
scottvv Posted June 25, 2007 Author Report Share Posted June 25, 2007 I thought of that (using a scatter chart), but was under the assumption that in a scatter chart both axes are value axes, whereas i want the x axis to be categorical. Can a scatter chart have a categorical axis, for example with dates or locations? Link to comment Share on other sites More sharing options...
Frank Posted June 25, 2007 Report Share Posted June 25, 2007 Yes. Link to comment Share on other sites More sharing options...
scottvv Posted June 27, 2007 Author Report Share Posted June 27, 2007 I just read in the printed manual that came with the installation media that scatter plots (XY plots) do not have categorical axes. So i'm still trying to figure out how to plot just points, without lines connecting the points, that have a numerical Y value and a categorical (such as date) X value. Link to comment Share on other sites More sharing options...
scottvv Posted June 27, 2007 Author Report Share Posted June 27, 2007 I also just read in the ChartFX Resource Center, that : "However, in an XY or scatter, both axes are numerical. " So, can you please elaborate as to how i can create a chart that has data points with numerical Y axis values and categorical X axis values, but with no lines connecting the points (apparently i can't use Line chart, since there is no way to eliminate the line). Ultimately, i also want to have error bars plotted with the data points (which i guess is a scatter plot in the statistical extension). Link to comment Share on other sites More sharing options...
Frank Posted June 27, 2007 Report Share Posted June 27, 2007 Unless you pass X-Values. The X-Axis is going to be categorical. Dates are considered a continuous value and therefore are used for X-Values. If you are using databinding and you have a date column, use the DataSourceSettings.Fields to indicate that you want to use this field as labels (the default will be to use it as X-Values). You can use any field to be your X-Axis labels (string fields are automatically used as X-Axis labels). If you are passing data using the API, the X-Axis will remain categorical unless you pass X-Values to the chart. In other words, there is nothing you need to do to make the X-Axis categorical. The X-Axis is categorical by default. A line chart and a scatter chart are IDENTICAL when it comes to the use of the X and Y axes. If you are not convinced, simply create a new form, select Scatter as the gallery from the property grid and run the app. You will see the X-Axis is categorical. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.