{"version":"1.0","type":"rich","title":"Dataviz 2020_Ep22 - 16. Axes with React and D3","description":"This example shows a horizontal bar chart of United Nations World Population 2019 data, loading the first ten countries from a CSV file and rendering them as SVG rectangles. The chart demonstrates how to construct axes manually without D3 axis components, using `scaleLinear` and `scaleBand` to position elements. React manages the component state and rendering lifecycle, while D3 utilities handle data loading via `csv()` and scale creation through `max()`, `scaleLinear`, and `scaleBand`. For the x-axis ticks, the code calls `xScale.ticks()` to generate tick values and maps them to vertical grid lines, with the chart rendered inside an SVG `<g>` element using React's JSX syntax.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/02648bd1ae7c439caf572a9301384419?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}