You can use chartist-render web component to turn a CSV file into a bar chart. Here’s how:
<chartist-render chart-title="Sales by Quarter" chart-desc="Sales for Northeast, Midatlantic, Southeast, Midwest, and West by Quarter." data-source="https://webcomponents.psu.edu/styleguide/elements/chartist-render/demo/bar.csv" scale="ct-double-octave" type="bar">
</chartist-render>
To see how your CSV should be set up, download this example file.
Learn more about how to customize it at https://webcomponents.psu.edu.