Flowchart:

https://mermaid.live/view#pako:eNp9VF2P2jAQ_CtWngFdX5GoBISvthwUuN61pg8mXhLrEju1HRA93X-vs3a4Czo1D9YmMzs7drz7EiWKQ9SPUs3KjOzivSTuGdI10yAtGauiVNJFv0m3-5mM6MK9a0tmWvAOSd06h7zskHHGtH0je5UR5oxpDEchgSQ1Z1VaoaQJjDEy4oZRSfGnArKISQoSNLNKk2MlkzolZMSYMaEzTwD0QHJ2UZUlB2aAEyU_KjXBxOnVjMqrQpKDBvZcKiFtw5sib0YXUljBcvEXiLBQGMK0ZhdSGSHTpl5w6arc2pyhypxuQHLQeFyuZDgechY2a1QlD15qAz55jskL2s4KygsEv9CDkLyPGgNcW_BXqtV5DiLN7ODT3V0L-0ZdPTOol9b3JT2KPN-WLIFBHU01wI2lezphSeZPF_0HgXtEV5SLk99bj0OhumfBU2h8r5Czph_elDWC36lq_bL32OYmsWdOkFsIzA1yts3tnCDXtMAdnbuzzsFdj6WqrpU9-PAGxmCsVpcW_OP9bQi7l8YymbQNPDYyGkxNxbPYYLw6GNAn0NcT3WLGE23becKvP6m41sOttNBftC1Jjq5N0FUsTlf9HXKHQyqOHuwQLkypTH2fg95w6Lt6RP2mBgQwML26ftPFoY3HntQzEDrrWurRd3F846unfBB0HnznTm5ZzlWipISkKTgJrTr9n_UwP_wAmc2aRmt-Tv0HSicpTmFCWJHXRqJOVIAumOBu5r3UIvvIZlDAPuq7kDP9vI_28tXxWGXV9iKTqG91BZ1IqyrNov6R5ca9VSV30ycWzA3OoqEAF25kLf1ExcH6-g8Jq7zt

Explaination / Flow:

ParentComponent.svelte is the component that holds chartOptions and passes it to Layout. It also calls the Layout component here. Layout.svelte is responsible for creating the grid items dynamically based on the number of options present in chartOptions. ChartComponent.svelte is responsible for rendering the echarts. This is called in Layout.svelte

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes