Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello
How i make multi series in the same chart , if i make zoom it will zooming to all series in chart
like this image :
<img src='http://s12.postimg.org/ldwrh9bw9/Untitled.jpg' border='0' alt="Untitled" />



Note: not the same Y but the same X

Thank you for your help.
Posted
Comments
Ralf Meier 31-Jul-15 6:04am    
I think, you have different curve-data which should be displayed.
For each curve-dataset you should add an own series into the Chart. This could be done automated (dynamic) or fixed during DesignMode.
Now you need to assign your curve-data into the responsible series (by adding each point). Each curve-series could have it's own Color (and so on).

What have you created yourself until now ?
From where does your data come ?
Jerji Rani 31-Jul-15 8:37am    
Hello Mr.Meier,
Good day,

First of all , thank you for your reply.

What have you created yourself until now ?
I can draw one series in chart and see x and y correctly

From where does your data come ?
actually I read text file and put the values in data sours after that i read from data sours to chart.

waiting your kind reply.

Thank you.
Ralf Meier 31-Jul-15 8:40am    
I suggest that you improve your question with your code. I think that makes things easier ...
Could you simulate what I meant with "add more series to the Chart" ?

What is you issue ?
Jerji Rani 31-Jul-15 9:09am    
Dear Mr.Meier,
Good day,

I tried to add second series to my chart but i have 2 issue
the first one is when it drown it drown over series one if i can move it to down i can skip this issue
the second issue the first series and second one have the same Y but not the same x
the first series daynamic X (From dataset)
the second series also from dataset but the value should be between 0 and 1

thank you for your help
Ralf Meier 31-Jul-15 15:22pm    
I don't understand what you mean.
At first : we speak about the MS-Chart ?

Then : I added an explaination as solution.

1 solution

If you want to use different Y-Scale for your Series you only need to define different ChartAreas with different settings in it. You can create more than one ChartArea inside your Chart.
Inside the Chart-Series you can select, which ChartArea is to be used.

Inside the Chart-Series you have to possibilities to define the Points.
- you only give it a Y-Value and the X-Value is increased automaticly - I would not do it like this.
- you give a point a X- and a Y-Value at the same time. So you are able to work also with f(X)-Curves and ... you are the master of the steps inside the chart. I allways do it like that.

I hope, that helps.
If else ... feel free to contact me ... ;)
 
Share this answer
 
Comments
Jerji Rani 3-Aug-15 10:10am    
Thank you for your reply
I will check it and tell you if your solution is ok
thank you
Ralf Meier 3-Aug-15 14:21pm    
What about your progress ?
Something I could help with ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900