Opened 9 years ago

Last modified 9 years ago

#10856 closed enhancement

[patch][ccla] Charting Animation for Zoom/Grow — at Version 5

Reported by: ruanqi Owned by: Eugene Lazutkin
Priority: high Milestone: 1.5
Component: Charting Version: 1.4.0
Keywords: charting, animation Cc: deanw@…, hwcdl@…, xiangxz@…
Blocked By: Blocking:

Description (last modified by Adam Peller)

FYI. this enhancement enable chart(area,lines,markers...) grow/zoom animation.

1.chart grows from the bottom when it render, set "animation" to turn it on. e.g.

chart.addPlot("default", {type: "Areas",animation:{duration:2000}}).render();

2.chart zooms by the scale&offset of axes, add a argument to turn it on. e.g.

chart.setWindow(scaleX, scaleY, offsetX, offsetY, {duration:1800}).render();

This patch also implements a "zoomIn" method in Chart2D, it supports chart zooming to a certain axis range. e.g.

chart.zoomIn("x",[50,80]);//chart zooms to 50-80 range on axis x

demo: test_axisZoomControl.html in the attachment.

Change History (7)

comment:1 Changed 9 years ago by Eugene Lazutkin

Status: newassigned

I assume your submission is covered by CLA/CCLA (IBM?). If it is so, please add to the summary [CCLA] prefix.

comment:2 Changed 9 years ago by Eugene Lazutkin

BTW, the demo link is behind the firewall --- can't use it.

comment:3 in reply to:  2 Changed 9 years ago by ruanqi

Replying to elazutkin:

BTW, the demo link is behind the firewall --- can't use it.

test_win2d.html in the attachment patch could took as a demo.

Changed 9 years ago by Adam Peller

Enable chart grow/zoom animation, from ruanqi (IBM, CCLA)

comment:4 Changed 9 years ago by Adam Peller

Description: modified (diff)
Summary: [patch] Charting Animation for Zoom/Grow[patch][ccla] Charting Animation for Zoom/Grow

Changed 9 years ago by Adam Peller

updated patch from ruanqi

comment:5 Changed 9 years ago by Adam Peller

Description: modified (diff)
Note: See TracTickets for help on using tickets.