Hi All,
I am using a Canvas object to draw chart on it. The chart is drawn using rectangle and lines. The chart is large in size and can't be fit in one screen so I would like to give a facility to user to zoom in / out of the chart. I understood that pinch and zoom can be used to provide this option. I have attached the image of the chart with the thread for reference.
So I have some questions -
1. How can I add the Pinch & Zoom functionality to this canvas so that app users can zoom in and out of the chart.
2. I also want to add images to the chart rectangles so that it occupies the rectangle (refer to attached chart), I am not sure how to do that. Also when the user zoom in or zoom out, these images should also become small or big proportionately.
3. Also I would like to capture the click event of these images and run some code.
Appreciate you help. thanks in advance.
I am using a Canvas object to draw chart on it. The chart is drawn using rectangle and lines. The chart is large in size and can't be fit in one screen so I would like to give a facility to user to zoom in / out of the chart. I understood that pinch and zoom can be used to provide this option. I have attached the image of the chart with the thread for reference.
So I have some questions -
1. How can I add the Pinch & Zoom functionality to this canvas so that app users can zoom in and out of the chart.
2. I also want to add images to the chart rectangles so that it occupies the rectangle (refer to attached chart), I am not sure how to do that. Also when the user zoom in or zoom out, these images should also become small or big proportionately.
3. Also I would like to capture the click event of these images and run some code.
Appreciate you help. thanks in advance.