Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Update chart on dynamically type selection #85

Open
ypkkhatri opened this issue Mar 22, 2017 · 1 comment
Open

Update chart on dynamically type selection #85

ypkkhatri opened this issue Mar 22, 2017 · 1 comment

Comments

@ypkkhatri
Copy link

ypkkhatri commented Mar 22, 2017

Hi,

Right now there is now way to change chart type on same data like bar to line, no dynamic chart selection, I have resolved the issue by removing all the generated HTML elements then regenerate the chart. But I don't prefer that

In the code I have seen code watcher applied on data and options:

$scope.$watch('[data, options]', function (value) { ..... }

But in this watcher, type needs to be added whenever type change it will recreate it and I think it will resolve the issue:

$scope.$watch('[data, options, type]', function (value) { ..... }

At local it's working perfectly

Thanks & Cheers

Yougeshwar Khatri

@ypkkhatri ypkkhatri changed the title Update chart on type change Update chart on dynamically type selection Mar 22, 2017
@abarinoff
Copy link
Contributor

abarinoff commented Aug 10, 2017

Hi. Please refer to this issue and see my comment - Dynamically change chart type.

When resolving char type via {{}} it redraws entire chart once the type changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants