Unplanned
Last Updated: 20 Jun 2023 14:31 by ADMIN
Martin Ivanov
Created on: 19 Jun 2023 17:00
Category: ChartView
Type: Feature Request
1
ChartView: Implement pan and zoom ability for the polar chart
Implement pan and zoom ability for the polar chart.
2 comments
ADMIN
Martin Ivanov
Posted on: 20 Jun 2023 14:31

Hey Anthony,

Thank you for sharing your solution. I've updated your Telerik points as a small gesture of gratitude for providing the project.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Anthony
Posted on: 20 Jun 2023 14:15

There is a way to solve that issue by managing the 

  • ScaleTransform
  • TranslateTransform

First, I will register to the following window event:

  • MouseMove: for PAN management
  • MouseLeftButtonDown: for mouse "befoe pan" position memory
  • MouseWheel: for zoom purpose.

The sample bellow will recompute the 'TranslateTrasform"  graph property to position as exact as it can be the Polar chart regarding the mouse position

Zoom will be limitated to fit the screen (and it won't be possible to unzoom undeterminatly)

 

All these conditions may be removed at a glance.

 

Enjoy

 

Anthony

 

Credits: Thanks a lot @Martin Ivanov for your precious help !!!!!!

Attached Files: