Dynamic data in Highcharts

15,038

Solution 1

A new call to

new Highcharts.Chart(...)

should do the trick. The docs are quite complete, but maybe too young to be helpful enough. And the support may be better with the commercial license. Did you check other libs like Flotr ?

Solution 2

The Highcharts forum is pretty active and you should be able to find the answers to most of your questions there.

I've used Highcharts and love the interface and the charts that it produces.

Yes, Highcharts allows you to dynamically modify your charts and you shouldn't have to unload the chart in order to add new series data. Here's an example to add new data points to an existing series, and check out Chart.addSeries() if you want to add a whole new series.

Solution 3

Yes - it supports things you mentioned. Here's the sample code http://jsfiddle.net/sdorzak/HsWF2/

also the documentation looks 'thin' but it's pretty good. I'm starting to discover that you can really do a lot with these charts.

Share:
15,038

Related videos on Youtube

Justin Ethier
Author by

Justin Ethier

Software Engineer living in the Baltimore area. Open Source Projects - A brand-new compiler that allows practical application development using R7RS Scheme. - A practical implementation of the Scheme programming language for the Haskell Platform. stack-watch - A unix command-line utility to automatically monitor Q&A activity on Stack Exchange. node-kdtree - A node.js add-on for performing efficient Nearest Neighbor searches using libkdtree. Minor contributions to many projects including jsgauge, jqGrid, Highcharts, Haskell SELinux bindings, chibi-scheme, jQuery UI Spinner, jClock, and the jQuery Validation Plugin. Featured solutions to Ruby Quiz Mexican Blanket Vehicle Counters If you develop a program for a long period of time by only adding features but never reorganizing it to reflect your understanding of those features, then eventually that program simply does not contain any understanding and all efforts to work on it take longer and longer. There is no right answer ... and always a better way. Show and discuss your code, without emotional attachment. You are not your code. Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. The game isn't really about big edges and firework displays; it's about subtle advantages and what happens in the long run. It is amazing what you can accomplish if you do not care who gets credit. Maybe the best programmers aren’t those who spectacularly solve crazy problems, but those who don’t create them, which is much more silent.

Updated on June 04, 2022

Comments

  • Justin Ethier
    Justin Ethier almost 2 years

    Has anyone used the Highcharts Javascript charting library? I have a few questions about it:

    • Does it support dynamic data? In other words, if I plot a chart and then want to update the data displayed on the chart, do I need to completely unload the chart and start over? Or can I update the chart's data in-place?

    • Is there a way to hide grid lines on line/bar charts?

    • The documentation on the site looks a bit thin. Are there any more resources online for these charts?

    • Upperstage
      Upperstage over 14 years
      Highcharts has an impressive website.

Related