: {
            expand: {
              r: 5
            }
          }
        },
        tooltip: {
          linked: true,
        },
        legend: {
          position: 'inset',
          inset: {
            anchor: "top-left",
            y: 0,
            step: 20
          },
        },
        bindto: "#total-chart"
      });

      // var firstLegend = $(".c3-legend-item");
      // var legendCon = $(firstLegend.node().parentNode);
      // var legendY = parseInt(firstLegend.select('text').attr('