(self, name, label=None, format=None, custom_format=False)
Create Y-axis
Create Y-axis
Create Y - axis
def create_y_axis(self, name, label=None, format=None, custom_format=False):
        """
        Create Y-axis
        """
        axis = {}

        if custom_format and format:
            axis['tickFormat'] = format
        elif format:
            axis['tickFormat'] = "d3.format(',%s')" % format

        if label:
            axis['axisLabel'] = "'" + label + "'"

        # Add new axis to list of axis
        self.axislist[name] = axis
def create_y_axis ( self , name , label = None , format = None , custom_format = False ) : axis = { } if custom_format and format : axis [ 'tickFormat' ] = format elif format : axis [ 'tickFormat' ] = "d3.format(',%s')" % format if label : axis [ 'axisLabel' ] = "'" + label + "'" # Add new axis to list of axis self . axislist [ name ] = axis