Coder Social home page Coder Social logo

Comments (4)

ayanonly1 avatar ayanonly1 commented on June 12, 2024

JSON file is not always required. You can directly send JSON data to the chart. And ". feedData" is applicable for the real time chart's only. If you are using this Angular plugin, then you don't have to think about the data update API's of FusionCharts, You have to just update the data in the scope of the chart directive only. You can refer to this samle for details. This sample update part of the data. But you can change the whole data and the chart will be updated.

from angularjs-fusioncharts.

tkt5025 avatar tkt5025 commented on June 12, 2024

I have tried the method of updating only the scope. This does update the chart but re-draws the chart element. What I was hoping for is that each data point would be added without disrupting the chart element.
We have 2 hrs of data being updated every minute so the chart gets redrawn every minute. Instead, I'd like to use something like .feedData() so that only the newest point is added to the chart.

from angularjs-fusioncharts.

ayanonly1 avatar ayanonly1 commented on June 12, 2024

There might be various way for this-

  • Use id in chart (directive attribute "chartid") and access the chart using FusionCharts("your_chart_id") and then you can use the .feedData of that.
  • Add the data in the datasource of the controller and set animation ='0' in the chart's configuration.

If this does not work, please send us a simple sample or jsfiddle link of your chart.

from angularjs-fusioncharts.

tkt5025 avatar tkt5025 commented on June 12, 2024

I've used animation=0 and that seems to be working! Thanks!

from angularjs-fusioncharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.