{"version":"1.0","type":"rich","title":"if statement","description":"This example demonstrates a conditional SVG rendering inside a React component. A circle is drawn at the center of a 960×500 viewport; because the constant R is set to 400, the ternary operator in JSX chooses the red circle with radius 150 instead of the green one with radius 400. The code uses React’s `ReactDOM.render` and JSX to produce the SVG output, with inline styling and a production build of React 16.10.0.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7c5c886b34f44145ae98ccc2928ebeb5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}