howing the dropdown content */
    $('.dropdown-toggle').dropdown()

    $("#logarithm").on("click",function() {
      chart.internal.config.axis_y_tick_format = d3.format(",.2r");
      $(".chart-legend").css({"left": "139px", "width":"345px"});
      $(".dropdown-toggle").text('logarithm type');
      chart.axis.types({
        y: 'log',
      });
    });

    $("#linear").on("click",function() {
      $(".chart-legend").css({"left": "122px", "width":"355px"});
      $(".dropdown-toggle").text('linear typ