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

Update chart on dynamically type selection #85

@ypkkhatri

Description

@ypkkhatri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions