Skip to content

Commit 20b1b50

Browse files
committedJun 23, 2024
minor cleanup
1 parent 3412d30 commit 20b1b50

File tree

4 files changed

+29
-33
lines changed

4 files changed

+29
-33
lines changed
 

‎README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A simple and lightweight official Svelte component for FusionCharts JavaScript c
2323
- [Working with events](#working-with-events)
2424
- [Quick Start](#quick-start)
2525
- [Going Beyond Charts](#going-beyond-charts)
26-
- [Usage and Integration of FusionTime](#usage-and-integration-of-fusionTime)
26+
- [Usage and Integration of FusionTime](#usage-and-integration-of-fusiontime)
2727
- [For Contributors](#for-contributors)
2828
- [Licensing](#licensing)
2929

@@ -48,7 +48,6 @@ See [npm documentation](https://docs.npmjs.com/) to know more about npm usage.
4848

4949
### Usage
5050

51-
5251
Import `svelte-fusioncharts` and FusionCharts in your app:
5352

5453
```
@@ -124,7 +123,7 @@ To render a map, import the FusionMaps module along with the map definition.
124123

125124
// Always set FusionCharts as the first parameter
126125
fcRoot(FusionCharts, Maps, World, FusionTheme);
127-
126+
128127
const dataSource = {
129128
chart: {
130129
caption: 'Average Annual Population Growth',
@@ -270,7 +269,7 @@ To call APIs we will need the chart object. To get the chart object for an Svelt
270269
width: '600',
271270
height: '400',
272271
renderAt: 'chart-container',
273-
dataSource
272+
dataSource
274273
};
275274

276275
const sliceDataPlot = (index, sliceOut = true) => {
@@ -381,7 +380,6 @@ Useful links for FusionTime
381380
- [How FusionTime works](https://www.fusioncharts.com/dev/fusiontime/getting-started/how-fusion-time-works)
382381
- [Create your first chart](https://www.fusioncharts.com/dev/fusiontime/getting-started/create-your-first-chart-in-fusiontime)
383382

384-
385383
## Going Beyond Charts
386384

387385
- Explore 20+ pre-built business specific dashboards for different industries like energy and manufacturing to business functions like sales, marketing and operations [here](https://www.fusioncharts.com/explore/dashboards).
@@ -392,10 +390,10 @@ Useful links for FusionTime
392390
- Clone the repository and install dependencies
393391

394392
```
395-
$ git clone https://github.com/fusioncharts/svelte-fusioncharts.git
396-
$ cd svelte-fusioncharts
397-
$ npm i
398-
$ npm run dev
393+
git clone https://github.com/fusioncharts/svelte-fusioncharts.git
394+
cd svelte-fusioncharts
395+
npm i
396+
npm run dev
399397
```
400398

401399
- Run `npm run build` to create a production build.

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
return result;
203203
};
204204

205-
/* src/index.svelte generated by Svelte v4.2.16 */
205+
/* src/index.svelte generated by Svelte v4.2.18 */
206206

207207
function create_fragment(ctx) {
208208
let div;

‎index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const ATOMIC_DATA_TYPE = ['string', 'number', 'function', 'boolean', 'undefined'
200200
return result;
201201
};
202202

203-
/* src/index.svelte generated by Svelte v4.2.16 */
203+
/* src/index.svelte generated by Svelte v4.2.18 */
204204

205205
function create_fragment(ctx) {
206206
let div;

‎package.json

+20-22
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "svelte-fusioncharts",
3-
"svelte": "src/index.svelte",
3+
"version": "1.1.0",
4+
"description": "A simple and lightweight official Svelte component for FusionCharts JavaScript charting library. `svelte-fusioncharts` enables you to add JavaScript charts in your Svelte application or project without any hassle.",
5+
"main": "index.js",
46
"module": "index.mjs",
57
"type": "module",
6-
"main": "index.js",
8+
"svelte": "src/index.svelte",
79
"scripts": {
8-
"build": "rollup -c",
9-
"prepublishOnly": "npm run build"
10+
"build": "rollup -c"
1011
},
11-
"devDependencies": {
12-
"rollup": "^4.17.2",
13-
"rollup-plugin-svelte": "^7.2.0",
14-
"svelte": "^4.0.0"
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/priyanjitdey94/svelte-fusioncharts.git"
1515
},
1616
"keywords": [
1717
"svelte",
@@ -26,22 +26,20 @@
2626
"svelte-fusioncharts",
2727
"svelte-wrapper"
2828
],
29-
"files": [
30-
"src",
31-
"index.mjs",
32-
"index.js"
33-
],
34-
"description": "A simple and lightweight official Svelte component for FusionCharts JavaScript charting library. `svelte-fusioncharts` enables you to add JavaScript charts in your Svelte application or project without any hassle.",
35-
"version": "1.1.0",
36-
"dependencies": {},
37-
"repository": {
38-
"type": "git",
39-
"url": "git+https://github.com/priyanjitdey94/svelte-fusioncharts.git"
40-
},
41-
"author": "Priyanjit Dey <priyanjit.dey@gmail.com>",
4229
"license": "MIT",
4330
"bugs": {
4431
"url": "https://github.com/priyanjitdey94/svelte-fusioncharts/issues"
4532
},
46-
"homepage": "https://github.com/priyanjitdey94/svelte-fusioncharts#readme"
33+
"homepage": "https://github.com/priyanjitdey94/svelte-fusioncharts#readme",
34+
"dependencies": {},
35+
"devDependencies": {
36+
"rollup": "^4.17.2",
37+
"rollup-plugin-svelte": "^7.2.0",
38+
"svelte": "^4.0.0"
39+
},
40+
"files": [
41+
"src",
42+
"index.mjs",
43+
"index.js"
44+
]
4745
}

0 commit comments

Comments
 (0)
Please sign in to comment.