Search found 30 matches

by aaron
Mon Oct 02, 2023 4:09 am
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 72702

Re: Unable find mouse click event on rectangle

In my case, it was working with event.clientX isntead of event.x :D :D :D :D
by aaron
Tue Sep 26, 2023 1:56 pm
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 72702

Re: Unable find mouse click event on rectangle

Resize was working well, but I couldn't get the right coordinates for mousedown. And its working for mousemove
by aaron
Thu Sep 21, 2023 10:41 am
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 72702

Re: Unable find mouse click event on rectangle

Sir, It's not matching with mouse pointers, I double-checked that the X and Y coordinates are always the same with various screen sizes but it's not working. Any help ? here is the my resize code resize() { var body = document.body; let _canvas: any = this.TChart.canvas; const topMargin = 200; var w...
by aaron
Tue Sep 12, 2023 11:36 am
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 72702

Re: Unable find mouse click event on rectangle

Click event working in angular but event.x & event.y are not match with data this.clickObservable$ = fromEvent(document.body, "dblclick"); this.clickSubscription$ = this.clickObservable$.subscribe((evt) => { this.onDobuleClick(evt); }); // double click events onDobuleClick(event: any) { for (let i =...
by aaron
Mon Sep 11, 2023 1:37 pm
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 72702

Re: Unable find mouse click event on rectangle

I am using the below formatBlue: Tee.IFormat; this.Chart.ondraw = function () { for (let i = 0; i < this.data.length; i++) { let x1 = this.axes.bottom.calc(startDate); let x2 = this.axes.bottom.calc(data[i]); let y1 = this.axes.left.startPos; let y2 = this.axes.left.endPos; this.formatBlue.rectangle...
by aaron
Fri Sep 08, 2023 11:56 am
Forum: JavaScript / HTML5
Topic: Unable find mouse click event on rectangle
Replies: 9
Views: 72702

Unable find mouse click event on rectangle

I have been trying to find the click event on the rectangle, how can I detect the rectangle by click event?
by aaron
Tue May 09, 2023 5:17 am
Forum: JavaScript / HTML5
Topic: How to add custom legends based on canvas painting
Replies: 1
Views: 27429

How to add custom legends based on canvas painting

Hello team,
I would like to display legends based on my custom canvas painting like rectangles and all.
How could I achieve this ?
by aaron
Fri May 05, 2023 11:20 am
Forum: JavaScript / HTML5
Topic: newCursor = "ew-resize" not working
Replies: 1
Views: 22642

newCursor = "ew-resize" not working

Hi,
I am changing the cursor properties from 'pointer' to 'ew-resize' on mouse events,
But it's not working. Is that the correct property for the cursor? :?: :?: :?: :?: :?:
by aaron
Wed May 03, 2023 9:51 am
Forum: JavaScript / HTML5
Topic: Date Format Issue
Replies: 2
Views: 24492

Re: Date Format Issue

Thanks
by aaron
Fri Apr 28, 2023 1:30 pm
Forum: JavaScript / HTML5
Topic: Angular - Mouse events are not working
Replies: 1
Views: 23389

Angular - Mouse events are not working

Hello ,

I have been using mouse events as shown below were not working in
  • Chrome
  • Edge

Code: Select all

this.TChart.domousedown = function () {debugger; };
this.TChart.domousemove = function () { debugger;};
this.TChart.domouseup = function () { debugger; };
by aaron
Thu Apr 27, 2023 5:25 pm
Forum: JavaScript / HTML5
Topic: What is the relevant to the AxisRect().Top in html ?
Replies: 3
Views: 26149

Re: What is the relevant to the AxisRect().Top in html ?

Hello, this is not the right answer.

If I want to top off the axis value then, what should I do with the chart-level props?

the correct approch is :

Code: Select all

 this.TChart.axes.bottom.startPos
by aaron
Thu Apr 27, 2023 5:25 pm
Forum: JavaScript / HTML5
Topic: What is the relevant to the AxisRect().Top in html ?
Replies: 3
Views: 26149

Re: What is the relevant to the AxisRect().Top in html ?

Hello, this is not the right answer.

If I want to top off the axis value then, what should I do with the chart-level props?

the correct approch is :

Code: Select all

 this.TChart.axes.bottom.startPos
by aaron
Wed Apr 26, 2023 12:38 pm
Forum: JavaScript / HTML5
Topic: Tee Chart for Angular & Draw a Painting Manually
Replies: 4
Views: 27568

Re: Tee Chart for Angular & Draw a Painting Manually

Hello, I have been facing paint loss while moving the mouse hover on it. Can you please provide me with an angular example with paint? there are so many issues if I draw a rectangle before the chart.draw(), chart.ondraw() does not work before chart draw and if I draw before it, it will be removed af...