Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redrawing Charts #24

Closed
octoberborn opened this issue Jul 25, 2013 · 4 comments
Closed

Redrawing Charts #24

octoberborn opened this issue Jul 25, 2013 · 4 comments

Comments

@octoberborn
Copy link

Is there currently a way to redraw a rendered chart with a simple js call? I'm wanting to make the charts more responsive and thought it could be an easy fix to attach a chart redraw function to window size event.

@ankane
Copy link
Owner

ankane commented Jul 25, 2013

This would be great. It depends on the charting library (looks like Highcharts does, Google Charts doesn't after a quick search), but for Google Charts, we could render a new chart in the existing div.

@fabionl
Copy link

fabionl commented Jul 25, 2013

+1 for this feature. ;)

One ask thought:

The way it is implemented now, the chart would fetch data from the server again. right?

Is it ok, or should it just redraw?

@ankane
Copy link
Owner

ankane commented Jul 25, 2013

This feature isn't implemented right now (unless Highcharts does this automatically - can't recall), but we would not want it to refetch the data - just redraw.

On Thu, Jul 25, 2013 at 10:05 AM, Fabio Lima notifications@github.com
wrote:

+1 for this feature. ;)
One ask thought:
The way it is implemented now, the chart would fetch data from the server again. right?

Is it ok, or should it just redraw?

Reply to this email directly or view it on GitHub:
#24 (comment)

@ankane
Copy link
Owner

ankane commented Jul 27, 2013

Boom :) ankane/chartkick.js@b24cae2

@ankane ankane closed this as completed Jul 27, 2013
@lock lock bot locked as resolved and limited conversation to collaborators Dec 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants