Winforms Report Scatter plot with line

0 Answers 18 Views
Graph Report Viewer - WinForms
Top achievements
Rank 1
Song asked on 26 May 2021, 10:14 PM

Hello there,

I am using C# .net Winforms Report. 
I have a data set like this

{Code, $dollar}
{0, 100} {0.1 , 125}, {0.2, 127},
{1.2, 250},{1.4,210},
{5.2 , 300}

I tried to make a simplest scatter plot with every dots connect by line. I do not want the category group because if I do, then I will be missing  4, and 6 in x axis. it will have 0, 0.1, 0.2, 1.2, 1.4, 2.0, 2.3, and 5.2 only which is categorized.
I want x's range to be fixed from 0 to 6 with equal space.
scatter plot cannot have series group but line graph requires series group. 

I tried so many different ways but couldn't figure it out.
Can you show me some examples? 

Ivan Hristov
Telerik team
commented on 31 May 2021, 03:25 PM

Hi Song,

Seems that the Numerical Scale will be more suitable for presenting such kind of data. Changing the type of the scale is described in the article How to Change the Axis Scale, but basically you select the axis (in your case the X axis), expand the drop-down list with the value of the Scale property and select Numerical Scale from it. The Graph item will replace the current Category Scale with a new instance of Numerical Scale and will show an error message on the design surface, stating that the series' X property is not set. Go to your graph's  series and set the series' X property to =Fields.Code.

I suggest to use line series with visible markers for this scenario, because creating a Scatter series using the Graph Wizard sets the line visibility to false by default.

Here's how a sample graph built based on the current data would look like:

Hope this helps.

No answers yet. Maybe you can help?

Graph Report Viewer - WinForms
Asked by
Top achievements
Rank 1
Share this question