O'Reilly logo

Learning Highcharts by Joe Kuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stocks' growth chart example

Our next example is to demonstrate the following events:

  • chart.events: addSeries
  • plotOptions.series.events: click, checkboxClick, legendItemClick
  • plotOptions.series.point.events: update, remove

Suppose we want to draft a long term investment portfolio based on the stocks' past growth performance as a reference. The demo contains a chart started with two series, Portfolio and Average growths, and a form to input stock symbols. Basically, we enter a stock symbol in this demo and then a line series of stock growth is inserted into the chart. So we can plot multiple stock yield trends and tweak their proportion in our portfolio to observe how Average and Portfolio lines perform. The following screenshot shows the initial ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required