concept second y axis in category data

appears as: second Y axis
Data Wrangling with JavaScript

This is an excerpt from Manning's book Data Wrangling with JavaScript.

10.4.7 Adding a second Y axis to the chart

Another thing we might want to do is add a second Y axis to our chart. Let’s say we want to compare temperature and snowfall in NYC. We take our chart from figure 10.8, and we add a snowfall data series to it. The result is shown in figure 10.13. Can you tell me what’s wrong with this chart?

Listing 10.6 Adding a second Y axis to the chart (extract from listing-10.6/public/app.js)
var chart = c3.generate({
    bindto: "#chart",
    data: {
        json: data,
        keys: {
            x: "Year",
            value: [
                "AvgTemp",
                "Snowfall"
            ]
        },
        axes: {
 AvgTemp: "y",    #1  
 Snowfall: "y2"    #2  
        }
    },
    axis: {
        y2: {
 show: true    #3  
        }
    }
});

#1   Average temperature should be attached to the first Y axis.
#2   Snowfall should be attached to the second Y axis.
#3   Enables the second Y axis; by default it’s disabled.