O'Reilly logo

Highcharts Cookbook by Nicholas Terwoord

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

Updating the model when the chart changes

In previous chapters, we've focused on getting data from a server and sending it to the browser and rendering a chart, with a few examples on how we can send data in the other direction. In this recipe, we'll be demonstrating how we can update the model on the server from the browser. This recipe will leverage the work done in the previous recipe.

Getting ready

Complete all the steps in the previous recipe Creating charts with a RESTful controller.

How to do it...

To get started, follow the ensuing instructions:

  1. Replace our existing example_app/protected/views/site/example.php file with the following:
    <?php $this->pageTitle=Yii::app()->name . ' - Example'; $this->breadcrumbs=array( 'Example', ); ?> <h1>Example ...

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