Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! I use chart control windows form.

C#
private void Graphic(string valuta)
        {
            if (valuta == "EUR") { TST = EUR; } else if (valuta == "USD") { TST = USD; } else if (valuta == "RUB") { TST = RUB; } else { TST = RON; }

            Series set1 = new Series();

            for (int i = 0; i < days; i++)
            {
                set1.Points.AddY(TST[i]);
            }
            set1.BorderWidth = 2;
            set1.BorderDashStyle = ChartDashStyle.Solid;
            set1.ChartType = SeriesChartType.FastLine;
            set1.Color = Color.Green;
            GraphValutar.Series.Add(set1);
            GraphValutar.Invalidate();

        }

But values TST[i] are veru small, so the graph is obtained almost as a straight line.
How i can set step for output chart?
Posted

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