Search found 41 matches

by coldwind
Mon Aug 28, 2023 1:28 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

Hello, you do not understand what I mean, the last example diagram, the four diagrams are separate diagrams, but the X-axis is only the last diagram, and the other three diagrams share the last X-axis, their points are the same vertically
by coldwind
Mon Aug 28, 2023 1:28 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

Hello, you do not understand what I mean, the last example diagram, the four diagrams are separate diagrams, but the X-axis is only the last diagram, and the other three diagrams share the last X-axis, their points are the same vertically
by coldwind
Tue Aug 22, 2023 12:44 pm
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

Average Chart and RawData ,the X-axis is the same and I want to share an X-axis
share an X-axis.png
share an X-axis.png (8.41 KiB) Viewed 13911 times


The following is an example of four graphs sharing an X-axis,I expect the same for my two drawings
example.png
example.png (102.78 KiB) Viewed 13789 times
by coldwind
Tue Aug 22, 2023 12:37 pm
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

Mean chart code as follow Average.png public class ProductInfo { public string Product { get; set; } public int Y { get; set; } } List<ProductInfo> rawList = new List<ProductInfo>() { new ProductInfo() { Product = "P1", Y = 10 }, new ProductInfo() { Product = "P2", Y = 18 } }; public RawDataAverage(...
by coldwind
Tue Aug 22, 2023 1:34 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

Drawing code is as follows public partial class Form1 : Form { public Form1() { InitializeComponent(); var line1 = new Line(tChart1.Chart); var line2 = new Line(tChart1.Chart); var product1 = "P1"; var product2 = "P2"; InitializeChart(line1, product1); InitializeChart(line2, product2); tChart1.Axes....
by coldwind
Sat Aug 19, 2023 3:10 am
Forum: .NET
Topic: How to adjust table styles adaptively?
Replies: 1
Views: 11272

How to adjust table styles adaptively?

Use the table in the TChart Tools, but the table has no grid lines and too much data will be crowded together, can I add a scroll bar up and down left and right? 1) TChart Tool : DataTable DataTableTool.png 2) I want the table to have grid lines need grid lines.png 3) Data crowding together want to ...
by coldwind
Thu Aug 17, 2023 1:13 pm
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

1. Problems with the first picture Chatrs.png 1) As shown in the image above, "Raw Data" Chart is drawn this way, but what about overlapping X-axis headings ? 2) What should I do if the X-axis title overflows? 3) Can the four x axes in the figure above share one? In the figure below, the points can...
by coldwind
Sat Jul 29, 2023 3:28 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

Re: How to set the X with category data?

The Chart I want to see is below
chart.png
chart.png (3.91 KiB) Viewed 14521 times
by coldwind
Thu Jul 27, 2023 7:22 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 27750

How to set the X with category data?

Hi when i use TeeChart draw the data , I hope when Class value is same then the Y will in vertical line like the picture hope-result.png But when I use string value, I got the error ERORR.png I hope place the X value with difference data like product ID ,the data like:P1,P2,P3, is string array then ...
by coldwind
Wed Feb 22, 2023 3:55 am
Forum: .NET
Topic: Can I setNull use other funcion ?
Replies: 4
Views: 3760

Re: Can I setNull use other funcion ?

Hello: Okay,the code is below public Form4() { InitializeComponent(); InitializeChart(); } class Student { public string Name { get; set; } public double? Value { get; set; } public Student(string name, double? value) { Name = name; Value = value; } } private void InitializeChart() { List<Student> l...
by coldwind
Thu Feb 16, 2023 11:33 am
Forum: .NET
Topic: Can I setNull use other funcion ?
Replies: 4
Views: 3760

Can I setNull use other funcion ?

Hello : i want to show data with null, TeeChart API ,I can find the setNull(int valueIndex) function could achieve my goal.Does TeeChart has other function to do this, so i don't need to collect the null value index Array to execute SetNull api function? Do I have to use SetNull function? list.Add(n...
by coldwind
Wed Feb 15, 2023 12:59 pm
Forum: .NET
Topic: dynamic property class for mutilple series
Replies: 15
Views: 7676

Re: dynamic property class for mutilple series

Hello:
Okay, i'm Beginners with C#. I can find the decimal type, maybe is useful. I hava use System.Text.Json in my project ,but the Decimal is well in Newtonsoft.Json too.
So can i use it to convert the int or double,or long to Decimal on YValue?
Thank you Your Help.
by coldwind
Wed Feb 15, 2023 12:25 pm
Forum: .NET
Topic: dynamic property class for mutilple series
Replies: 15
Views: 7676

Re: dynamic property class for mutilple series

Hello: Maybe you misunderstood. the code like: string response = "[{\"name\":\"aa\",\"age\":10,\"height\":170.1},{\"name\":\"bb\",\"age\":11,\"height\":175.3},{\"name\":\"cc\",\"age\":12,\"height\":173.5}]"; JArray jArray = JsonConvert.DeserializeObject<JArray>(response); var data = jArray.Select(el...
by coldwind
Wed Feb 15, 2023 11:17 am
Forum: .NET
Topic: dynamic property class for mutilple series
Replies: 15
Views: 7676

Re: dynamic property class for mutilple series

Hello:
The newest reply may be suitable with me,but next trouble is my data is not int,may be it's double,or float or long. I attempt to convert with object , I think TeeChart will use actual type,but it's not work.