const ymax = y.max
    ? y.max
    : _.max(
        _.map(getDataSeriesByAxis(graph, "y"), (series) =>
          _.max(seriesData(series)),