{"id":18307922,"url":"https://github.com/froala/svelte-froalacharts","last_synced_at":"2025-07-13T19:35:32.372Z","repository":{"id":56432054,"uuid":"290978351","full_name":"froala/svelte-froalacharts","owner":"froala","description":"Simple and lightweight official Svelte component for FroalaCharts.","archived":false,"fork":false,"pushed_at":"2020-11-08T10:55:01.000Z","size":166,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T00:57:49.691Z","etag":null,"topics":["charts","froalacharts","froalacharts-component","javascript-charts","svelte-charts","svelte-froalacharts"],"latest_commit_sha":null,"homepage":"https://froala.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/froala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-28T07:18:05.000Z","updated_at":"2020-11-08T10:50:27.000Z","dependencies_parsed_at":"2022-08-15T18:40:10.986Z","dependency_job_id":null,"html_url":"https://github.com/froala/svelte-froalacharts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/froala/svelte-froalacharts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fsvelte-froalacharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fsvelte-froalacharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fsvelte-froalacharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fsvelte-froalacharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froala","download_url":"https://codeload.github.com/froala/svelte-froalacharts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fsvelte-froalacharts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265195823,"owners_count":23726178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charts","froalacharts","froalacharts-component","javascript-charts","svelte-charts","svelte-froalacharts"],"created_at":"2024-11-05T16:05:55.023Z","updated_at":"2025-07-13T19:35:32.332Z","avatar_url":"https://github.com/froala.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-froalacharts\n\nSimple and lightweight Svelte component for FroalaCharts. `svelte-froalacharts` enables you to add JavaScript charts in your Svelte application or project without any hassle.\n\n- Github Repo: [https://github.com/froala/svelte-froalacharts](https://github.com/froala/svelte-froalacharts)\n- Documentation: [https://froala.com/charts/docs/frameworks/svelte/](https://froala.com/charts/docs/frameworks/svelte/)\n- Support: [support@froala.com](support@froala.com)\n- FroalaCharts\n  - Official Website: [https://froala.com/](https://froala.com/)\n  - Official NPM Package: [https://www.npmjs.com/package/froalacharts](https://www.npmjs.com/package/froalacharts)\n- Issues: [https://github.com/froala/svelte-froalacharts/issues](https://github.com/froala/svelte-froalacharts/issues)\n\n---\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n  - [Requirements](#requirements)\n  - [Installation](#installation)\n  - [Usage](#usage)\n- [Quick Start](#quick-start)\n- [For Contributors](#for-contributors)\n- [Licensing](#licensing)\n\n## Getting Started\n\n### Requirements\n\n- **Node.js**, **NPM/Yarn** installed globally in your OS.\n- **FroalaCharts** and **Svelte** installed in your project, as detailed below:\n\n### Installation\n\nThere are multiple ways to install `svelte-froalacharts` component.\n\n**Install from NPM**\n\n```\nnpm install --save svelte-froalacharts\n```\n\nSee [npm documentation](https://docs.npmjs.com/) to know more about npm usage.\n\n### Usage\n\n\nImport `svelte-froalacharts` and FroalaCharts in your app:\n\n```\n\u003cscript\u003e\n  import FroalaCharts from 'froalacharts/core';\n  import SvelteFC, { fcRoot } from 'svelte-froalacharts';\n\n  fcRoot(FroalaCharts);\n\u003c/script\u003e\n```\n\nNote: This way of import will not work in IE11 and below.\n\n## Quick Start\n\nHere is a basic sample that shows how to create a chart using `svelte-froalacharts`:\n\n```javascript\n\u003cscript\u003e\n  import FroalaCharts from 'froalacharts';\n  import FroalaTheme from 'froalacharts/themes/froalacharts.theme.froala';\n  import SvelteFC, { fcRoot } from 'svelte-froalacharts';\n\n  // Always set FroalaCharts as the first parameter\n  fcRoot(FroalaCharts, FroalaTheme);\n\n  const dataSource = {\n    chart: {\n      caption: 'Countries With Most Oil Reserves [2017-18]',\n      subCaption: 'In MMbbl = One Million barrels',\n      xAxisName: 'Country',\n      yAxisName: 'Reserves (MMbbl)',\n      numberSuffix: 'K',\n      theme: 'froala'\n    },\n    data: [\n      { label: 'Venezuela', value: '290' },\n      { label: 'Saudi', value: '260' },\n      { label: 'Canada', value: '180' },\n      { label: 'Iran', value: '140' },\n      { label: 'Russia', value: '115' },\n      { label: 'UAE', value: '100' },\n      { label: 'US', value: '30' },\n      { label: 'China', value: '30' }\n    ]\n  };\n\n  const chartConfigs = {\n    type: 'pie',\n    width: 600,\n    height: 400,\n    dataFormat: 'json',\n    dataSource: dataSource\n  };\n\u003c/script\u003e\n\n\u003cSvelteFC {...chartConfigs} /\u003e\n```\n\nLinks to help you get started:\n\n- [Documentation](https://froala.com/charts/docs/frameworks/svelte/)\n- [Chart gallery](https://froala.com/charts/tour/)\n- [FroalaCharts API](https://froala.com/charts/docs/api/options/)\n\n## For Contributors\n\n- Clone the repository and install dependencies\n\n```\n$ git clone https://github.com/froala/svelte-froalacharts.git\n$ cd svelte-froalacharts\n$ npm i\n$ npm run dev\n```\n\n- Run `npm run build` to create a production build.\n\n## Licensing\n\nThe FroalaCharts Svelte component is open-source and distributed under the terms of the MIT/X11 License. However, you will need to download and include FroalaCharts library in your page separately, which has a [separate license](https://www.ideracorp.com/Legal/Froala/FroalaChartsLicenseAgreement).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroala%2Fsvelte-froalacharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroala%2Fsvelte-froalacharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroala%2Fsvelte-froalacharts/lists"}