I am trying to use a Report item in Visual Studio 2012 to generate a chart based upon a populated dataset.
I have the following columns in my dataset table:
date
usersvalue
averagevalue
(among others, but these are what I want to show in the chart.)
I start with a blank report, set the data source, and add a generic line chart:
Note that this starts with two series (Series 1
and Series 2
) listed. I cannot find where these are specified in any property page I look at. I want my usersvalue
and my averagevalue
to be my data point series, with the date
value being the x axis. If I add these values to the series, however, it creates 4 lines on the chart, a Series 1 and Series 2 for both the usersvalue
and averagevalue
.
I don't consider myself a dummy. I can do this in Crystal Reports and Excel with no issues. I have been trying to figure out how to just show two lines with the info I want for hours now. Either I am missing something painfully obvious or this is the most unintuitive reports system I have ever had the misfortune of encountering.
Can someone tell me what I'm doing wrong?
Please try the following:
Create first a dataset named "dstest" and make a datatable with "dttest" and fill with data as in figure
add "values", "category groups" and "series group" as in figure. with "Values","X" and "Y"
add a windows form and drag/drop a report viewer in it. on form load write following codes:
finally try running and loading form. you form should show following result..