JSFiddle - React, Tailwind, and code Playground

JavaScript

shortArray = ["ID-111", "ID-222"]
longArray = ["ID-111 bis", "ID-222 bis"]

 result = {}
for (var i = 0; i < longArray.length; i++) {
  result[ longArray[i] ] = "chart.color(" + shortArray[i] + ")";
}

console.log(result);