Transition duration

You can create charts that change the way they look on user interaction. They will automatically transition to the new values gracefully and smoothly. Transition animations are configured with default ease algorithms and durations, but you can change them by editing the properties of the Chart.defaults.global.animation object, or override any defaults locally by using the options.animation object.

For example, in the following chart code, all transitions last five seconds (Pages/BarChart6.html):

new Chart("ocean-volume-bar-chart", {
type: "bar",
data: {...},
options: {

animation: {
duration: 5000
}
}
});
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset