C# Winchart configuration, adding more lines -
I have some problems with my C # chart.
I want to make a winning chart. / P>
I want to create this chart:
I currently have this:
WinChart Chartresize [0]. Axis Title = "$ USD"; WinChart.ChartAreas [0] .AxisY.Minimum = -1; WinChart.ChartAreas [0] .AxisY.Maximum = 1; WinChart.ChartAreas [0] .AxisX.Title = "Tourneys"; WinChart.ChartAreas [0] .AxisX.Minimum = 0; WinChart.ChartAreas [0] .AxisX.IsStartedFromZero = true; WinChart.Series [0] .Points.Add (0); WinChart.Series [0] .Points.Add (0.10); WinChart.Series [0] .Points.Add (0.20); WinChart.Series [0] .Points.Add (0.30); WinChart.Series [0] .Points.Add (-0.50); WinChart.Series [0] .Points.Add (-0.60); WinChart.Series [0] .Points.Add (-0.70);
How can I start this coordinate at 0,0 and how do I create a middle line which is $ 0?
Documentation link:
I'm thinking of something Winchart would probably get from the chart Is:
public class Winchart: chart {}
and that charts are identical with a chart erected object and series
I'll do something like this:
WinChart.ChartAreas [0] .AxisY.Title = "$ USD"; WinChart.ChartAreas [0] .AxisY.Minimum = -1; WinChart.ChartAreas [0] .AxisY.Maximum = 1; WinChart.ChartAreas [0] .AxisY.Interval = 0.2; // adjust the y axis scale WinChart.ChartAreas [0] .AxisX.Title = "Tourneys"; WinChart.ChartAreas [0] .AxisX.Minimum = 0; Chain series = new series (); Series.Points.Add (0,0); ... Chain. Point Add (5, 1.05); WinChart.Series.Add (series); // Repeat the last five rows to add the second line to the graph
Comments
Post a Comment