---
schema_version: "1"
id: 4049ef4b38fd9c833b72cb1a42bd38f83de125415c8b7950fdc4e6383adea15d
title: Updating Charts with Refreshed Data
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/charting/pages-charting-refreshing-data.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-charting-refreshing-data.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9ab4695424ca7d3c37244a441b00e8f842cfbfe7ac6b37f1660d8d54c5d56872
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# Updating Charts with Refreshed Data

Redraw a chart with new or updated data by using the `<apex:actionSupport>` component, or by using JavaScript remoting and your own JavaScript code.

`<apex:actionSupport>` allows you to update the chart using only Visualforce. JavaScript remoting requires you to write some JavaScript code, but provides more flexibility and smoother transitions.

-   **[Refreshing Chart Data Using \<apex:actionSupport\>](https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-charting-refreshing-data-actionsupport.md)**  


    Update a Visualforce chart in response to a user’s actions by adding the `<apex:actionSupport>` component to Visualforce user interface elements that affect the chart’s data.

-   **[Refreshing Chart Data Using JavaScript Remoting](https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-charting-refreshing-data-javascript-remoting.md)**  


    Update a Visualforce chart periodically, or in response to a user’s actions, using custom JavaScript. JavaScript code can respond to complex user activity or timer events, and use JavaScript remoting to retrieve new chart data whenever required.


