Search found 1186 matches

by Marc
Thu Sep 14, 2023 10:42 am
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 49230

Re: Unable find mouse click event on rectangle

Hello, Using TeeChart's own mouse events, here ES6 coded, you can try: import { Chart, Line, Format, Rectangle } from '../../src/teechart.js' drawChart(); function drawChart(){ const msecsInADay = 86400000; //24*60*60*1000 const now = new Date(); const data = []; for (let t = 0; t < 10; t++) { const...
by Marc
Mon Aug 28, 2023 11:45 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 25778

Re: How to set the X with category data?

Hello, Not sure, I thought I had understood correctly. That the goal is to line up the charts (?). The principle is the same in this case. To modify chart settings to obtain the required result. ie. AlignedCharts.jpg Very unrefined code to achieve these charts is included here: Line line1; Line line...
by Marc
Mon Aug 28, 2023 9:53 am
Forum: .NET
Topic: Chart Options Help Button
Replies: 2
Views: 10700

Re: Chart Options Help Button

Hello Kris, The default option is to include a file called "TeeChartNET4.chm" in the program's executable directory. That's what TeeChart will look for if nothing else has been directed. There are some downloadable chm files here (library reference and tutorials) that can be renamed to TeeChartNET4....
by Marc
Thu Aug 24, 2023 10:07 am
Forum: .NET
Topic: ColorBand Tool dragging
Replies: 1
Views: 10300

Re: ColorBand Tool dragging

Hello Sean, This code will do it: //disable zoom somewhere in your code: tChart1.Zoom.Direction = ZoomDirections.None; ...... // .......... //declare bool mouseDown = false; Point startPoint; double startValue; private void tChart1_MouseDown(object sender, MouseEventArgs e) { //check the mousedown i...
by Marc
Wed Aug 23, 2023 2:42 pm
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 25778

Re: How to set the X with category data?

Question 2. Similar to the link I sent you in an earlier email you would place the charts one above the other, use the same SetMinMax axis settings and set AxisLabels Visible false for the top chart. Best to fix left and right margins for both charts. What particular problems are you encountering? R...
by Marc
Wed Aug 23, 2023 2:38 pm
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 25778

Re: How to set the X with category data?

Hello,

Question 1.

I suggest that either you make the labels multiline (can use \n char) or put the labels angle to 90º.

We will look at ways to better plot default labels for contiguous series.

Regards,
Marc Meumann
by Marc
Tue Aug 22, 2023 7:01 am
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 25778

Re: How to set the X with category data?

Hello, Not being sure about the definition of the deepclone or the UIForm dialogue form I used a Chart export and import and standard form. I noticed that the Axis Label Item collection didn't copy properly so I added the copy manually. I put some code in OnAfterDraw and it all seems to work ok: pri...
by Marc
Mon Aug 21, 2023 4:34 pm
Forum: .NET
Topic: How to adjust table styles adaptively?
Replies: 1
Views: 10491

Re: How to adjust table styles adaptively?

Hello, Re. 2) I want the table to have grid lines Open the Chart Editor after adding the tool go to the tool in the toolslist and select: - Rows to edit the horizontal Pen - Columns to edit the vertical Pen (display the grid lines) Re. 3) Data crowding together want to scroll bar The table can only ...
by Marc
Mon Aug 21, 2023 4:24 pm
Forum: .NET
Topic: How to set the X with category data?
Replies: 19
Views: 25778

Re: How to set the X with category data?

Hello, Re. Problem 1. 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? How are you adding the data labels? What code. Axis labels normally automatically separate when added, some circum...
by Marc
Thu Aug 17, 2023 11:00 am
Forum: VCL
Topic: How to Draw Lines
Replies: 1
Views: 10200

Re: How to Draw Lines

Hello, This example code would plot a line from the Chart's 0,0 location to 5,5: procedure TForm4.Chart1AfterDraw(Sender: TObject); var x0,y0,x1,y1 : Integer; begin if Series1.Count>5 then Begin x0 := Chart1.Axes.Bottom.CalcXPosValue(0); y0 := Chart1.Axes.Left.CalcYPosValue(0); x1 := Chart1.Axes.Bot...
by Marc
Mon Aug 14, 2023 11:43 am
Forum: VCL
Topic: Displaying charts on TeePreviewPanel
Replies: 7
Views: 14064

Re: Displaying charts on TeePreviewPanel

Hello Metek,

I'm checking what repaint method can force the render but haven't found one yet other than CopyToClipboard, which works but, as the name implies, leaves a chart on the clipboard.

ie.
Charts.CopyToClipboardBitmap;

Regards,
Marc Meumann
by Marc
Fri Aug 11, 2023 11:08 am
Forum: VCL
Topic: Installing from source: TVisualBlock undefined
Replies: 4
Views: 12716

Re: Installing from source: TVisualBlock undefined

Hello,

We are checking the source-control related to TeeMaker and will make the fix available, Apologies for the inconvenience.

Regards,
Marc Meumann
by Marc
Thu Aug 03, 2023 8:53 am
Forum: ActiveX
Topic: When a data point is expected to appear in the chart ?
Replies: 3
Views: 26685

Re: When a data point is expected to appear in the chart ?

I tried this code (TeeChart AX 2023 and VB6: added a Pojnt Series to Chart. No other changes. Private Sub Command1_Click() TChart1.AutoRepaint = False TChart1.Series(0).AddXY 10, 10, "", clTeeColor TChart1.AutoRepaint = True TChart1.Repaint End Sub vbpoint.jpg It painted ok. Maybe worth checking wit...
by Marc
Wed Aug 02, 2023 12:01 pm
Forum: ActiveX
Topic: When a data point is expected to appear in the chart ?
Replies: 3
Views: 26685

Re: When a data point is expected to appear in the chart ?

Hello Angelo,

With one point in the chart you typically see the axes with just one gridline running into the chart. What do you see?

You may not see the point if the Pointer visible isn't true (for a LineSeries). What type of Series are you using?

Regards,
Marc Meumann
by Marc
Wed Aug 02, 2023 11:56 am
Forum: ActiveX
Topic: What's wrong with CSeries?
Replies: 1
Views: 10663

Re: What's wrong with CSeries?

Hello, We'll need the context of a test project to see what's happening. If I test it in one of the MFC projects included with TeeChart, "Dragging Points", then this syntax works fine: int myColor = RGB(255,255,0); CSeries mySeries = m_ctrlChart.Series(1); mySeries.SetColor(myColor); Regards, Marc M...