BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: ESD 4.5 - Zoom, Chart  (Read 9598 times)

lazyhd

  • Newbie
  • *
  • Posts: 1
    • View Profile
ESD 4.5 - Zoom, Chart
« on: May 13, 2019, 01:37:59 PM »

Hello,

We implemented EVE FT813 in a new design and I am now building the UI. I tried to find the answers for the below on my own but reached a dead end.
Any help is appreciated

Zooming:
Given that my touch controller supports multitouch, how can I achieve pinch to zoom ? Is it doable inside ESD ? If not any reference to doing it by code ?

Charting:
I have a chart I want to draw, the chart has 100,000 points on it. Should I reduce the number of points on the host (by averaging or otherwise) in order to fit on the screen's 800px resolution ?
What is the best way to draw this graph ? Should I send the coordinates of each of the points one by one ?
Should I recalculate the graph vertices on the host when the user zoom in or out ?

Thanks,
« Last Edit: May 14, 2019, 03:37:17 PM by lazyhd »
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 743
    • View Profile
Re: ESD 4.5 - Zoom, Chart
« Reply #1 on: June 17, 2019, 02:47:38 PM »

Hi,

You can find an example of a chart with pinch-zoom and scrolling at this link below. The ESD does not currently support this but you can do it in your code as shown:
https://brtchip.com/wp-content/uploads/EVE_Projects/FT_App_Graph.zip

As you mentioned, you can calculate the points to be made visible when displaying and create a line-strip. Reducing the number of points down from 100,000 is necessary both due to the screen having only 800 pixels width and also as the display list is limited in size and you require a vertex instruction per visible point (plus any other items such as titles, scales etc.)

Hopefully this example above will help,

Best Regards, BRT Community






Logged