Sprinklr interview question

They started with machine coding question: The question was to design a bar chart component from scratch without using any library. Requirments: 1. IT should be scalable on the basis of number of inputs.